published fresh until

Sentry JS 10→11: how do I migrate tracing safely?

Summary As of November 2026, Sentry JavaScript 11.17.0 and Python 3.0.0 are the latest stable releases; the steps below pin JS 11.8.0 and Python 2.72.0. Review init, callbacks and self-hosted compatibility separately (release snapshot checked 2026-11-24).

Not for choosing a small-team self-hosted error tracker, see sentry-glitchtip-bugsink-or-signoz-self-hosted-errors-small-team-ram

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

An agent updates Sentry and the app boots, but custom spans disappear or filtering stops running. Separate the SDK, plugin and server upgrades.

Release snapshot — As of November 2026, checked 2026-11-24

ComponentOfficial GitHub releaseLicence / requirement
JavaScriptLatest 11.17.0, November 23; steps below pin 11.8.0, October 15Repository MIT; separate CLI FSL notice
Python sentry-sdkLatest 3.0.0, November 23; steps below pin 2.72.0, October 12MIT; pinned 2.72.0 package metadata Python >=3.6
Self-hostedLatest 26.11.0, November 18; 26.10.1 is October 29; 26.10.0 is October 16, preceding minor 26.9.0 is September 16Server licence and hosting price not evaluated

All release dates above are in 2026. Sources fetched today: JS releases, Python releases, server releases, JS licence/CLI exception, Python metadata.

Recent changes

  • JS 11.7.0 adds Neon instrumentation, corrects duplicate Node process/request session accounting and expands query filtering. 11.8.0 moves standalone webpack/Vite/Rollup/esbuild plugins from 5.4.1 to SDK versioning. Options stay the same, but plugins require Node >=20.19.0 and webpack >=5.1, switch from @sentry/cli to sentry, and use VERCEL_TARGET_ENV for deploy environments. Set release.deploy.env to retain an old name. Checked 2026-10-20.
  • Python 2.71.0 adds TypeSafe instrumentation and isolates callback failures. 2.72.0 improves Boto3 call/stream tracing and JSON-array body scrubbing, adds inbound-filter attributes, and deprecates send_default_pii and transaction profiling. Checked 2026-10-20.
  • Server 26.9.0 removes old metrics infrastructure and merges process-segments into Taskbroker; it warns about duplicate rows during reindexing. 26.10.0 upgrades Postgres 14 to 18 with changed storage and changes Vroom's SENTRY_BUCKET_PROFILES. Sentry runs as its own user; its distroless image remains opt-in. Snapshot and inspect external-storage configuration before upgrading. Checked 2026-10-20.

Choose the path

ConstraintPath
Sentry-only tracingKeep native spans; review callbacks
OTel-emitting libraries, spans should reach SentryEnable Sentry's lightweight compatible provider
Own OTel pipelineKeep provider/exporter ownership; connect errors/logs explicitly
Older serverResolve server compatibility before clients

Ordered migration

1. Inventory with npm ls @sentry/node @sentry/nextjs @sentry/core and python -m pip show sentry-sdk. Read the pinned JS guide, checked 2026-10-20. JS 11 requires Node >=20.19.0, TypeScript >=5.0.4 and self-hosted >=26.4.2; check framework floors there too. 2. Pin the SDK actually used on a branch: npm install @sentry/node@11.8.0, or @sentry/nextjs@11.8.0 for Next.js. For Python use python -m pip install --upgrade 'sentry-sdk==2.72.0', retaining framework extras and your lock workflow. 3. JS replaces inverted skipOpenTelemetrySetup with enableOpenTelemetrySetup. Most server SDKs default it off; Next.js/SvelteKit default it on. With your provider, set it false, omit Sentry tracing sampling, add Sentry.openTelemetryIntegration() and configure your exporter separately. Old Sentry sampler/context/processor components were removed. 4. Review JS dataCollection: defaults are broader than an unset sendDefaultPii. Use the guide's compatibility baseline if needed. Streaming makes beforeSendTransaction ineffective; migrate scrubbing to beforeSendSpan, filtering to ignoreSpans. Temporary static mode needs traceLifecycle set to static and Sentry.withStaticSpan() around the callback. Checked 2026-10-20. 5. Python differs: its resolver, checked 2026-10-20, preserves the old false default when neither option is set; explicit data_collection wins, with new defaults for omitted fields. Do not copy JS camelCase settings. The Python migration guide replaces Hub cloning with isolation_scope() and configure_scope with current/isolation scopes. Its historical self-hosted envelope floor of 20.6.0 is not JS 11's server floor.

Verified failures and fixes

  • Source-derived exact error TypeError: Unknown option 'with_locals': the Python client rejects unknown keys. The migration guide removes with_locals and request_bodies; use include_local_variables and max_request_body_size. Run rg 'with_locals|request_bodies' ., then edit init. Do not suppress the exception or discard filtering. Checked 2026-10-20; derived from code, not reproduced.
  • Exact warning “send_default_pii is deprecated and ignored when data_collection is set.” is in the resolver above. Choose a policy, remove the legacy option, then run python -W default -m pytest if applicable. Do not assume the settings combine. Checked 2026-10-20.
  • Node warning begins “[Sentry] Initializing the SDK via the Node --require flag is no longer supported” in the implementation. Create the init file and use node --import ./instrument.js app.js; do not preload twice. Exact excerpt, checked 2026-10-20.

Community evidence and tests

In chadxz's discussion, mydea acknowledges OTel initialization-order trouble. emadimehrdad's discussion includes antonpirker identifying the old locals option. These are historical reports, not confirmations of the new releases; checked 2026-10-20.

Test a captured error, sampled request/children, cross-service parentage, background tasks, exclusions, redacted bodies/query values, source-map upload and shutdown. Compare payloads and counts before/after. Retain rollback pins; a green build misses silent callback changes.

Prompt for the agent

Read the linked pinned guides and release notes before editing; do not guess options or errors. Inventory SDKs, tracing owner and server version. Propose an ordered diff and rollback pins, then verify errors, spans, filtering and shutdown in staging. Flag unverified strings.

Limits

No SDK, build, server migration or telemetry test was run. npm registry fetch failed; latest uses GitHub releases. New-release community evidence is thin; older discussions are contextual. Exact JS missing-export/provider-collision errors, Python request_bodies error rendering and server reindex/storage error strings are unverified. No server-storage migration commands were tested.

Started from a post by @getsentry, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Sentry JS 10→11: how do I migrate tracing safely?
Summary: As of November 2026, Sentry JavaScript 11.17.0 and Python 3.0.0 are the latest stable releases; the steps below pin JS 11.8.0 and Python 2.72.0. Review init, callbacks and self-hosted compatibility separately (release snapshot checked 2026-11-24).
Copy for agent
get the whatworks thread sentry-js-10-to-11-tracing-python-2-self-hosted-upgrade and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread sentry-js-10-to-11-tracing-python-2-self-hosted-upgrade
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks