Rule based sampling - opentelemetry-java-contrib #5629
Unanswered
chetan5375
asked this question in
Q&A
Replies: 1 comment
-
Hey @chetan5375 ,
There is not; the rule based sampler only supports filtering by attributes. |
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
-
Hello,
I have a requirement to filter out spans based on some predefined rules like, span kind, span name and/or some span attributes. I came across https://github.com/open-telemetry/opentelemetry-java-contrib/blob/main/samplers/src/main/java/io/opentelemetry/contrib/sampler/RuleBasedRoutingSampler.java sampler from opentelemetry-java-contrib project which supports SamplingRules based on span kind and span attributes.
Is there a way to use/configure this Sampler based to respect span name based sampling rules as well?
Or is there any out of the box head based Sampler available which we can use to filter out spans based on span kind / name/attribute values?
Please suggest.
Thanks,
Chetan
Beta Was this translation helpful? Give feedback.
All reactions