Title: Capture exceptions from OpenTelemetry span events · Issue #16015 · getsentry/sentry-javascript · GitHub
Open Graph Title: Capture exceptions from OpenTelemetry span events · Issue #16015 · getsentry/sentry-javascript
X Title: Capture exceptions from OpenTelemetry span events · Issue #16015 · getsentry/sentry-javascript
Description: Problem Statement I would like to request a way to capture exceptions from OpenTelemetry span events as Sentry errors in my NestJS application. Currently, exceptions that occur and are recorded in OpenTelemetry spans are not being conver...
Open Graph Description: Problem Statement I would like to request a way to capture exceptions from OpenTelemetry span events as Sentry errors in my NestJS application. Currently, exceptions that occur and are recorded in ...
X Description: Problem Statement I would like to request a way to capture exceptions from OpenTelemetry span events as Sentry errors in my NestJS application. Currently, exceptions that occur and are recorded in ...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/16015
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Capture exceptions from OpenTelemetry span events","articleBody":"### Problem Statement\n\nI would like to request a way to capture exceptions from OpenTelemetry span events as Sentry errors in my NestJS application. Currently, exceptions that occur and are recorded in OpenTelemetry spans are not being converted to Sentry errors, which limits my error tracking capabilities.\n\nAccording to the SDK documentation (https://develop.sentry.dev/sdk/telemetry/traces/opentelemetry), exceptions from span events should be converted to Sentry errors. I noticed this feature was removed in PR #11221 with a mention that it might return as an opt-in feature in the future.\n\n### Environment\n- Sentry SDK version: \"@sentry/nestjs\": \"^9.9.0\"\n- OpenTelemetry version: \"@opentelemetry/sdk-node\": \"0.57.2\", \"@opentelemetry/api\": \"1.9.0\"\n- Platform/language: Node.js/NestJS\n\n### Solution Brainstorm\n\nI would greatly appreciate if this feature could be reintroduced as an opt-in configuration option. I noticed this functionality is already implemented in the .NET SDK https://github.com/getsentry/sentry-dotnet/blob/762c056ea9102bf93c7dd5c4e0055d661dcf1ec8/src/Sentry.OpenTelemetry/SentrySpanProcessor.cs#L447 , which could perhaps serve as a reference for the JavaScript/Node.js implementation.\n\nAn opt-in approach would allow users who need this functionality to enable it while not affecting those who don't require it. This would be incredibly helpful for my error monitoring workflow.\n\n\n\nThank you for considering this request!\n","author":{"url":"https://github.com/sadriddin","@type":"Person","name":"sadriddin"},"datePublished":"2025-04-09T05:28:14Z","url":"https://github.com/getsentry/sentry-javascript/issues/16015"}
| 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:e967b50d-ee4d-92db-554a-60da36f953c7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B75A:C5218:106865:167BDD:6B04B1AB |
| html-safe-nonce | dd6d31df9573cd4cb5044dad40975b42f4d85ae510a9d64964ba25f6f5a749cb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzVBOkM1MjE4OjEwNjg2NToxNjdCREQ6NkIwNEIxQUIiLCJ2aXNpdG9yX2lkIjoiMjkwODg4NDEyOTQ3NTkxNTk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f761b4eb93b5420f3e9741eba32ebdfddc42d0e35599731a054cf226c218f7c0 |
| hovercard-subject-tag | issue:2981575161 |
| 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/16015/issue_layout |
| twitter:image | https://opengraph.githubassets.com/12032f8204f71b3a3dfa75b8b8a948463e0a8d196b34cbe98e4ab27ebaf8a6b6/getsentry/sentry-javascript/issues/16015 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/12032f8204f71b3a3dfa75b8b8a948463e0a8d196b34cbe98e4ab27ebaf8a6b6/getsentry/sentry-javascript/issues/16015 |
| og:image:alt | Problem Statement I would like to request a way to capture exceptions from OpenTelemetry span events as Sentry errors in my NestJS application. Currently, exceptions that occur and are recorded in ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sadriddin |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| 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 | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| ui-target | canary-2 |
| 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