How can we sample spans based on duration? #2443
Unanswered
vanand-conga
asked this question in
Q&A
Replies: 2 comments
-
Sampling decisions are made at span start. If you need to sample when a span is finished, I would suggest you create a custom span processor which discards the spans you would not like exported. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is probably not something language client can do, do you use opentelemetry collector? If so, you could use the samplingprocessor. See this example https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/tailsamplingprocessor/testdata/tail_sampling_config.yaml |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions