Skip to content

[receiver/googlecloudpubsub] add ignore_encoding_error configuration #39839

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

Merged
merged 2 commits into from
May 5, 2025

Conversation

alexvanboxel
Copy link
Contributor

Description

Introduce a setting to ignore errors when the configured encoder. It's advised to set this to true when using
a custom encoder, and use receiver.googlecloudpubsub.encoding_error metric to monitor the number of errors.
Ignoring the error will cause the receiver to drop the message.

Link to tracking issue

#38164

Testing

Tested with a custom encoder and introducing bogus message to the topic.

Documentation

Added the configuration setting to the README

@@ -0,0 +1,16 @@
change_type: enhancement
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

breaking if you add a new metric enabled by default.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed the release note. Is this stated somewhere that a new metric is a breaking change? I like to read the guidelines to make better release notes, I didn't see this stated in the CONTRIBUTING.md file.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexvanboxel alexvanboxel requested a review from atoulme May 5, 2025 07:43
@atoulme atoulme merged commit fb56f65 into open-telemetry:main May 5, 2025
173 checks passed
@github-actions github-actions bot added this to the next release milestone May 5, 2025
vincentfree pushed a commit to ing-bank/opentelemetry-collector-contrib that referenced this pull request May 6, 2025
…pen-telemetry#39839)

#### Description
Introduce a setting to ignore errors when the configured encoder. It's
advised to set this to `true` when using
a custom encoder, and use `receiver.googlecloudpubsub.encoding_error`
metric to monitor the number of errors.
Ignoring the error will cause the receiver to drop the message.

#### Link to tracking issue
open-telemetry#38164

#### Testing
Tested with a custom encoder and introducing bogus message to the topic.

#### Documentation
Added the configuration setting to the README
vincentfree pushed a commit to ing-bank/opentelemetry-collector-contrib that referenced this pull request May 20, 2025
…pen-telemetry#39839)

#### Description
Introduce a setting to ignore errors when the configured encoder. It's
advised to set this to `true` when using
a custom encoder, and use `receiver.googlecloudpubsub.encoding_error`
metric to monitor the number of errors.
Ignoring the error will cause the receiver to drop the message.

#### Link to tracking issue
open-telemetry#38164

#### Testing
Tested with a custom encoder and introducing bogus message to the topic.

#### Documentation
Added the configuration setting to the README
dragonlord93 pushed a commit to dragonlord93/opentelemetry-collector-contrib that referenced this pull request May 23, 2025
…pen-telemetry#39839)

#### Description
Introduce a setting to ignore errors when the configured encoder. It's
advised to set this to `true` when using
a custom encoder, and use `receiver.googlecloudpubsub.encoding_error`
metric to monitor the number of errors.
Ignoring the error will cause the receiver to drop the message.

#### Link to tracking issue
open-telemetry#38164

#### Testing
Tested with a custom encoder and introducing bogus message to the topic.

#### Documentation
Added the configuration setting to the README
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