Best practices of Multi-Destination Span Export in OpenTelemetry Java #7800
Unanswered
anoopknayak
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Do you have the option of sending the data to a collector, and having the collector do the fan-out? |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello OpenTelemetry community! I have a question about best practices for exporting spans to multiple destinations. What's the recommended pattern among these options?
Some constraints/considerations about the usecase:
Option A: Multiple SpanProcessors with Individual Exporters
Implementation: Each destination gets its own
SpanProcessorwrapping a dedicated exporter.Pros
BatchSpanProcessor, slow exporters don't impact others since each has independent processingCons
BatchSpanProcessorOption B: Single SpanProcessor with Custom Multi-Exporter Logic
Implementation: One
SpanProcessorthat internally loops through multiple exporters.Pros
BatchSpanProcessorCons
Option C: Single SpanProcessor with Composite Exporter
Implementation: Use a composite/multi-exporter that wraps multiple exporters (similar to how
MultiSpanProcessorworks).Pros
BatchSpanProcessorCons
Beta Was this translation helpful? Give feedback.
All reactions