-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[processor/probabilistic_sampler] The default sampling mode in documentation is self-contradictory #36802
Labels
needs triage
New item requiring triage
processor/probabilisticsampler
Probabilistic Sampler processor
Comments
github-actions
bot
added
the
processor/probabilisticsampler
Probabilistic Sampler processor
label
Dec 12, 2024
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This was referenced Dec 17, 2024
This was referenced Jan 7, 2025
I think we should correct the documentation. Thanks @namco1992 for the investigation. |
Got it, will PR it in, thanks! |
namco1992
added a commit
to namco1992/opentelemetry-collector-contrib
that referenced
this issue
Jan 28, 2025
mode Fixes open-telemetry#36802. As per open-telemetry#36802 described, the sampling mode is always "hash_seed" if no mode is specified, regardless of the `hash_seed` or `attribute_source` field status. Update the README to reflect it. Signed-off-by: Mengnan Gong <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
needs triage
New item requiring triage
processor/probabilisticsampler
Probabilistic Sampler processor
Component(s)
processor/probabilisticsampler
Describe the issue you're reporting
In the probabilistic_sampler README, it mentions that the
hash_seed
is selected by default:opentelemetry-collector-contrib/processor/probabilisticsamplerprocessor/README.md
Line 146 in 964a652
However, later in the configuration sector, it says
opentelemetry-collector-contrib/processor/probabilisticsamplerprocessor/README.md
Line 307 in 964a652
According to the code below, the default mode is indeed
hash_seed
. The constdefaultMode
is also set tohash_seed
, which makes the following logic always selecthash_seed
, regardless of whether theHashSeed
value is set or not:opentelemetry-collector-contrib/processor/probabilisticsamplerprocessor/sampler_mode.go
Lines 388 to 397 in 964a652
According to the #31894, it mentioned:
I suppose we need a follow-up to decide if we want to switch the default sampling mode and correct the document accordingly to avoid any confusion. I'd love to open a PR for it, but I'm unsure how we want to proceed.
The text was updated successfully, but these errors were encountered: