You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When logs priority sampling is enabled by setting a sampling_priority configuration for a logs pipeline, the value has to be set or logs will not sample. This is counter-intuitive and not like the traces sampler.
Worse, a conditional in the related logic ensures that logs sampling priority logic can only raise priority, not lower priority. This is incorrect.
Steps to Reproduce
probabilistic_sampler:
sampling_percentage: 100
sampling_priority: sampling_priority
attribute_source: record
from_attribute: sampling_uuid
In this configuration, log records without sampling_uuid will drop. Additionally, a transform stage like
Pinging code owners for processor/probabilisticsampler: @jpkrohling@jmacd. See Adding Labels via Comments if you do not have permissions to add labels yourself. For example, comment '/label priority:p2 -needs-triaged' to set the priority and remove the needs-triaged label.
Component(s)
processor/probabilisticsampler
What happened?
Description
When logs priority sampling is enabled by setting a
sampling_priority
configuration for a logs pipeline, the value has to be set or logs will not sample. This is counter-intuitive and not like the traces sampler.Worse, a conditional in the related logic ensures that logs sampling priority logic can only raise priority, not lower priority. This is incorrect.
Steps to Reproduce
In this configuration, log records without sampling_uuid will drop. Additionally, a transform stage like
will not have the intended effect, because of the bug.
Expected Result
In the second example above, noisy logs should sample at 10% when followed by the probabilistic sampler configuration above it.
Actual Result
The logs do not pass. This is two related bugs.
Collector version
v0.120.0
Environment information
No response
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: