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

# @opentelemetry/sdk-metrics breaking changes

@opentelemetry/sdk-metrics 3.1.0 (November 5, 2026) is its newest release with breaking changes. The first: Behavior changed startNodeSDK. Every breaking API change we have recorded in @opentelemetry/sdk-metrics on npm: 16 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 drops Node.js 18 and [20](https://since.dev/calendar/nodejs/20.md). [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [2.10.0](#v-2-10-0) to [3.1.0](#v-3-1-0): 13 breaking changes in 2 versions.

## @opentelemetry/sdk-metrics 3.1.0 breaking changes

@opentelemetry/sdk-metrics 3.1.0, released November 5, 2026: 1 breaking change.

- **Behavior changed** `startNodeSDK`  

The env-based configuration path for startNodeSDK was refactored and the commit is marked as breaking. Review code that relies on environment-driven startNodeSDK setup. [github.com](https://github.com/open-telemetry/opentelemetry-js/commit/7f9fbaca67a2b0de3f6bcb55d80a400ba8cccf5c)

## @opentelemetry/sdk-metrics 3.0.0 breaking changes

@opentelemetry/sdk-metrics 3.0.0, released October 20, 2026: 12 breaking changes.

- **Removed**  

Packages now require Node.js 22.15.0 or later. Users on Node.js 18 or 20 must upgrade their runtime before using SDK 3.x. [github.com](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/3.x/migration-guide.md)
- **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**  

Packages now use an exports map, so imports such as build/src or build/esm paths fail. Import through the package name or a listed subpath. [github.com](https://github.com/open-telemetry/opentelemetry-js/releases/tag/v3.0.0)
- **Removed**  

The minimum supported Node.js is now 22.15.0. Users on Node.js 18 or 20 must upgrade their runtime. [github.com](https://github.com/open-telemetry/opentelemetry-js/releases/tag/v3.0.0)
- **Removed** `AsyncHooksContextManager`  

Code that imports AsyncHooksContextManager must stop using it. [github.com](https://github.com/open-telemetry/opentelemetry-js/releases/tag/v3.0.0)
- **Behavior changed**  

Internal file paths changed and package.json entry points are now used. Deep imports into these packages break, and package.json is no longer importable; use SDK_INFO from @opentelemetry/core instead. [github.com](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/3.x/migration-guide.md)
- **Behavior changed**  

Platform-specific code now resolves through the imports and exports fields. Bundlers without this support fail to resolve #platform and need upgrading. [github.com](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/3.x/migration-guide.md)
- **Behavior changed**  

Complex resource attribute values are dropped with a warning. Use simple values only. [github.com](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/3.x/migration-guide.md)
- **Behavior changed** `cleanAttributes`  

Objects with undefined properties are cleaned, so those properties no longer appear in emitted attributes. [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. See the migration guide. [github.com](https://github.com/open-telemetry/opentelemetry-js/releases/tag/v3.0.0)

And 2 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## @opentelemetry/sdk-metrics 2.10.0 breaking changes

@opentelemetry/sdk-metrics 2.10.0, released July 21, 2026: 3 breaking changes.

- **Behavior changed** `SimpleSpanProcessor.forceFlush`  

forceFlush now rejects when an export fails instead of resolving. Handle the rejection wherever you await it. [github.com](https://github.com/open-telemetry/opentelemetry-js/releases/tag/v2.10.0)
- **Behavior changed** `TraceIdRatioBasedSampler`  

At ratio 1 the sampler now includes trace IDs at the upper bound that it previously excluded. Sampling results at ratio 1 may differ. [github.com](https://github.com/open-telemetry/opentelemetry-js/releases/tag/v2.10.0)
- **Signature changed**  

The force flush timeout is now configured per call. Code that set it elsewhere must pass it to each flush call. [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/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)
- [@opentelemetry/instrumentation-fetch](https://since.dev/packages/npm/@opentelemetry/instrumentation-fetch.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.
