Title: Support OpenTelemetry SDK v2 · Issue #15737 · getsentry/sentry-javascript · GitHub
Open Graph Title: Support OpenTelemetry SDK v2 · Issue #15737 · getsentry/sentry-javascript
X Title: Support OpenTelemetry SDK v2 · Issue #15737 · getsentry/sentry-javascript
Description: Description Today, the Node SDK uses & supports the OpenTelemetry SDK in version 1.x. Since v2 was released, we should look into supporting this as well. This is, as of now, a breaking change, as anybody using @sentry/node with custom st...
Open Graph Description: Description Today, the Node SDK uses & supports the OpenTelemetry SDK in version 1.x. Since v2 was released, we should look into supporting this as well. This is, as of now, a breaking change, as a...
X Description: Description Today, the Node SDK uses & supports the OpenTelemetry SDK in version 1.x. Since v2 was released, we should look into supporting this as well. This is, as of now, a breaking change, ...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/15737
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support OpenTelemetry SDK v2","articleBody":"### Description\n\nToday, the Node SDK uses & supports the OpenTelemetry SDK in version 1.x.\n\nSince [v2](https://github.com/open-telemetry/opentelemetry-js/releases/tag/v2.0.0) was released, we should look into supporting this as well.\n\nThis is, as of now, a breaking change, as anybody using `@sentry/node` with custom stuff that depends on OTEL v1 will have breakage once we update this.\n\nBecause of this, we will likely cut a v10 release soon-ish that _only_ bumps OTEL to v2.\n\nThere are a few pieces to this:\n\n1. Widen ranges of peerDependencies in `@sentry/opentelemetry` to allow both v1 and v2 (if possible - this can already happen on v9!)\n2. On v10 branch, bump the used versions of dependencies of `@sentry/node` to v2 of the OTEL SDKs\n a. We need to make sure that all instrumentations we use (e.g. prisma, remix, ...) are also on v2 first!\n3. While we are at this, we may re-visit how we handle/support users with custom OTEL setups. Today, it is pretty hard to make this work because we ship our own versions of everything, which easily conflicts with user versions. In order to solve this, we want to introduce a `@sentry/node-core` SDK, which does not include any OTEL dependencies (but instead has peerDependency ranges defined). This SDK ships without any instrumentations out of the box. It can be used both by users that want a custom OTEL setup, as well as for scenarios where you only need manual instrumentation (e.g. CLIs or similar). See https://github.com/getsentry/sentry-javascript/issues/15213\n\nExperimental work for this is being done here: https://github.com/getsentry/sentry-javascript/pull/15518","author":{"url":"https://github.com/mydea","@type":"Person","name":"mydea"},"datePublished":"2025-03-19T13:38:18Z","url":"https://github.com/getsentry/sentry-javascript/issues/15737"}
| 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:1cdcf148-06ba-5ef3-5f52-14beb05fe57c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF84:252F5F:1FC2F:299EF:6B04318E |
| html-safe-nonce | b0ad224c77821cadcfa2015c0cbd845ffa3b13f83f1ddf3630804c0a245f88a4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjg0OjI1MkY1RjoxRkMyRjoyOTlFRjo2QjA0MzE4RSIsInZpc2l0b3JfaWQiOiIyNDI5ODcyNzM3MjgwNjAyNTEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8198025037fa127d40c0d051979a855554588c95971aef6586288cc9ec99c98e |
| hovercard-subject-tag | issue:2931833018 |
| 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/15737/issue_layout |
| twitter:image | https://opengraph.githubassets.com/306b4298dba269e5140430e8a2215a6216472a8e7f35000784296cf93d87ed5d/getsentry/sentry-javascript/issues/15737 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/306b4298dba269e5140430e8a2215a6216472a8e7f35000784296cf93d87ed5d/getsentry/sentry-javascript/issues/15737 |
| og:image:alt | Description Today, the Node SDK uses & supports the OpenTelemetry SDK in version 1.x. Since v2 was released, we should look into supporting this as well. This is, as of now, a breaking change, as a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mydea |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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