---
title: "@opentelemetry/sdk-trace 3.0.0 Breaking Changes on npm"
description: "What each @opentelemetry/sdk-trace release removed, renamed or changed: 41 breaking changes in 3 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@opentelemetry/sdk-trace
last_updated: 2026-12-04
---

# @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

Latest version `3.1.2`, released December 2, 2026. [Source repository](https://github.com/open-telemetry/opentelemetry-js)

Its 3.0.0 release requires Node.js 22.15.0 or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [2.11.0](#v-2-11-0) to [3.0.0](#v-3-0-0): 34 breaking changes in 1 version.
- From [2.10.0](#v-2-10-0) to [3.0.0](#v-3-0-0): 39 breaking changes in 2 versions.

## @opentelemetry/sdk-trace 3.0.0 breaking changes

@opentelemetry/sdk-trace 3.0.0, released October 20, 2026: 34 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](https://github.com/open-telemetry/opentelemetry-js/releases/tag/v3.0.0)
- **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](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/3.x/migration-guide.md)
- **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](https://github.com/open-telemetry/opentelemetry-js/releases/tag/v3.0.0)
- **Removed**  

Tools that used esnext now fall back to module or main. [github.com](https://github.com/open-telemetry/opentelemetry-js/releases/tag/v3.0.0)
- **Removed**  

Importing the package.json of an SDK package no longer works. Use SDK_INFO from @opentelemetry/core for the version. [github.com](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/3.x/migration-guide.md)
- **Removed** `<package>.package.json`  

Read the version from your own dependency metadata, or use SDK_INFO for the SDK version. [github.com](https://github.com/open-telemetry/opentelemetry-js/releases/tag/v3.0.0)
- **Removed** `AsyncHooksContextManager`  

The class is removed. Code that imports it must stop using it. [github.com](https://github.com/open-telemetry/opentelemetry-js/releases/tag/v3.0.0)
- **Removed** `generalLimits`  

Merge those limits into the spanLimits argument instead. [github.com](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/3.x/migration-guide.md)
- **Removed** `platform`  

Import from the package root instead. [github.com](https://github.com/open-telemetry/opentelemetry-js/releases/tag/v3.0.0)
- **Removed** `platform.browser`  

Import from the package root instead. [github.com](https://github.com/open-telemetry/opentelemetry-js/releases/tag/v3.0.0)
- **Removed** `TracerProviderOptions.forceFlushTimeoutMillis`  

Pass timeoutMillis to provider.forceFlush instead. The default timeout is 30000ms. [npmjs.com](https://www.npmjs.com/package/@opentelemetry/sdk-trace/v/3.0.0)
- **Renamed** `BasicTracerProvider`  

Rename uses to TracerProvider from @opentelemetry/sdk-trace. [github.com](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/3.x/migration-guide.md)
- **Behavior changed**  

Internal file paths changed and deep imports into the packages no longer work. Import only from package entry points. [github.com](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/3.x/migration-guide.md)
- **Behavior changed**  

Complex attribute values for a Resource are no longer supported and are dropped with a warning. [github.com](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/3.x/migration-guide.md)
- **Behavior changed**  

Limit and sampler environment variables are no longer used as fallbacks. Set them in code or use sdk-node. [github.com](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/3.x/migration-guide.md)
- **Behavior changed**  

Complex attribute values for a Logger instrumentation scope are no longer supported and are dropped with a warning. [github.com](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/3.x/migration-guide.md)
- **Behavior changed**  

Batch processor settings from OTEL_BSP environment variables are no longer used as fallbacks. Pass them in code. [github.com](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/3.x/migration-guide.md)
- **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](https://github.com/open-telemetry/opentelemetry-js/releases/tag/v3.0.0)
- **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](https://github.com/open-telemetry/opentelemetry-js/releases/tag/v3.0.0)
- **Configuration changed**  

Bundlers without imports support fail; webpack needs 5.54 or later and Parcel needs package exports enabled. [github.com](https://github.com/open-telemetry/opentelemetry-js/releases/tag/v3.0.0)
- **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](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/3.x/migration-guide.md)
- **Signature changed** `BatchSpanProcessor`  

Pass the exporter as the exporter field of a single options object. [github.com](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/3.x/migration-guide.md)
- **Signature changed** `BatchSpanProcessor.onStart`  

Was onStart(\_span: Span, \_parentContext: Context): void; now onStart(\_span: Span$1, \_parentContext: Context): void. [npmjs.com](https://www.npmjs.com/package/@opentelemetry/sdk-trace/v/3.0.0)
- **Signature changed** `BatchSpanProcessorBrowserOptions`  

Was interface BatchSpanProcessorBrowserOptions extends BatchSpanProcessorOptions; now type BatchSpanProcessorBrowserOptions = BatchSpanProcessorOptions. [npmjs.com](https://www.npmjs.com/package/@opentelemetry/sdk-trace/v/3.0.0)
- **Signature changed** `NoopSpanProcessor.onStart`  

Was onStart(\_span: Span, \_context: Context): void; now onStart(\_span: Span$1, \_context: Context): void. [npmjs.com](https://www.npmjs.com/package/@opentelemetry/sdk-trace/v/3.0.0)
- **Signature changed** `RandomIdGenerator.generateSpanId`  

Was generateSpanId: () => string; now generateSpanId(): string. [npmjs.com](https://www.npmjs.com/package/@opentelemetry/sdk-trace/v/3.0.0)
- **Signature changed** `RandomIdGenerator.generateTraceId`  

Was generateTraceId: () => string; now generateTraceId(): string. [npmjs.com](https://www.npmjs.com/package/@opentelemetry/sdk-trace/v/3.0.0)
- **Signature changed** `SimpleSpanProcessor`  

Pass the exporter as the exporter field of a single options object. [github.com](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/3.x/migration-guide.md)
- **Signature changed** `SimpleSpanProcessor.onStart`  

Was onStart(\_span: Span, \_parentContext: Context): void; now onStart(\_span: Span$1, \_parentContext: Context): void. [npmjs.com](https://www.npmjs.com/package/@opentelemetry/sdk-trace/v/3.0.0)
- **Signature changed** `Span`  

Was type Span = APISpan & ReadableSpan; now type Span$1 = Span & ReadableSpan. [npmjs.com](https://www.npmjs.com/package/@opentelemetry/sdk-trace/v/3.0.0)
- **Signature changed** `SpanProcessor.onEnding`  

Was onEnding?(span: Span): void; now onEnding?(span: Span$1): void. [npmjs.com](https://www.npmjs.com/package/@opentelemetry/sdk-trace/v/3.0.0)
- **Signature changed** `SpanProcessor.onStart`  

Was onStart(span: Span, parentContext: Context): void; now onStart(span: Span$1, parentContext: Context): void. [npmjs.com](https://www.npmjs.com/package/@opentelemetry/sdk-trace/v/3.0.0)
- **Signature changed** `TracerProvider`  

Was class TracerProvider implements ApiTracerProvider; now class TracerProvider$1 implements TracerProvider. [npmjs.com](https://www.npmjs.com/package/@opentelemetry/sdk-trace/v/3.0.0)
- **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](https://www.npmjs.com/package/@opentelemetry/sdk-trace/v/3.0.0)

## @opentelemetry/sdk-trace 2.11.0 breaking changes

@opentelemetry/sdk-trace 2.11.0, released August 31, 2026: 5 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](https://github.com/open-telemetry/opentelemetry-js/commit/3f9756ab3fb15aec3ac420f255cdbe70d3d280a8)
- **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](https://github.com/open-telemetry/opentelemetry-js/commit/d1db237b633751411ff0d84e0f2006fb451fcc4d)
- **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](https://github.com/open-telemetry/opentelemetry-js/commit/26eac901c04186d4fce936bfc067c745377b2edd)
- **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](https://github.com/open-telemetry/opentelemetry-js/commit/353f814b7b80e7b6331cd2f2d9b51fbcdea2db0d)
- **Signature changed** `TracerProvider.forceFlush`  

Was forceFlush(): Promise\<void>; now forceFlush(options?: ForceFlushOptions): Promise\<void>. [npmjs.com](https://www.npmjs.com/package/@opentelemetry/sdk-trace/v/2.11.0)

## @opentelemetry/sdk-trace 2.10.0 breaking changes

@opentelemetry/sdk-trace 2.10.0, released July 21, 2026: 2 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](https://github.com/open-telemetry/opentelemetry-js/releases/tag/v2.10.0)
- **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](https://github.com/open-telemetry/opentelemetry-js/commit/b4ef7a518f878f342f93f11b45df1ae1740a48ec)

## Related packages

- [@opentelemetry/core](https://since.dev/packages/npm/@opentelemetry/core.md)
- [@opentelemetry/semantic-conventions](https://since.dev/packages/npm/@opentelemetry/semantic-conventions.md)
- [@opentelemetry/sdk-node](https://since.dev/packages/npm/@opentelemetry/sdk-node.md)
- [@opentelemetry/sdk-metrics](https://since.dev/packages/npm/@opentelemetry/sdk-metrics.md)
- [@opentelemetry/exporter-prometheus](https://since.dev/packages/npm/@opentelemetry/exporter-prometheus.md)
- [@opentelemetry/otlp-exporter-base](https://since.dev/packages/npm/@opentelemetry/otlp-exporter-base.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
