How to add multiple processors to tracing sdk in Nodejs Opentelemetry NodeSDK? #3375
-
Hello, Is there a way i can add multiple processors while setting up Opentelemetry in Node.js? There seems no way to do so in NodeSDK in opentelemetry-js/sdk-node pack
Is there any other way by which i can add multiple processors via Code? ... I do not want to use OpenTelemetry Collector. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
It can be done if you set up the SDK components manually by creating a tracer provider and calling addSpanProcessor on it multiple times, then registering it using |
Beta Was this translation helpful? Give feedback.
-
@dyladan Thanks, i have figured this out :) |
Beta Was this translation helpful? Give feedback.
-
Given that this is a common use case, would it be feasible to let |
Beta Was this translation helpful? Give feedback.
-
Can confirm this would be useful for us! |
Beta Was this translation helpful? Give feedback.
-
There's finally a sane API for this! #4454 |
Beta Was this translation helpful? Give feedback.
It can be done if you set up the SDK components manually by creating a tracer provider and calling addSpanProcessor on it multiple times, then registering it using
api.tracing.setGlobalTracerProvider