Title: Unable to setup custom OpenTelemetry with @sentry/bun. Docs are lacking info · Issue #16969 · getsentry/sentry-javascript · GitHub
Open Graph Title: Unable to setup custom OpenTelemetry with @sentry/bun. Docs are lacking info · Issue #16969 · getsentry/sentry-javascript
X Title: Unable to setup custom OpenTelemetry with @sentry/bun. Docs are lacking info · Issue #16969 · 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/16969
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unable to setup custom OpenTelemetry with @sentry/bun. Docs are lacking info","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/bun\n\n### SDK Version\n\n9.38.0\n\n### Framework Version\n\n_No response_\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n```js\nconst sentryClient = Sentry.init({\n\t// enabled: process.env.NODE_ENV === \"production\",\n\tdsn: SENTRY_DSN,\n\tenvironment: process.env.ENVIRONMENT,\n\tintegrations: [],\n\ttracesSampleRate: 1.0,\n\t// @ts-expect-error\n\tskipOpenTelemetrySetup: true,\n});\nif (!Sentry.isEnabled()) console.warn(\"Sentry is not enabled\");\n\nconst provider = new NodeTracerProvider({\n\tsampler: sentryClient ? new SentrySampler(sentryClient) : undefined,\n\tspanProcessors: [new SentrySpanProcessor()],\n});\n\nprovider.addSpanProcessor(new SentrySpanProcessor());\n\nprovider.register({\n\t// Ensure trace propagation works\n\t// This relies on the SentrySampler for correct propagation\n\tpropagator: new SentryPropagator(),\n\t// Ensure context & request isolation are correctly managed\n\tcontextManager: new Sentry.SentryContextManager(),\n});\n// Validate that the setup is correct\nSentry.validateOpenTelemetrySetup();\n```\n\n### Steps to Reproduce\n\nI tried to follow the documentations https://docs.sentry.io/platforms/javascript/guides/express/opentelemetry/custom-setup/ and https://docs.sentry.io/platforms/javascript/guides/bun/migration/v7-to-v8/v8-opentelemetry/ but especially the one for bun is lacking info, like where to get the imports from. Also skipOpenTelemetrySetup doesn't exist in the bun sdk\n\n### Expected Result\n\nI am trying to do custom OpenTelemetry setup so that I can enable Sentry for error tracking but use langfuse for LLM tracing\n\n### Actual Result\n\nType errors","author":{"url":"https://github.com/markwitt1","@type":"Person","name":"markwitt1"},"datePublished":"2025-07-12T06:44:28Z","url":"https://github.com/getsentry/sentry-javascript/issues/16969"}
| 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:4238b6bf-2b9c-5559-0c7f-034dcd2eabcc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A402:1A10EE:18D415:235AF4:6B05AB84 |
| html-safe-nonce | 7eb88d5289e3a40399630798957214045efc994e452aace6dc55f2387ba83409 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDAyOjFBMTBFRToxOEQ0MTU6MjM1QUY0OjZCMDVBQjg0IiwidmlzaXRvcl9pZCI6IjY3NjE0MjU1OTg3NzUwNzk3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d673b5c196e8c02a5dc577c28b42d3c6082d25bdeef997324e0db60fa525f4a1 |
| hovercard-subject-tag | issue:3224947712 |
| 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/16969/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0b4aefecc5a9d1f9c6fbe94ff3e53b7d28122012896e2e17a9df2fd21dd1de43/getsentry/sentry-javascript/issues/16969 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0b4aefecc5a9d1f9c6fbe94ff3e53b7d28122012896e2e17a9df2fd21dd1de43/getsentry/sentry-javascript/issues/16969 |
| 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 | markwitt1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0b0a75b576b64dfa32421a785f31f49ed1e3a5d21b783307a7fd78864bf2e1d |
| 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 | 6d5f39f9528ff412d5d29191dbe92c097ad1b33e |
| 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