-
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
[receiver/kafkareceiver] Add encoding extensions support #33888
[receiver/kafkareceiver] Add encoding extensions support #33888
Conversation
b29513a
to
c38502d
Compare
c38502d
to
9b9cb8f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a breaking change - any way to smooth that over? But it looks good.
it can be done, keeping the another alternative would be to keep the existing |
Please fix the conflicts and let's go |
9b9cb8f
to
d2a0d10
Compare
@atoulme done. tested again with and without encoding extension and the internal encoders. |
Thanks, please look at the build |
d2a0d10
to
c0a66e7
Compare
c0a66e7
to
a6ec1d7
Compare
@MovieStoreGuy can u please review |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
a6ec1d7
to
356aab1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of suggestions and be happy to merge
57e8cdb
to
880a09b
Compare
880a09b
to
e1ece09
Compare
as discussed. refactored so its now non breaking change. tested with the avro encoding extension as well with the internal json and text encoding. |
f2dda2b
to
5b6e66c
Compare
5b6e66c
to
db75618
Compare
**Description:** Add support for encoding extensions in the kafkaexporter To be able to use encoding extensions this PR adds extension support and proposes to rename the existing `encoding` configuration property to `format` and reusing the `encoding` property for configuring encoding extensions. Reason is to be consistent with other receivers/exporters. Related to #33888 which adds encoding extension support in the `kafkareceiver`. **Link to tracking Issue:** n/a **Testing:** Tested via the following configuration. ``` receivers: kafka: brokers: - localhost:29092 encoding: json group_id: test1 topic: logs_in extensions: json_log_encoding: exporters: debug: verbosity: detailed kafka: brokers: - localhost:29092 encoding: json_log_encoding topic: json_out processors: batch: service: extensions: [json_log_encoding] pipelines: logs: receivers: [kafka] processors: [batch] exporters: [debug, kafka] telemetry: logs: level: "info" ``` Any json can be written to the `logs_in` topic and results be viewed in the `json_out` topic. When removing `encoding: json_log_encoding` the default format type is used and the output in `json_out` topic changes accordingly. **Documentation:** Updated README.md within the receiver describing the use of encoding extensions. Co-authored-by: Sean Marciniak <30928402+MovieStoreGuy@users.noreply.github.com>
…try#33888) **Description:** Add support for encoding extensions in the kafkareceiver <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.--> To be able to use encoding extensions this PR adds extension support and proposes to rename the existing `encoding` configuration property to `format` and reusing the `encoding` property for configuring encoding extensions. Reason is to be consistent with other receivers/exporters like the `fileexporter` that already support extensions. **Link to tracking Issue:** n/a **Testing:** Tested with the existing avro_log_encoding extension as well with receivers internal json encoding. **Documentation:**: Updated README.md within the receiver describing the use of encoding extensions.
…try#33888) **Description:** Add support for encoding extensions in the kafkareceiver <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.--> To be able to use encoding extensions this PR adds extension support and proposes to rename the existing `encoding` configuration property to `format` and reusing the `encoding` property for configuring encoding extensions. Reason is to be consistent with other receivers/exporters like the `fileexporter` that already support extensions. **Link to tracking Issue:** n/a **Testing:** Tested with the existing avro_log_encoding extension as well with receivers internal json encoding. **Documentation:**: Updated README.md within the receiver describing the use of encoding extensions.
…try#34384) **Description:** Add support for encoding extensions in the kafkaexporter To be able to use encoding extensions this PR adds extension support and proposes to rename the existing `encoding` configuration property to `format` and reusing the `encoding` property for configuring encoding extensions. Reason is to be consistent with other receivers/exporters. Related to open-telemetry#33888 which adds encoding extension support in the `kafkareceiver`. **Link to tracking Issue:** n/a **Testing:** Tested via the following configuration. ``` receivers: kafka: brokers: - localhost:29092 encoding: json group_id: test1 topic: logs_in extensions: json_log_encoding: exporters: debug: verbosity: detailed kafka: brokers: - localhost:29092 encoding: json_log_encoding topic: json_out processors: batch: service: extensions: [json_log_encoding] pipelines: logs: receivers: [kafka] processors: [batch] exporters: [debug, kafka] telemetry: logs: level: "info" ``` Any json can be written to the `logs_in` topic and results be viewed in the `json_out` topic. When removing `encoding: json_log_encoding` the default format type is used and the output in `json_out` topic changes accordingly. **Documentation:** Updated README.md within the receiver describing the use of encoding extensions. Co-authored-by: Sean Marciniak <30928402+MovieStoreGuy@users.noreply.github.com>
Description: Add support for encoding extensions in the kafkareceiver
To be able to use encoding extensions this PR adds extension support and proposes to rename the existing
encoding
configuration property toformat
and reusing theencoding
property for configuring encoding extensions. Reason is to be consistent with other receivers/exporters like thefileexporter
that already support extensions.Link to tracking Issue: n/a
Testing: Tested with the existing avro_log_encoding extension as well with receivers internal json encoding.
Documentation:: Updated README.md within the receiver describing the use of encoding extensions.