probabilisticsamplerprocessor logs error events with log level info #39887
Labels
bug
Something isn't working
needs triage
New item requiring triage
processor/probabilisticsampler
Probabilistic Sampler processor
Component(s)
processor/probabilisticsampler
What happened?
Description
The
probabilisticsamplerprocessor
component in the opentelemetry-collector-contrib repository is emitting log events that represent errors (i.e., they include an "error" field with error details) but are logged at the info level instead of the expected error level. This can lead to confusion for operators and makes it more difficult to monitor and alert on actual error conditions, as these events do not appear in error-level log queries (or are hidden when usinglevel: WARN
as default log level in production envs).Steps to Reproduce
Expected Result
Error events (i.e., log entries that include an "error" field or indicate a failure condition) should be logged at the warn/error level (not as
info
).Actual Result
Error events are logged at the
info
level, even though they represent error conditions. This results in important error information being less visible and not following standard logging practices.Collector version
0.121.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: