-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
noisy debug logs with compare string to non-string #29015
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hello @trajano, just to clarify, did you file this issue because you don't want so many logs in your collector's output, or because you want the specific message you're seeing to provide some kind of guidance to resolve the issue? |
There's also two problems with the messaging
But I think the fix would be |
I think the best option is probably to add more information to the log output, specifically which string and non-string values are being compared. I don't think anything should be done with the filter processor here, or other logic changes. The check will fail either way and this log message is really showing that we're properly validating data in our checks, and that everything is working as intended. The logic that's being used to compare values is in the The log message is also showing where the check is coming from (
So we know it's one of those conditions that's comparing a string to a non-string. Also, we know from the opentelemetry-collector-contrib/pkg/ottl/grammar.go Lines 121 to 132 in 22d86de
|
Pinging code owners for pkg/ottl: @TylerHelmuth @kentquirk @bogdandrutu @evan-bradley. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
(This is also relevant for all of the other comparisons as well, not just strings.) |
I am thinking maybe it's the |
This is happening because you've enabled service:
telemetry:
logs:
level: debug At the moment it is working as intended. The log could be improved. If you want to stop the influx of logs in the meantime you should switch to service:
telemetry:
logs:
level: info |
@TylerHelmuth thanks yes I know it's because of the |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
**Description:** When we added the boolean comparison feature we included a debug log to help troubleshoot when 2 comparisons were invalid, such as checking if a `string` was equal to a `float64`. Since then we've had complaints about how noisy the log is, mainly because it happens when checking against `nil`, which happens frequently when checking if an attribute has a specific value when it is present. This PR removes the log. **Link to tracking Issue:** Closes #29015
) **Description:** When we added the boolean comparison feature we included a debug log to help troubleshoot when 2 comparisons were invalid, such as checking if a `string` was equal to a `float64`. Since then we've had complaints about how noisy the log is, mainly because it happens when checking against `nil`, which happens frequently when checking if an attribute has a specific value when it is present. This PR removes the log. **Link to tracking Issue:** Closes open-telemetry#29015
Component(s)
processor/filter
What happened?
Description
Seeing a lot of debug noise, but does not show any reason how to fix it (note this may be due to
compare.go
not providing a facility to mute invalid comparisons.Steps to Reproduce
Define the filter
Expected Result
Quiet
Actual Result
Lots of debug statements
Collector version
0.88.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
I also tried
still noisy.
The text was updated successfully, but these errors were encountered: