Tail Sampling on Opentelemetry Sidecar Collector #10038
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Tail sampling needs to collect all spans for a trace before making a decision. A sidecar collector would normally only see a subset of a trace, assuming you have a distributed system with many services and many sidecars. So yes, you need to do tail sampling in the last stage collector which accepts traffic already partitioned by trace IDs. |
Beta Was this translation helpful? Give feedback.
-
Thank you @yurishkuro |
Beta Was this translation helpful? Give feedback.
Tail sampling needs to collect all spans for a trace before making a decision. A sidecar collector would normally only see a subset of a trace, assuming you have a distributed system with many services and many sidecars. So yes, you need to do tail sampling in the last stage collector which accepts traffic already partitioned by trace IDs.