@opentelemetry/sdk-trace breaking changes
@opentelemetry/sdk-trace 3.0.0 (October 20, 2026) is its newest release with breaking changes, 34 of them. The first: @opentelemetry/sdk-trace 3.0.0 requires Node.js 22.15.0 or later. Every breaking API change we have recorded in @opentelemetry/sdk-trace on npm: 41 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.1.2, released December 2, 2026. Source repository
Its 3.0.0 release requires Node.js 22.15.0 or later. Node.js end of life dates.
- From 2.11.0 to 3.0.0: 34 breaking changes in 1 version.
- From 2.10.0 to 3.0.0: 39 breaking changes in 2 versions.
@opentelemetry/sdk-trace 3.0.0 breaking changes
- Removed
Node.js 18 and 20 are no longer supported. Upgrade Node.js to 22.15.0 or later before using this release. github.com - Removed
Node.js 18 and 20 are no longer supported. Upgrade Node.js to 22.15.0 or later before using these packages. github.com - Removed
Package exports now allowlist subpaths, so imports like @opentelemetry/core/build/src/... fail. Import only the listed subpaths or the package root. github.com - Removed
Tools that used esnext now fall back to module or main. github.com - Removed
Importing the package.json of an SDK package no longer works. Use SDK_INFO from @opentelemetry/core for the version. github.com - Removed
<package>.package.json
Read the version from your own dependency metadata, or use SDK_INFO for the SDK version. github.com - Removed
AsyncHooksContextManager
The class is removed. Code that imports it must stop using it. github.com - Removed
generalLimits
Merge those limits into the spanLimits argument instead. github.com - Removed
platform
Import from the package root instead. github.com - Removed
platform.browser
Import from the package root instead. github.com - Removed
TracerProviderOptions.forceFlushTimeoutMillis
Pass timeoutMillis to provider.forceFlush instead. The default timeout is 30000ms. npmjs.com - Renamed
BasicTracerProvider
Rename uses to TracerProvider from @opentelemetry/sdk-trace. github.com - Behavior changed
Internal file paths changed and deep imports into the packages no longer work. Import only from package entry points. github.com - Behavior changed
Complex attribute values for a Resource are no longer supported and are dropped with a warning. github.com - Behavior changed
Limit and sampler environment variables are no longer used as fallbacks. Set them in code or use sdk-node. github.com - Behavior changed
Complex attribute values for a Logger instrumentation scope are no longer supported and are dropped with a warning. github.com - Behavior changed
Batch processor settings from OTEL_BSP environment variables are no longer used as fallbacks. Pass them in code. github.com - Behavior changed
cleanAttributes
cleanAttributes and maybeAddAttribute now remove undefined properties from object values, so code relying on them being kept will see different output. github.com - Behavior changed
startSpan
Span attributes given at startSpan now count toward the attribute limit, so some spans may drop attributes they kept before. github.com - Configuration changed
Bundlers without imports support fail; webpack needs 5.54 or later and Parcel needs package exports enabled. github.com - Configuration changed
Bundlers need to resolve the imports and exports fields and the node condition for Node.js builds. Upgrade bundlers to the listed minimum versions. github.com - Signature changed
BatchSpanProcessor
Pass the exporter as the exporter field of a single options object. github.com - Signature changed
BatchSpanProcessor.onStart
Was onStart(_span: Span, _parentContext: Context): void; now onStart(_span: Span$1, _parentContext: Context): void. npmjs.com - Signature changed
BatchSpanProcessorBrowserOptions
Was interface BatchSpanProcessorBrowserOptions extends BatchSpanProcessorOptions; now type BatchSpanProcessorBrowserOptions = BatchSpanProcessorOptions. npmjs.com - Signature changed
NoopSpanProcessor.onStart
Was onStart(_span: Span, _context: Context): void; now onStart(_span: Span$1, _context: Context): void. npmjs.com - Signature changed
RandomIdGenerator.generateSpanId
Was generateSpanId: () => string; now generateSpanId(): string. npmjs.com - Signature changed
RandomIdGenerator.generateTraceId
Was generateTraceId: () => string; now generateTraceId(): string. npmjs.com - Signature changed
SimpleSpanProcessor
Pass the exporter as the exporter field of a single options object. github.com - Signature changed
SimpleSpanProcessor.onStart
Was onStart(_span: Span, _parentContext: Context): void; now onStart(_span: Span$1, _parentContext: Context): void. npmjs.com - Signature changed
Span
Was type Span = APISpan & ReadableSpan; now type Span$1 = Span & ReadableSpan. npmjs.com - Signature changed
SpanProcessor.onEnding
Was onEnding?(span: Span): void; now onEnding?(span: Span$1): void. npmjs.com - Signature changed
SpanProcessor.onStart
Was onStart(span: Span, parentContext: Context): void; now onStart(span: Span$1, parentContext: Context): void. npmjs.com - Signature changed
TracerProvider
Was class TracerProvider implements ApiTracerProvider; now class TracerProvider$1 implements TracerProvider. npmjs.com - Signature changed
TracerProvider.getTracer
Was getTracer(name: string, version?: string, options?: {schemaUrl?: string;}): ApiTracer; now getTracer(name: string, version?: string, options?: {schemaUrl?: string;}): Tracer. npmjs.com
@opentelemetry/sdk-trace 2.11.0 breaking changes
- Behavior changed
Creating a Propagator from a config file now throws on invalid config instead of continuing. Code that relied on silent failure must handle the thrown error. github.com - Behavior changed
Creating a MeterProvider from a config file now throws on invalid config instead of continuing. Code that relied on silent failure must handle the thrown error. github.com - Behavior changed
Creating a Resource from a config file now throws on invalid config instead of continuing. Code that relied on silent failure must handle the thrown error. github.com - Behavior changed
Creating a TracerProvider from a config file now throws on invalid config instead of continuing. Code that relied on silent failure must handle the thrown error. github.com - Signature changed
TracerProvider.forceFlush
Was forceFlush(): Promise<void>; now forceFlush(options?: ForceFlushOptions): Promise<void>. npmjs.com
@opentelemetry/sdk-trace 2.10.0 breaking changes
- Behavior changed
SimpleSpanProcessor.forceFlush
forceFlush() now rejects if a pending export fails, where callers previously got no rejection. Handle the rejection in code that awaits it. github.com - Signature changed
This breaking change in sdk-logs makes the force flush timeout a per-call setting. Update callers that relied on the previous configuration. github.com
Related packages
- @opentelemetry/core
- @opentelemetry/semantic-conventions
- @opentelemetry/sdk-node
- @opentelemetry/sdk-metrics
- @opentelemetry/exporter-prometheus
- @opentelemetry/otlp-exporter-base
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.