Skip to content

feat(opentelemetry)!: Remove SentrySpanProcessor & SentrySampler#22557

Merged
mydea merged 1 commit into
developfrom
fn/remove-exporter
Jul 27, 2026
Merged

feat(opentelemetry)!: Remove SentrySpanProcessor & SentrySampler#22557
mydea merged 1 commit into
developfrom
fn/remove-exporter

Conversation

@mydea

@mydea mydea commented Jul 23, 2026

Copy link
Copy Markdown
Member

This PR removes the SentrySpanProcessor and SentrySampler, as well as related options in Node SDKs.

Main removals

This removes the SentrySpanProcessor (and with it, the SentryExporter which was used by it) as well as the SentrySampler. With this, it no longer becomes possible to do a custom otel setup (like it used to be, this will work differently going forward), so related tests are removed. This also removes the @opentelemetry/sdk-trace-base dependency, which is no longer needed.

Removed options

The following options where related only to the span processor and are thus removed:

  • maxSpanWaitDuration
  • openTelemetryInstrumentations
  • openTelemetrySpanProcessors
  • openTelemetryBasicTracerProvider

Other removals

Other, less important things that are removed:

  • validateOpenTelemetrySetup
  • wrapSamplingDecision
  • Some related types we used for this

Importantly, the context manager and propagator remain for now.

@mydea mydea changed the title feat(opentelemetry): Remove SentrySpanProcessor & SentrySampler feat(opentelemetry)!: Remove SentrySpanProcessor & SentrySampler Jul 23, 2026
export { wrapContextManagerClass } from './contextManager';

export { SentryPropagator, shouldPropagateTraceForUrl } from './propagator';
export { SentrySpanProcessor } from './spanProcessor';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Public APIs removed without deprecation

High Severity

This removes public exports and options (SentrySpanProcessor, SentrySampler, wrapSamplingDecision, validateOpenTelemetrySetup, openTelemetrySpanProcessors, openTelemetryBasicTracerProvider, openTelemetryInstrumentations) in a non-major release without deprecation notices. Existing custom OpenTelemetry setups that import these will break at compile or runtime.

Additional Locations (2)
Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

Reviewed by Cursor Bugbot for commit a6425a2. Configure here.

Comment thread dev-packages/node-integration-tests/suites/tracing/prisma-orm-v5/test.ts Outdated
@mydea
mydea force-pushed the fn/remove-exporter branch from bd70561 to 29be8c9 Compare July 23, 2026 14:18

@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 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

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 29be8c9. Configure here.

Comment thread packages/node/src/sdk/initOtel.ts
@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 27.95 kB - -
@sentry/browser - with treeshaking flags 26.39 kB - -
@sentry/browser (incl. Tracing) 46.41 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.18 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.21 kB - -
@sentry/browser (incl. Tracing, Replay) 85.69 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.33 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 90.4 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 103.06 kB - -
@sentry/browser (incl. Feedback) 45.13 kB - -
@sentry/browser (incl. sendFeedback) 32.74 kB - -
@sentry/browser (incl. FeedbackAsync) 37.8 kB - -
@sentry/browser (incl. Metrics) 29.04 kB - -
@sentry/browser (incl. Logs) 29.26 kB - -
@sentry/browser (incl. Metrics & Logs) 29.97 kB - -
@sentry/react 29.75 kB - -
@sentry/react (incl. Tracing) 48.71 kB - -
@sentry/vue 33.38 kB - -
@sentry/vue (incl. Tracing) 48.4 kB - -
@sentry/svelte 27.97 kB - -
CDN Bundle 30.28 kB - -
CDN Bundle (incl. Tracing) 48.26 kB - -
CDN Bundle (incl. Logs, Metrics) 31.85 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.58 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 71.13 kB - -
CDN Bundle (incl. Tracing, Replay) 85.83 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 87.14 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.6 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.89 kB - -
CDN Bundle - uncompressed 90.15 kB - -
CDN Bundle (incl. Tracing) - uncompressed 145.22 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 94.86 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 149.2 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 219.62 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 264.46 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 268.42 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 278.16 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 282.11 kB - -
@sentry/nextjs (client) 51.23 kB - -
@sentry/sveltekit (client) 46.84 kB - -
@sentry/core/server 80.05 kB - -
@sentry/core/browser 52.01 kB - -
@sentry/node 112.66 kB -8.51% -10.47 kB 🔽
@sentry/node (incl. diagnostics channel injection) 156.79 kB -6.2% -10.35 kB 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 166 B - -
@sentry/node - without tracing 62.19 kB -15.17% -11.12 kB 🔽
@sentry/aws-serverless 72.46 kB -12.51% -10.36 kB 🔽
@sentry/cloudflare (withSentry) - minified 197.05 kB - -
@sentry/cloudflare (withSentry) 484.73 kB - -

View base workflow run

@mydea
mydea force-pushed the fn/remove-exporter branch 2 times, most recently from 11fa52b to 0905bde Compare July 24, 2026 07:20
@mydea
mydea changed the base branch from develop to fn/otel-span-status July 24, 2026 07:20
Base automatically changed from fn/otel-span-status to develop July 24, 2026 08:05
@mydea
mydea marked this pull request as ready for review July 24, 2026 08:06
@mydea
mydea force-pushed the fn/remove-exporter branch from 0905bde to f9af65e Compare July 24, 2026 08:07
@mydea
mydea requested review from a team as code owners July 24, 2026 08:07
@mydea
mydea force-pushed the fn/remove-exporter branch from f9af65e to 7bcf030 Compare July 27, 2026 08:25
@mydea
mydea requested review from Lms24, andreiborza and msonnb July 27, 2026 08:25

@andreiborza andreiborza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread packages/node/src/sdk/client.ts
"@opentelemetry/api": "^1.9.1",
"@opentelemetry/core": "^2.9.0",
"@opentelemetry/instrumentation": "^0.220.0",
"@opentelemetry/sdk-trace-base": "^2.9.0",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Image

@andreiborza andreiborza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Image

@mydea

mydea commented Jul 27, 2026

Copy link
Copy Markdown
Member Author

For completeness: we talked about this, we do not need a full list of changes/migrations for the opentelemetry package because this will go away anyhow.

@mydea
mydea merged commit 09a015e into develop Jul 27, 2026
277 checks passed
@mydea
mydea deleted the fn/remove-exporter branch July 27, 2026 11:30
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.

2 participants