Packages

@opentelemetry/core

3.1.1 · 9 Nov 2026Apache-2.0229.6M / weekRepositoryHomepagenpmAtom feed

Upgrading @opentelemetry/core From 1.30.1 to 2.8.0

13 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 1.30.1Latest3.1.1
  1. 1.30.1yours
  2. 2.0.0major
  3. 7 releases
  4. 2.6.0breaking
  5. 3 releases
  6. 2.8.0target

Start here

Before you upgrade

Tick each one off as you go
  • Breaking2.6.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0

Security

Fixes 1 advisory affecting 1.30.1

Release by release

  1. 2.8.0

    11 Jun 20262 new · 1 fix
    • New

      sdk-trace-base: pretty-print SpanImpl, Tracer, and BasicTracerProvider via util.inspect so they render through diag and console.log #6690

    • New

      sdk-metrics: Implement metric reader self-observability metrics #6449

    • Fixed

      core: Limit processing of incoming "baggage" header to 8192 bytes @pichlermarc

  2. 2.7.1

    29 Apr 20262 new · 1 fix
    • New

      sdk-trace-base: Optimize TraceIdRatioBasedSampler performance #6284

    • New

      sdk-metrics: Reduce loop overhead in sdk hot paths #6593

    • Fixed

      core, api: Defer trace state validation. Deprecate trace state implementation in api #6459

  3. 2.7.0

    17 Apr 20263 new · 2 fixes
    • New

      sdk-logs: Implement log creation metrics #6433

    • New

      sdk-metrics: Add the cardinalitySelector argument to PeriodicExportingMetricReaders #6460

    • New

      opentelemetry-core: Add extra checks on internal merge function for safety #6587

    • Fixed

      opentelemetry-resources: Do not discard OTEL_RESOURCE_ATTRIBUTES when it contains empty kv pairs

    • Fixed

      sdk-metrics: Repair ExponentialHistogram tests #6565

  4. 2.6.1

    25 Mar 20262 new · 3 fixes
    • New

      sdk-trace-base: Avoid Object.entries in Span.setAttributes #6514

    • New

      sdk-trace-base: Optimize Span.{addEvent,addLink} performance #6516

    • Fixed

      opentelemetry-instrumentation: Improve _warnOnPreloadedModules function not to show warning logs when the module is not marked as loaded #6095

    • Fixed

      sdk-trace-base: Derive internal SpanOptions from API type to prevent drift #6478

    • Fixed

      span: Enforce attributePerEventCountLimit, attributePerLinkCountLimit, linkCountLimit, and attributeValueLengthLimit for event/link attributes #6479

  5. 2.6.0

    Migration needed3 Mar 20261 new · 1 fix
    • Breaking

      resources: Update OTEL_RESOURCE_ATTRIBUTES parsing to match spec changes (open-telemetry/opentelemetry-specification#4856) #6261

    • New

      sdk-trace: Implement span start/end metrics #6213

    • Fixed

      sdk-trace-web: Propagate optimised flag in getElementXPath recursion #6335

  6. 2.5.1

    12 Feb 20262 new · 2 fixes
    • New

      sdk-trace-base: Use Uint8Array for browser RandomIdGenerator #6209

    • New

      sdk-trace-base: Optimize setAttribute performance #6283

    • Fixed

      opentelemetry-sdk-node: The custom value from env variable for service.instance.id should take priority over random uuid as backup #6345

    • Fixed

      example-web: Update Docker config and deps for collector #6342

  7. 2.5.0

    Deprecation21 Jan 20261 fix
    • Deprecated

      context-async-hooks: Deprecate AsyncHooksContextManager #6298

    • Fixed

      build: Update @types/node to 18.19.130, remove DOM types from base tsconfig #6280

  8. 2.4.0

    14 Jan 20262 fixes
    • Fixed

      sdk-metrics: Improve PeriodicExportingMetricReader() constructor input validation #6286

    • Fixed

      core: Avoid using DOM types for otperformance export #6278

4 other lines we could not sort, mostly version bumps
  • The minimum supported Node.js has been raised to ^18.19.0 || >=20.6.0. This means that support for Node.js 14 and 16 has been dropped.

    2.0.0
  • The compilation target for transpiled TypeScript has been raised to ES2022 (from ES2017).

    2.0.0
  • The public interface has changed

    2.0.0
  • Only experimental versions 0.200.0 are compatible with this release

    2.0.0

40 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.