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

[receiver/googlecloudpubsub] Add support for encoding extensions (#37109) #37137

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexvanboxel
Copy link
Contributor

Description

Added support for encoding extensions. Setting the encoding field in the config now references the extension. If it didn't find the extension, it will fall back to searching the internal encoders.

To make the build in encoders consistent with the extensions, they now have the same interface.

Link to tracking issue

Fixes #37109

Testing

  • Added tests for the receiver to handle the new extensions and the build in encoders
  • Removed the tests in the configuration, as they are now handled in the receiver tests

Documentation

Reworked the encoding section of the README, with an example of a text_encoding extension

@alexvanboxel alexvanboxel requested a review from a team as a code owner January 10, 2025 07:24
@alexvanboxel alexvanboxel requested a review from songy23 January 10, 2025 07:24
@alexvanboxel alexvanboxel force-pushed the pubsubreceiver-encodingextensions branch 2 times, most recently from 8952521 to fa9e362 Compare January 10, 2025 11:39
…n-telemetry#37109)

Added support for encoding extensions. Setting the encoding field in the
config now references the extension. If it didn't find the extension it
will fall back to searching the internal encoders.

To make the build in encoders consistent with the extensions they now
have the same interface.

The README is adapted accordingly.
Copy link
Contributor

@atoulme atoulme left a comment

Choose a reason for hiding this comment

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

LGTM, need a codeowner review.

@alexvanboxel
Copy link
Contributor Author

alexvanboxel commented Jan 10, 2025

LGTM, need a codeowner review.

I am the codeowner (sorry, should have stated that in the PR)

@atoulme
Copy link
Contributor

atoulme commented Jan 10, 2025

LGTM, need a codeowner review.

I am the codeowner (sorry, should have stated that in the PR)

spiderman meme here

@atoulme atoulme added the ready to merge Code review completed; ready to merge by maintainers label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers receiver/googlecloudpubsub
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[receiver/googlecloudpubsub] Add support for Encoding Extensions
3 participants