fix(deps): update opentelemetry-js monorepo#1361
Conversation
|
| "@opentelemetry/sdk-trace-base": "^1.28.0", | ||
| "@opentelemetry/sdk-trace-node": "^1.28.0", |
There was a problem hiding this comment.
🔴 Cross-generation OpenTelemetry version mismatch: 0.215.x exporters depend on sdk-trace-base@2.x but project uses sdk-trace-base@1.x
The PR bumps @opentelemetry/exporter-trace-otlp-proto from ^0.54.0 to ^0.215.0. Per the lockfile, this version transitively depends on @opentelemetry/sdk-trace-base@2.7.0 and @opentelemetry/resources@2.7.0. However, agents/package.json still declares @opentelemetry/sdk-trace-base: "^1.28.0" (resolves to 1.30.1) and @opentelemetry/sdk-trace-node: "^1.28.0" (resolves to 1.30.1).
In agents/src/telemetry/traces.ts:252-260, OTLPTraceExporter (0.215.0, built against sdk-trace-base@2.7.0) is passed to BatchSpanProcessor (from sdk-trace-node@1.30.1, built against sdk-trace-base@1.30.1). The exporter implements the SpanExporter interface from sdk-trace-base@2.x while the BatchSpanProcessor expects the SpanExporter interface from sdk-trace-base@1.x. This is an unsupported cross-generation configuration (experimental 0.215.x packages are designed for stable 2.x packages, not 1.x). The same applies to @opentelemetry/exporter-logs-otlp-proto@0.215.0 which depends on sdk-trace-base@2.7.0 and resources@2.7.0 internally. Before the PR, exporter-trace-otlp-proto@0.54.x used sdk-trace-base@1.27.x, which was correctly aligned with the 1.x generation.
Packages that should also be bumped to 2.x generation
@opentelemetry/resources:^1.28.0→ needs 2.x@opentelemetry/sdk-trace-base:^1.28.0→ needs 2.x@opentelemetry/sdk-trace-node:^1.28.0→ needs 2.x@opentelemetry/semantic-conventions:^1.28.0→ may also need update
Was this helpful? React with 👍 or 👎 to provide feedback.
3199527 to
2d194f1
Compare
2d194f1 to
e6f7c44
Compare
This PR contains the following updates:
1.9.0→1.9.1^0.54.0→^0.215.02.2.0→2.7.0^0.54.0→^0.215.0^0.54.0→^0.215.0^0.208.0→^0.215.0^0.54.0→^0.215.01.38.0→1.40.0Release Notes
open-telemetry/opentelemetry-js (@opentelemetry/api)
v1.9.1Compare Source
🐛 (Bug Fix)
#3562 @scheler
🏠 (Internal)
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.