Skip to content
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

[pgk/ottl] Remove debug log from invalidComparison #31813

Conversation

TylerHelmuth
Copy link
Member

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

@TylerHelmuth TylerHelmuth added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Mar 18, 2024
@github-actions github-actions bot requested a review from kentquirk March 18, 2024 15:32
@TylerHelmuth
Copy link
Member Author

@evan-bradley please take a look

@TylerHelmuth TylerHelmuth merged commit ef4402b into open-telemetry:main Apr 5, 2024
142 checks passed
@TylerHelmuth TylerHelmuth deleted the ottl-remove-invalid-compare-debug-log branch April 5, 2024 13:50
@github-actions github-actions bot added this to the next release milestone Apr 5, 2024
ycombinator pushed a commit to ycombinator/opentelemetry-collector-contrib that referenced this pull request Apr 9, 2024
)

**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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg/ottl Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

noisy debug logs with compare string to non-string
4 participants