[exporter/kafka] Add support for allow_auto_topic_creation to keep partity between Sarama and Franz-Go#42507
Merged
Merged
Conversation
…rtity between Sarama and Franz-Go Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
Member
Author
|
/easycla |
axw
added a commit
to axw/opentelemetry-collector-contrib
that referenced
this pull request
Oct 10, 2025
songy23
pushed a commit
that referenced
this pull request
Oct 10, 2025
#### Description I would like to propose adding @paulojmdias as a code owner of the Kafka components. He has been doing excellent work across all of those components (and more besides!). - #42507 - #42796 - #43105 - #42181 - #42327 - #42507 - #42796 - #43019 - #43083 - #43105 #### Link to tracking issue N/A #### Testing N/A #### Documentation N/A
ChrsMark
pushed a commit
to ChrsMark/opentelemetry-collector-contrib
that referenced
this pull request
Oct 20, 2025
#### Description I would like to propose adding @paulojmdias as a code owner of the Kafka components. He has been doing excellent work across all of those components (and more besides!). - open-telemetry#42507 - open-telemetry#42796 - open-telemetry#43105 - open-telemetry#42181 - open-telemetry#42327 - open-telemetry#42507 - open-telemetry#42796 - open-telemetry#43019 - open-telemetry#43083 - open-telemetry#43105 #### Link to tracking issue N/A #### Testing N/A #### Documentation N/A
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add support for configuring Kafka topic auto-creation in the exporter by introducing the
allow_auto_topic_creationoption for producers.Franz-go and Sarama differ in their defaults for topic auto-creation. Sarama enables it by default, while Franz-go requires explicit configuration. This PR aligns behavior across both clients and gives users explicit control to avoid unexpected broker errors when topics are not pre-created.
Link to tracking issue
Fixes #42468
Testing
I tested the option using both Sarama and Franz-Go with both values (
trueandfalse) and the behaviour is the expected.