How does processing work with multiple span processors? #6158
Unanswered
DenisAngeletta
asked this question in
Q&A
Replies: 1 comment
-
When span is started |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
Having multiple span processors added to the TracerProvider is possible. I wanted to ask how processing looks like in that case. I'd imagine something like:
onStart(1) -> onEnd(1) -> onStart(2) -> onEnd(2)
There are multiple ways to add SpanProcessors as far as I know:
1:
2:
I'm not sure how (1) would work but (2) essentially creates a MultiSpanProcessor in which to my understanding onStart is called twice before any call of onEnd. Am I understanding this correctly?
The reason I am asking this because I need a workaround where I setAttributes when a Span is ending. If the processing of spans happens like
onStart(1) -> onEnd(1) -> onStart(2) -> onEnd(2)
then I would also be happy.Beta Was this translation helpful? Give feedback.
All reactions