Repository navigation
feat(nodejs): switch the layer to NodeSDK and OTel JS SDK 3 - #1
Closed
adityareddy-dev wants to merge 1 commit into
Closed
adityareddy-dev wants to merge 1 commit into
adityareddy-dev wants to merge 1 commit into
Conversation
Build the layer's providers with NodeSDK instead of creating NodeTracerProvider, MeterProvider and LoggerProvider by hand, and move the layer to OpenTelemetry JS SDK 3 (core/sdk 3.1, experimental 0.301, matching contrib instrumentations). The layer keeps what NodeSDK does not cover: the xray and xray-lambda propagators, the AWS Lambda resource detector, its instrumentation list and the configure* hooks. Instrumentations are registered again after sdk.start(), because start() registers them before it creates the providers and the Lambda instrumentation would otherwise bind the no-op tracer provider and skip the flush at invocation end. SDK 3 needs Node.js 22.15 or later, so this depends on nodejs20.x being dropped from the layer's runtimes.
Owner
Author
|
Review copy only. Opened upstream as open-telemetry#2749. |
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.
Moves the Node.js layer to NodeSDK and SDK 3, so the core and contrib renovate PRs can close. It needs the Node 20 drop first.
The OTLP default changes to
http/protobufwith this, andwrapper.jsgoes from 157 KB to 653 KB since NodeSDK brings the grpc and protobuf exporters along.