Title: Sentry SDK interferes with OpenTelemetry fetch spans despite skipOpenTelemetrySetup: true · Issue #17581 · getsentry/sentry-javascript · GitHub
Open Graph Title: Sentry SDK interferes with OpenTelemetry fetch spans despite skipOpenTelemetrySetup: true · Issue #17581 · getsentry/sentry-javascript
X Title: Sentry SDK interferes with OpenTelemetry fetch spans despite skipOpenTelemetrySetup: true · Issue #17581 · 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/17581
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sentry SDK interferes with OpenTelemetry fetch spans despite skipOpenTelemetrySetup: true","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues [https://github.com/getsentry/sentry-javascript/issues](\u003chttps://github.com/getsentry/sentry-javascript/issues>)\n- [X] I have reviewed the documentation [https://docs.sentry.io/](\u003chttps://docs.sentry.io/>)\n- [X] I am using the latest SDK release [https://github.com/getsentry/sentry-javascript/releases](\u003chttps://github.com/getsentry/sentry-javascript/releases>)\n\n### How do you use Sentry?\n\nSentry Saas ([sentry.io](\u003chttp://sentry.io>))\n\n### Which SDK are you using?\n\n@sentry/nextjs\n\n### SDK Version\n\n^10.11.0\n\n### Framework Version\n\nNext 15.5.2\n\n### Link to Sentry event\n\n*No response*\n\n### Reproduction Example/SDK Setup\n\n```\nSentry.init({\n dsn: sentryDSN,\n environment: environment,\n release: release,\n skipOpenTelemetrySetup: true, \n integrations: [\n Sentry.httpIntegration({spans: false}),\n ],\n });\n```\n\nAlong with:\n\n```\ncontext.setGlobalContextManager(new AsyncLocalStorageContextManager());\n\nconst traceExporter = new OTLPTraceExporter();\nconst batchSpanProcessor = new SimpleSpanProcessor(traceExporter);\n\nconst sdk = new NodeSDK({\n spanProcessors: [batchSpanProcessor],\n textMapPropagator: new W3CTraceContextPropagator(),\n instrumentations: [\n getNodeAutoInstrumentations({\n '@opentelemetry/instrumentation-http': {\n enabled: true\n },\n '@opentelemetry/instrumentation-dns': {\n enabled: false\n }\n }),\n ],\n});\n\n// Start the OpenTelemetry SDK\nsdk.start();\n\n// Ensure proper shutdown on process exit\nprocess.on('SIGTERM', () => {\n sdk\n .shutdown()\n .then(() => console.log('OpenTelemetry SDK shut down successfully'))\n .catch((error: Error) => console.error('Error shutting down OpenTelemetry SDK:', error))\n .finally(() => process.exit(0));\n});\n```\n\nInitialised in nextjs as follows:\n\n```\nexport const register = async () => {\n if (process.env.NEXT_RUNTIME === 'nodejs') {\n await import('../instrumentation.node');\n await import('../sentry.server.config');\n }\n};\n\nexport const onRequestError = Sentry.captureRequestError;\n```\n\n### Steps to Reproduce\n\nComplete reproduction repository: [https://github.com/JandaTheMan/Sentry-OpenTelemetry-Issue-Reproduction](\u003chttps://github.com/JandaTheMan/Sentry-OpenTelemetry-Issue-Reproduction>)\n\nSetup reproduction environment:\n\n* Clone the reproduction repository above\n* Install dependencies: npm install\n* Start observability stack: npm run observability:up\u003cbr>Test without Sentry (baseline):\n* Ensure SENTRY_DSN is NOT set in .env\n* Start app: npm run dev\n* Visit [http://localhost:3000/](\u003chttp://localhost:3000/>)\n* Check traces in Grafana at [http://localhost:3003/explore](\u003chttp://localhost:3003/explore>)\u003cbr>Test with Sentry (issue reproduction):\n* Set SENTRY_DSN=your-dsn-here in .env file\n* Restart app: npm run dev\n* Visit [http://localhost:3000/](\u003chttp://localhost:3000/>)\n* Check traces in Grafana at [http://localhost:3003/explore](\u003chttp://localhost:3003/explore>)\u003cbr>Note: The repository includes a complete observability stack (OpenTelemetry Collector + Tempo + Grafana) and detailed instructions for easy reproduction.\n\nA complete guide for reproduction is included in the repository.\n\n### Expected Result\n\nFetch node traces are included the same way when sentry sdk is not initialised:\n\n\u003cimg src=\"https://uploads.linear.app/3ed206af-f87a-40aa-82a0-150bf83e43e6/233b7c2d-566a-4909-a6d5-d86102d77844/b1782c4b-de79-4259-8ff9-71ef2f39d02c?signature=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXRoIjoiLzNlZDIwNmFmLWY4N2EtNDBhYS04MmEwLTE1MGJmODNlNDNlNi8yMzNiN2MyZC01NjZhLTQ5MDktYTZkNS1kODYxMDJkNzc4NDQvYjE3ODJjNGItZGU3OS00MjU5LThmZjktNzFlZjJmMzlkMDJjIiwiaWF0IjoxNzcwMjc5Mjc1LCJleHAiOjE4MDE4NDk4MzV9.V68UJo6H3-RrT4bSuXqrCbfpR5NdpEmWgHMAFfDKzg8 \" alt=\"Image\" width=\"1102\" data-linear-height=\"279\" />\n\n### Actual Result\n\nFetch node traces are not included the same way when sentry sdk is not initialised:\n\n\u003cimg src=\"https://uploads.linear.app/3ed206af-f87a-40aa-82a0-150bf83e43e6/edadc325-9119-4baf-b788-93647a093204/f917c8bd-51e6-4a7f-ac09-faa1edab7048?signature=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXRoIjoiLzNlZDIwNmFmLWY4N2EtNDBhYS04MmEwLTE1MGJmODNlNDNlNi9lZGFkYzMyNS05MTE5LTRiYWYtYjc4OC05MzY0N2EwOTMyMDQvZjkxN2M4YmQtNTFlNi00YTdmLWFjMDktZmFhMWVkYWI3MDQ4IiwiaWF0IjoxNzcwMjc5Mjc1LCJleHAiOjE4MDE4NDk4MzV9.qkdC_y6rWR8jlCyaENK2pxOe7k_AnSpuDisoMyGN7QQ \" alt=\"Image\" width=\"985\" data-linear-height=\"298\" />","author":{"url":"https://github.com/JandaTheMan","@type":"Person","name":"JandaTheMan"},"datePublished":"2025-09-10T09:53:46Z","url":"https://github.com/getsentry/sentry-javascript/issues/17581"}
| 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:69c72263-132f-f393-dbe0-4fea24f6325b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF7A:334801:962EF2:CBC461:6B053BB7 |
| html-safe-nonce | 2e2e28d0e118e9c82a630b579f2ea2211491ba1b4708ddb692c4665b168f34ce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjdBOjMzNDgwMTo5NjJFRjI6Q0JDNDYxOjZCMDUzQkI3IiwidmlzaXRvcl9pZCI6Ijc5NDM4NjI3NjM5MDUxNzAzNjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0d09abf0c03c4623d332d158b4e392cc08688e261a1b7b809bf9ff48156cd38e |
| hovercard-subject-tag | issue:3401774088 |
| 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/17581/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4d14eb78780d05e7448ddb19f34514ea5c12510e8244d559b7cbb4d6f87832a1/getsentry/sentry-javascript/issues/17581 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4d14eb78780d05e7448ddb19f34514ea5c12510e8244d559b7cbb4d6f87832a1/getsentry/sentry-javascript/issues/17581 |
| 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 | JandaTheMan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| 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 | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| 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