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

# @opentelemetry/exporter-prometheus breaking changes

@opentelemetry/exporter-prometheus 0.301.0 (November 5, 2026) is its newest release with breaking changes. The first: Configuration changed startNodeSDK. Every breaking API change we have recorded in @opentelemetry/exporter-prometheus on npm: 8 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 `0.302.0`, released December 2, 2026. [Source repository](https://github.com/open-telemetry/opentelemetry-js)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [0.222.0](#v-0-222-0) to [0.301.0](#v-0-301-0): 4 breaking changes in 2 versions.

## @opentelemetry/exporter-prometheus 0.301.0 breaking changes

@opentelemetry/exporter-prometheus 0.301.0, released November 5, 2026: 1 breaking change.

- **Configuration changed** `startNodeSDK`  

This commit marks a breaking change to how startNodeSDK reads configuration from environment variables, but the notes do not say what users must change. Check the sdk-node changelog before upgrading. [github.com](https://github.com/open-telemetry/opentelemetry-js/commit/7f9fbaca67a2b0de3f6bcb55d80a400ba8cccf5c)

## @opentelemetry/exporter-prometheus 0.300.0 breaking changes

@opentelemetry/exporter-prometheus 0.300.0, released October 20, 2026: 3 breaking changes.

- **Signature changed** `PrometheusExporter.DEFAULT_OPTIONS`  

Was static readonly DEFAULT_OPTIONS: {host: undefined; port: number; endpoint: string; prefix: string; appendTimestamp: boolean; withResourceConstantLabels: undefined; withoutScopeInfo: boolean; withoutTargetInfo: boolean;}; now static... [npmjs.com](https://www.npmjs.com/package/@opentelemetry/exporter-prometheus/v/0.300.0)
- **Signature changed** `PrometheusExporter.DEFAULT_OPTIONS.host`  

Was host: undefined; now host: string. [npmjs.com](https://www.npmjs.com/package/@opentelemetry/exporter-prometheus/v/0.300.0)
- **Signature changed** `PrometheusSerializer._serializeResource`  

Was protected \_serializeResource(resource: Resource): string; now protected \_serializeResource(resource: Resource, metadata?: PrometheusMetadata, writeMetadata?: boolean): string. [npmjs.com](https://www.npmjs.com/package/@opentelemetry/exporter-prometheus/v/0.300.0)

## @opentelemetry/exporter-prometheus 0.222.0 breaking changes

@opentelemetry/exporter-prometheus 0.222.0, released August 31, 2026: 4 breaking changes.

- **Behavior changed**  

Creating a MeterProvider from a config file now throws when it fails instead of continuing silently. Code that relied on the silent failure must handle the error. [github.com](https://github.com/open-telemetry/opentelemetry-js/commit/d1db237b633751411ff0d84e0f2006fb451fcc4d)
- **Behavior changed**  

Creating a Propagator from a config file now throws when it fails instead of continuing silently. Code that relied on the silent failure must handle the error. [github.com](https://github.com/open-telemetry/opentelemetry-js/commit/3f9756ab3fb15aec3ac420f255cdbe70d3d280a8)
- **Behavior changed**  

Creating a Resource from a config file now throws when it fails instead of continuing silently. Code that relied on the silent failure must handle the error. [github.com](https://github.com/open-telemetry/opentelemetry-js/commit/26eac901c04186d4fce936bfc067c745377b2edd)
- **Behavior changed**  

Creating a TracerProvider from a config file now throws when it fails instead of continuing silently. Code that relied on the silent failure must handle the error. [github.com](https://github.com/open-telemetry/opentelemetry-js/commit/353f814b7b80e7b6331cd2f2d9b51fbcdea2db0d)

## 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/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.
