probabilisticsamplerprocessor: should sampling.priority drop Spans #10438
-
ContextWhen adding We use a parent-based sampler in our application code and we add Is it possible to have this processor respect the decision of a Span's parent if it exists? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Sorry, I'm not sure I understand it. Are you saying that this processor isn't dropping spans with sampling.priority=0? Can you share your config and a couple of spans, with your expectation on what should happen to them? Or better yet, can you create a unit test demonstrating the problem? The suite does seem to have tests covering this case, but I'm really interested in this if you can provide a reproducer. |
Beta Was this translation helpful? Give feedback.
Sorry, I'm not sure I understand it. Are you saying that this processor isn't dropping spans with sampling.priority=0? Can you share your config and a couple of spans, with your expectation on what should happen to them? Or better yet, can you create a unit test demonstrating the problem? The suite does seem to have tests covering this case, but I'm really interested in this if you can provide a reproducer.
opentelemetry-collector-contrib/processor/probabilisticsamplerprocessor/probabilisticsampler_test.go
Lines 270 to 298 in 3ba302b