-
Notifications
You must be signed in to change notification settings - Fork 833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[sdk-trace] make activeSpanProcessor
private
#4792
Comments
@pichlermarc can I pick this up? |
BasicTraceProvider has a getter function
@pichlermarc as for now the constructor does not accept processors. should we go for it? |
I'd say we go for it, but before starting let me check in the temperature on this with the other @open-telemetry/javascript-maintainers - I wonder if the following interfaces are necessary at all:
|
@pichlermarc #5134 does remove the Your feedback is very welcome :) |
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: