Skip to content

v10: Pin @opentelemetry/api to <1.10.0 #25717

Open

Description

@andreiborza

@opentelemetry/api 1.10.0 only works with OpenTelemetry SDK v3, and SDK v3 needs Node.js 22.15.0 or newer. v10 of the Sentry SDK uses OpenTelemetry SDK v2 and supports Node.js 18 and newer, so it cannot support @opentelemetry/api 1.10.0.

What to do

If you use v10 of the Sentry SDK and your app depends on @opentelemetry/api directly, use a version below 1.10.0:

"@opentelemetry/api": "~1.9.1"

With 1.10.0, your app and the Sentry SDK use different copies of the API, and the OpenTelemetry calls of your app do not see the tracer provider of the Sentry SDK.

Starting with 10.78.0, the Sentry SDK limits @opentelemetry/api to <1.10.0 and the OpenTelemetry SDK to <3.0.0 (#25715).

OpenTelemetry SDK v3

To use @opentelemetry/api 1.10.0 and OpenTelemetry SDK v3, upgrade to v11 of the Sentry SDK. See the migration guide.

Activity

  1. pinned this issue on Oct 23, 2026
  2. deleted a comment from linear-code on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions