---
title: "Sentry JavaScript SDK v11 adds tracing for all JS platforms"
description: "Sentry JavaScript SDK v11 replaces OpenTelemetry-based tracing with a code transformer from the apm-js-collab packages that injects diagnostics channels into supported modules at load time. The transform wraps target functions in tracingChannel() calls, and Sentry integrations subscribe to those channels to create native spans directly from the events. This approach works both at runtime via Module.registerHooks and at build time through bundler plugins for Vite, esbuild, webpack, and others, with no risk of double-wrapping. The previous OpenTelemetry instrumentation required Node-specific loader hooks, could not instrument bundled dependencies, and had ordering issues with ESM imports, limiting support to Node.js. v11 extends automatic tracing to Cloudflare Workers, Deno, Bun, and bundled server deployments while offering three OpenTelemetry integration modes: Sentry only, OpenTelemetry-compatible, or custom OTel with OTLP export."
---

# Sentry JavaScript SDK v11 adds tracing for all JS platforms

[Sentry](https://yomu.fyi/company/sentry) · Isaac Z. Schlueter · Oct 9, 2026

**Type:** Announcement

## Summary

Sentry JavaScript SDK v11 replaces OpenTelemetry-based tracing with a code transformer from the apm-js-collab packages that injects diagnostics channels into supported modules at load time. The transform wraps target functions in tracingChannel() calls, and Sentry integrations subscribe to those channels to create native spans directly from the events. This approach works both at runtime via Module.registerHooks and at build time through bundler plugins for Vite, esbuild, webpack, and others, with no risk of double-wrapping. The previous OpenTelemetry instrumentation required Node-specific loader hooks, could not instrument bundled dependencies, and had ordering issues with ESM imports, limiting support to Node.js. v11 extends automatic tracing to Cloudflare Workers, Deno, Bun, and bundled server deployments while offering three OpenTelemetry integration modes: Sentry only, OpenTelemetry-compatible, or custom OTel with OTLP export.

## Context

The post announces the release of Sentry JavaScript SDK v11, which fundamentally changes how tracing integrations work. The previous approach relied on OpenTelemetry instrumentation classes that required Node-specific loader hooks, could not instrument bundled dependencies, and had ordering issues with ESM imports. The new approach extends automatic tracing to Cloudflare Workers, Deno, Bun, and bundled server deployments while simplifying the architecture.

## Approach / What changed

The Sentry JavaScript SDK v11 replaces OpenTelemetry-based instrumentation with a code transformer from the apm-js-collab packages. The transformer injects diagnostics channels into supported modules at load time by wrapping target functions in tracingChannel() calls. Sentry integrations subscribe to those channels to create native spans. This works at runtime via Module.registerHooks on Node and Deno, and at build time through bundler plugins for Vite, esbuild, webpack, and others. The same transform runs in both contexts without double-wrapping.

## Takeaways

- The new tracing uses a code transformer to inject diagnostics channels into modules, replacing OpenTelemetry instrumentation classes.
- The approach works on Node, Deno, Bun, and Cloudflare Workers, and with bundlers like Vite, esbuild, webpack, and Turbopack.
- v11 offers three OpenTelemetry integration modes: Sentry only (default), OpenTelemetry-compatible mode, or custom OTel with OTLP export.

## FAQ

### How does the new tracing work in v11?

The new tracing uses a code transformer that injects diagnostics channels into modules at load time. Sentry integrations subscribe to those channels and create native spans directly from the events, without relying on OpenTelemetry instrumentation classes.

### What platforms does v11 support for tracing?

v11 supports Node, Deno, Bun, and Cloudflare Workers. It works at runtime via Module.registerHooks and at build time through bundler plugins for Vite, esbuild, webpack, and Turbopack, enabling tracing on platforms that previously had little or none.

### How do I migrate from v10 to v11?

Follow the migration guide and enable debug: true on first run to see which modules are instrumented. Note that skipOpenTelemetrySetup is replaced by enableOpenTelemetrySetup with inverted meaning, and custom OTel setups should export over OTLP using Sentry.getOtlpTracesEndpoint.

**Tags:** [JavaScript](https://yomu.fyi/topic/javascript), [OpenTelemetry](https://yomu.fyi/topic/opentelemetry), [Sentry](https://yomu.fyi/topic/sentry), [Tracing](https://yomu.fyi/topic/tracing)

- Source: [Sentry](https://blog.sentry.io/tracing-for-all-js-platforms)
- Source URL: https://blog.sentry.io/tracing-for-all-js-platforms
- Ingested by Yomu: 2026-10-09T21:00:10.898Z

[Read original post](https://blog.sentry.io/tracing-for-all-js-platforms)
