traceidratio vs parentbased_traceidratio #6304
Replies: 2 comments 7 replies
-
Hey @itsmaneesh You can think of |
Beta Was this translation helpful? Give feedback.
-
You can view the parentbased one as sampling the whole trace, the traces you'll end up with are complete. The non parent based one will sample individual spans, so you could end up with a bunch of incomplete traces. Use the parentbased one unless you know what you are doing. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Can you please clarify the sampling behavior of
parentbased_traceidratio
compared totraceidratio
sampler strategy options: (for OTEL_TRACES_SAMPLER env variable) with OpenTelemetry auto-instrumentation.I have gone through couple of discussions threads and understood that
parentbased_traceidratio
strategy will sample the traces (as per OTEL_TRACES_SAMPLER_ARG value) at upstream level (typically at the time of trace Id creation) and ensure the completeness of the trace (meaning, all the expected spans will be associated with the trace)Discussion threads:
open-telemetry/opentelemetry-collector-contrib#4462
open-telemetry/opentelemetry-java#3235
It would be great if you can point to me to any doc or clarify here the exact difference between
parentbased_traceidratio
andtraceidratio
Thank you,
Maneesh
Beta Was this translation helpful? Give feedback.
All reactions