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

Operators with silent errors will log errors as debug and won't return an error #35010

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

SamerJ
Copy link
Contributor

@SamerJ SamerJ commented Sep 4, 2024

An operator configured with silent errors shouldn't log errors while processing log entries.

Description:
Operators that are expected to sometimes fail, can result in error logs that are quite verbose.
This aims to address this issue by getting rid of error logs that the user wishes to silence (debug logs instead).
By making sure no error is returned, there won't be any need to worry about other components logging error logs.

Link to tracking Issue: Issue #35008

Testing:
Manually tested as this is a matter of logs.

@github-actions github-actions bot requested a review from djaglowski September 4, 2024 15:42
@SamerJ SamerJ force-pushed the SamerJ-patch-1 branch 2 times, most recently from 07e4aba to 6bf0ab0 Compare September 5, 2024 08:27
@SamerJ SamerJ marked this pull request as ready for review September 5, 2024 11:45
@SamerJ SamerJ requested a review from a team September 5, 2024 11:45
@SamerJ SamerJ changed the title Operator's with silent errors will log error as debug and internally swallow error Operators with silent errors will log errors as debug and won't return an error Sep 5, 2024
Copy link

linux-foundation-easycla bot commented Sep 6, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@djaglowski djaglowski merged commit f970421 into open-telemetry:main Sep 6, 2024
156 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 6, 2024
f7o pushed a commit to f7o/opentelemetry-collector-contrib that referenced this pull request Sep 12, 2024
…n an error (open-telemetry#35010)

An operator configured with silent errors shouldn't log errors while
processing log entries.

**Description:** 
Operators that are expected to sometimes fail, can result in error logs
that are quite verbose.
This aims to address this issue by getting rid of error logs that the
user wishes to silence (debug logs instead).
By making sure no error is returned, there won't be any need to worry
about other components logging error logs.

**Link to tracking Issue:** [Issue
open-telemetry#35008](open-telemetry#35008)

**Testing:** 
Manually tested as this is a matter of logs.
jriguera pushed a commit to springernature/opentelemetry-collector-contrib that referenced this pull request Oct 4, 2024
…n an error (open-telemetry#35010)

An operator configured with silent errors shouldn't log errors while
processing log entries.

**Description:** 
Operators that are expected to sometimes fail, can result in error logs
that are quite verbose.
This aims to address this issue by getting rid of error logs that the
user wishes to silence (debug logs instead).
By making sure no error is returned, there won't be any need to worry
about other components logging error logs.

**Link to tracking Issue:** [Issue
open-telemetry#35008](open-telemetry#35008)

**Testing:** 
Manually tested as this is a matter of logs.
djaglowski pushed a commit that referenced this pull request Oct 28, 2024
#35834)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Fixed issue in which Operators with DropOnErrorQuiet are not dropping
log entries on error.

Note: This issue was introduced by a bug fix meant to ensure Silent
Operators are not logging errors (#35010). With this fix,
this side effect bug has been resolved.

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes 35010

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Added UT
jpbarto pushed a commit to jpbarto/opentelemetry-collector-contrib that referenced this pull request Oct 29, 2024
open-telemetry#35834)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Fixed issue in which Operators with DropOnErrorQuiet are not dropping
log entries on error.

Note: This issue was introduced by a bug fix meant to ensure Silent
Operators are not logging errors (open-telemetry#35010). With this fix,
this side effect bug has been resolved.

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes 35010

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Added UT
sbylica-splunk pushed a commit to sbylica-splunk/opentelemetry-collector-contrib that referenced this pull request Dec 17, 2024
open-telemetry#35834)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Fixed issue in which Operators with DropOnErrorQuiet are not dropping
log entries on error.

Note: This issue was introduced by a bug fix meant to ensure Silent
Operators are not logging errors (open-telemetry#35010). With this fix,
this side effect bug has been resolved.

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes 35010

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Added UT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants