Title: Performance Issue for NestJS Project with Sentry Performance Enabled · Issue #15725 · getsentry/sentry-javascript · GitHub
Open Graph Title: Performance Issue for NestJS Project with Sentry Performance Enabled · Issue #15725 · getsentry/sentry-javascript
X Title: Performance Issue for NestJS Project with Sentry Performance Enabled · Issue #15725 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/15725
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Performance Issue for NestJS Project with Sentry Performance Enabled","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/browser\n\n### SDK Version\n\n9.5.0\n\n### Framework Version\n\nNestJS\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\nMini repro app and details regarding performance included in [internal ticket #146790](https://sentry.zendesk.com/agent/tickets/146790)\n\n### Steps to Reproduce\n\nclean NestJS framework + Sentry. The route for testing simply returned a small JSON text.\n\nAccording to the measurement results:\n\nClean framework without Sentry - 30,000 rps, 3ms average response time.\n\nClean framework + Sentry - 2,500 rps, 39ms average response time.\n\nI used the following Sentry configuration:\n\n```javascript\nSentry.init({\n dsn: '',\n defaultIntegrations: false,\n integrations: [\n nodeProfilingIntegration(),\n Sentry.nestIntegration(),\n Sentry.httpIntegration(),\n Sentry.onUncaughtExceptionIntegration(),\n Sentry.onUnhandledRejectionIntegration(),\n ],\n environment: 'local',\n tracesSampleRate: 1,\n profilesSampleRate: 1,\n});\n```\nReducing the values of tracesSampleRate and profilesSampleRate to 0.1 slightly improves the situation\n\nmain performance loss occurs due to the Sentry.httpIntegration() module\n\n### Expected Result\n\nNot impactful to app performance to have sentry performance enabled\n\n### Actual Result\n\nPerformance affected","author":{"url":"https://github.com/ReneGreen27","@type":"Person","name":"ReneGreen27"},"datePublished":"2025-03-18T19:06:43Z","url":"https://github.com/getsentry/sentry-javascript/issues/15725"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:df53697b-7c9f-83c5-a4e0-9c92538d2ec0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B716:3200EA:B1DC7A:F25BE2:6B03FA17 |
| html-safe-nonce | 45a719302ab5ab7fa2ac1ff4fe4f2f9b73474b5a2cc27ae646cc724073283146 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzE2OjMyMDBFQTpCMURDN0E6RjI1QkUyOjZCMDNGQTE3IiwidmlzaXRvcl9pZCI6IjQ1OTc5OTI5OTAxNzMyOTcxNzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e58975d49706867cc86d95bc75fd28fa1e6b343415532fb6b466c7aeb6237ccd |
| hovercard-subject-tag | issue:2929594109 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/15725/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ed6dd03d2e8dc73546768bb1069ff9642602a0431a1513f37c86d72397ac51f6/getsentry/sentry-javascript/issues/15725 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ed6dd03d2e8dc73546768bb1069ff9642602a0431a1513f37c86d72397ac51f6/getsentry/sentry-javascript/issues/15725 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ReneGreen27 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width