[sdk-trace] make activeSpanProcessor
private
#4792
Labels
never-stale
pkg:sdk-trace-base
pkg:sdk-trace-node
pkg:sdk-trace-web
target:next-major-release
This PR targets the next major release (`next` branch)
Milestone
Description
activeSpanProcessor
is currently public and that allows users to modify the span processor by setting it on the fly even though the should be done viaaddSpanProcesssor()
or - ideally - only via the constructor as the user is not supposed to hold on to the SDK instance of theTracerProvider
after the initialization phase, as this can have unintended side-effects on the exported telemetry and should therefore be avoided.This issue is considered done when
activeSpanProcessor
property atopentelemetry-js/packages/opentelemetry-sdk-trace-base/src/BasicTracerProvider.ts
Line 73 in 47444f2
activeSpanProcessor
is not public in any other way for theBasicTracerProvider
activeSpanProcessor
is not public in any other way for theWebTracerProvider
activeSpanProcessor
is not public in any other way for theNodeTracerProvider
The text was updated successfully, but these errors were encountered: