How can we record specific traces 100% of the time when sampling is enabled? #1568
-
Hey everyone, Been playing around with this general idea, and I just can't seem to figure out how it's supposed to be implemented. I have sampling enabled via the following ENV vars:
Which is working fine but I have the need for some specific traces to be recorded 100% of the time. How does one go about doing this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The only real supported way of doing this is using Tail Sampling in the OTel Collector:
The OTel Probabilistic Sampling Processor also has some backward compatibility with OpenTracing |
Beta Was this translation helpful? Give feedback.
The only real supported way of doing this is using Tail Sampling in the OTel Collector:
The OTel Probabilistic Sampling Processor also has some backward compatibility with OpenTracing
sampling.priority
but it only works capturing all details of a trace across services if you use a single collector or if you add that attribute to every single span related to that trace.https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/probabilisticsamplerprocessor#probabilistic-sampling-processor