Skip to content

feat(opentelemetry): Add SentryTracerProvider#21666

Open
andreiborza wants to merge 1 commit into
developfrom
ab/sentry-trace-provider-otel
Open

feat(opentelemetry): Add SentryTracerProvider#21666
andreiborza wants to merge 1 commit into
developfrom
ab/sentry-trace-provider-otel

Conversation

@andreiborza

Copy link
Copy Markdown
Member

Add a minimal OpenTelemetry TracerProvider that creates native Sentry spans instead of bridging through the full OTel SDK.

Note: Hooking up the provider and e2e tests will come in the next and final PR.

@andreiborza andreiborza requested a review from a team as a code owner June 19, 2026 17:58
@andreiborza andreiborza requested review from JPeer264 and mydea and removed request for a team June 19, 2026 17:58

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 3 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 4b5cc15. Configure here.

Comment thread packages/opentelemetry/src/tracer.ts
Comment thread packages/opentelemetry/src/tracer.ts
Comment thread packages/opentelemetry/src/applyOtelSpanData.ts
Comment thread packages/opentelemetry/src/applyOtelSpanData.ts
@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 27.45 kB - -
@sentry/browser - with treeshaking flags 25.88 kB - -
@sentry/browser (incl. Tracing) 45.93 kB -0.03% -10 B 🔽
@sentry/browser (incl. Tracing + Span Streaming) 47.69 kB -0.02% -8 B 🔽
@sentry/browser (incl. Tracing, Profiling) 50.72 kB -0.02% -9 B 🔽
@sentry/browser (incl. Tracing, Replay) 85.13 kB -0.02% -10 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 74.72 kB -0.01% -7 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 89.82 kB -0.02% -10 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 102.48 kB -0.01% -7 B 🔽
@sentry/browser (incl. Feedback) 44.62 kB - -
@sentry/browser (incl. sendFeedback) 32.24 kB - -
@sentry/browser (incl. FeedbackAsync) 37.38 kB - -
@sentry/browser (incl. Metrics) 28.52 kB - -
@sentry/browser (incl. Logs) 28.76 kB - -
@sentry/browser (incl. Metrics & Logs) 29.45 kB - -
@sentry/react 29.25 kB - -
@sentry/react (incl. Tracing) 48.23 kB -0.02% -8 B 🔽
@sentry/vue 32.6 kB -0.03% -7 B 🔽
@sentry/vue (incl. Tracing) 47.8 kB -0.02% -8 B 🔽
@sentry/svelte 27.48 kB - -
CDN Bundle 29.84 kB - -
CDN Bundle (incl. Tracing) 47.85 kB -0.02% -6 B 🔽
CDN Bundle (incl. Logs, Metrics) 31.39 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.19 kB -0.02% -6 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) 70.7 kB - -
CDN Bundle (incl. Tracing, Replay) 85.2 kB -0.01% -5 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.47 kB -0.01% -8 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 91.05 kB -0.01% -4 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.3 kB -0.01% -7 B 🔽
CDN Bundle - uncompressed 88.8 kB - -
CDN Bundle (incl. Tracing) - uncompressed 144.85 kB +0.02% +16 B 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 93.5 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 148.83 kB +0.02% +16 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 218.33 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 263.72 kB +0.01% +16 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 267.68 kB +0.01% +16 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 277.42 kB +0.01% +16 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 281.37 kB +0.01% +16 B 🔺
@sentry/nextjs (client) 50.63 kB -0.01% -4 B 🔽
@sentry/sveltekit (client) 46.33 kB -0.01% -4 B 🔽
@sentry/core/server 75.88 kB +0.04% +25 B 🔺
@sentry/core/browser 63.02 kB +0.03% +13 B 🔺
@sentry/node-core 61.68 kB +0.09% +50 B 🔺
@sentry/node 123.66 kB +0.05% +53 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 69.95 kB - -
@sentry/node/light 50.55 kB -0.01% -2 B 🔽
@sentry/node - without tracing 73.74 kB +0.07% +48 B 🔺
@sentry/aws-serverless 84.93 kB +0.04% +33 B 🔺
@sentry/cloudflare (withSentry) - minified 172.94 kB +0.03% +49 B 🔺
@sentry/cloudflare (withSentry) 432.62 kB +0.04% +145 B 🔺

View base workflow run

@andreiborza andreiborza force-pushed the ab/sentry-trace-provider-otel branch from 4b5cc15 to 20bf510 Compare June 19, 2026 23:02
Add a minimal OpenTelemetry `TracerProvider` that creates native Sentry spans
instead of bridging through the full OTel SDK.
@andreiborza andreiborza force-pushed the ab/sentry-trace-provider-otel branch from 20bf510 to 7f2f88d Compare June 19, 2026 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant