Repository navigation
chore: move OpenTelemetry to the 3.x line (sdk-trace-base is removed) - #325
Merged
Merged
Conversation
sdk-trace-base is deprecated in 2.x and removed in 3.0. Use sdk-trace 3.0.0 with the matching 0.300.0 experimental packages, update the exporter test for TracerProvider and the options-object SimpleSpanProcessor, and raise engines to Node >=22.15.0 (the 3.x floor). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 6, 2026
Merged
Merged
jussi-sa
approved these changes
Nov 9, 2026
mattpodwysocki
added a commit
to mapbox/mcp-docs-server
that referenced
this pull request
Nov 9, 2026
…#51) * chore: move OpenTelemetry to the 3.x line sdk-trace-base is deprecated in 2.x and removed in 3.0. Same change as mapbox/mcp-server#325: sdk-trace 3.0.0 with the matching 0.300.0 packages, and engines raised to Node >=22.15.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: CHANGELOG PR number for #51 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
mattpodwysocki
added a commit
to mapbox/mcp-devkit-server
that referenced
this pull request
Nov 9, 2026
…#149) * chore: move OpenTelemetry to the 3.x line sdk-trace-base is deprecated in 2.x and removed in 3.0. Same change as mapbox/mcp-server#325: sdk-trace 3.0.0 with the matching 0.300.0 packages, and engines raised to Node >=22.15.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: CHANGELOG PR number for #149 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #319: the same change goes to mcp-devkit-server, mcp-docs-server and hosted-mcp-server.
Why
@opentelemetry/sdk-trace-baseis deprecated in every 2.x release and removed in 3.0, and the ox-security scan flags it on every PR that touchespackage.json. Its replacement,@opentelemetry/sdk-trace, only exists on the 3.x line, so the whole OpenTelemetry set moves together.What
@opentelemetry/sdk-trace-base@opentelemetry/sdk-trace@opentelemetry/resources@opentelemetry/sdk-node,instrumentation,exporter-trace-otlp-http@opentelemetry/auto-instrumentations-node@opentelemetry/apisdk-trace-basetosdk-trace. Following the 3.x migration guide, the exporter test usesTracerProvider(wasBasicTracerProvider) andnew SimpleSpanProcessor({ exporter }).enginesgoes from>=22to>=22.15.0, the 3.x minimum. The Dockerfile (node:22-slim) and CI are already past that.@opentelemetry/core3.1.0 transitively, which is semver-compatible.Checked
OTEL_EXPORTER_OTLP_ENDPOINTpointed at a local collector and made onedistance_toolcall. 0.17.0 and this branch both sent the sameconfig.load_envandtool.distance_toolspans to/v1/traces, plus OTLP metrics to/v1/metrics. The CommonJS build sent the same spans as the ESM build.🤖 Generated with Claude Code