---
title: "Sentry JavaScript SDK v11 adds tracing for all JS platforms"
description: "Sentry's JavaScript SDK v11 replaces OpenTelemetry export-patching instrumentations (require-in-the-middle, import-in-the-middle, shimmer) with a source-code transformer that injects node:diagnostics_channel tracingChannel calls into library functions, plus integrations that subscribe to those channels and emit Sentry spans."
url: "https://swe.quest/articles/sentry-javascript-sdk-v11-adds-tracing-for-all-js-platforms-2ee0190e0544fb8c"
canonical: "https://blog.sentry.io/tracing-for-all-js-platforms/"
source: "Sentry"
published: "2026-10-09"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 12
tags: ["observability","javascript","build-systems","runtimes"]
---

# Sentry JavaScript SDK v11 adds tracing for all JS platforms

A post on [Sentry](https://swe.quest/sources/sentry.md), published 2026-10-09, 12 min read, Deep dive. Original: [https://blog.sentry.io/tracing-for-all-js-platforms/](https://blog.sentry.io/tracing-for-all-js-platforms/)

## Summary

Sentry's JavaScript SDK v11 replaces OpenTelemetry export-patching instrumentations (require-in-the-middle, import-in-the-middle, shimmer) with a source-code transformer that injects node:diagnostics\_channel tracingChannel calls into library functions, plus integrations that subscribe to those channels and emit Sentry spans. Because the transform rewrites source rather than mutating exports, it runs both at runtime via Module.registerHooks and at build time via Vite, Rollup, webpack, esbuild and bun build plugins. That makes bundled deployments, Cloudflare Workers, Deno and Bun traceable and removes preload hacks and most OpenTelemetry dependencies. Caveats: load order still matters, --require is dropped, instrumented libraries must not be externalized, Bun runtime hooks are blocked by a CJS export bug, and debug: true reports what got injected.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [Runtimes & VMs](https://swe.quest/tags/runtimes.md) (Compilers & runtimes)

## Prerequisites

- Node.js module loading (CJS/ESM) ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- JavaScript bundlers ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- distributed tracing basics ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))

## Keywords

Sentry, OpenTelemetry, diagnostics\_channel, import-in-the-middle, Cloudflare Workers, Deno, Bun, Vite

## Related posts

- [OpenTelemetry for JavaScript Observability at Zalando](https://swe.quest/articles/opentelemetry-for-javascript-observability-at-zalando-001cdd3c281fae3c.md): Zalando Engineering · 2024-07-28 · Medium · 11 min read · Observability, JavaScript, Frontend, Web performance
  Zalando built thin OpenTelemetry-based observability SDKs for Node.js and the browser, sharing a common API package so isomorphic apps can be instrumented consistently.
- [How to get deep traces in your Node.js backend with OTel and Deno](https://swe.quest/articles/how-to-get-deep-traces-in-your-node-js-backend-with-otel-and-deno-e60be1ff8da59b5c.md): Deno · 2025-03-13 · Medium · 6 min read · Observability, JavaScript, Runtimes & VMs
  Running an unmodified Node.js Express server under Deno 2.2+ with the \`--unstable-otel\` flag yields OpenTelemetry traces and span-correlated logs with no code changes.
- [Zero-config Debugging with Deno and OpenTelemetry](https://swe.quest/articles/zero-config-debugging-with-deno-and-opentelemetry-84e6e1786536c301.md): Deno · 2025-04-09 · Medium · 9 min read · Observability, Debugging, Runtimes & VMs, TypeScript
  Deno's built-in OpenTelemetry support (enabled with --unstable-otel) automatically correlates console.log output with trace IDs, creates spans for incoming and outgoing HTTP requests, propagates W3C tracecontext headers across services, and records request-count and latency metrics by status code, all without code changes.
- [Build a dinosaur runner game with Deno, pt. 6](https://swe.quest/articles/build-a-dinosaur-runner-game-with-deno-pt-6-d21d409df6156ed0.md): Deno · 2026-02-23 · Medium · 9 min read · Observability, JavaScript, TypeScript
  The final stage of the Deno dinosaur runner series adds observability using Deno Deploy's built-in logs, traces and metrics dashboards.
- [Connect client traces to your logs](https://swe.quest/articles/connect-client-traces-to-your-logs-499f3b0db3b62deb.md): Supabase · 2026-08-18 · Medium · 3 min read · Observability, JavaScript
  supabase-js can now propagate W3C Trace Context (traceparent, tracestate, baggage headers) to Supabase, so a client trace\_id is stamped onto API Gateway and Edge Function logs and can be joined with browser spans in OpenTelemetry, Sentry, Datadog and similar tools, including via Log Drains.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
