[receiver/kafka] add support for max partition fetch bytes config#43105
Merged
Conversation
Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
VihasMakwana
reviewed
Oct 1, 2025
Co-authored-by: Vihas Makwana <121151420+VihasMakwana@users.noreply.github.com>
VihasMakwana
reviewed
Oct 1, 2025
| - `default_fetch_size` (default = `1048576`): The default number of message bytes to fetch in a request, defaults to 1MB. | ||
| - `max_fetch_size` (default = `0`): The maximum number of message bytes to fetch in a request, defaults to unlimited. | ||
| - `max_fetch_wait` (default = `250ms`): The maximum amount of time the broker should wait for `min_fetch_size` bytes to be available before returning anyway. | ||
| - `max_partition_fetch_size` (default = `1048576`): The default number of message bytes to fetch in a request per partition, defaults to 1MB. If a single record batch is larger than this value, the broker will still return it to ensure the consumer can make progress. This setting only applies while using [`franz-go`](https://github.com/twmb/franz-go). |
Contributor
There was a problem hiding this comment.
A thing we can work as a follow-up is to use human readable formats in documentation.
We can use 1 MiB instead of 1048576
Contributor
There was a problem hiding this comment.
Not a necessity for this PR as there few more places in this README.
Contributor
There was a problem hiding this comment.
@VihasMakwana I opened a new issue for this and other components.
VihasMakwana
approved these changes
Oct 1, 2025
Contributor
|
Good to merge, as it is approved by codeowner! |
graphaelli
pushed a commit
to graphaelli/opentelemetry-collector-contrib
that referenced
this pull request
Oct 6, 2025
…en-telemetry#43105) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description This PR adds support for a new setting named `max_partition_fetch_size` to be used with `kgo.FetchMaxPartitionBytes` franz-go option. <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes open-telemetry#43097 <!--Describe what testing was performed and which tests were added.--> #### Testing Updated tests to ensure the new config is applied and works as expected. <!--Describe the documentation added.--> #### Documentation Documentation updated with the new setting, and referencing will only work while using `franz-go` as Sarama doesn't have support for it. <!--Please delete paragraphs that you did not use before submitting.--> --------- Signed-off-by: Paulo Dias <paulodias.gm@gmail.com> Co-authored-by: Vihas Makwana <121151420+VihasMakwana@users.noreply.github.com>
mashhurs
pushed a commit
to mashhurs/opentelemetry-collector-contrib
that referenced
this pull request
Oct 9, 2025
…en-telemetry#43105) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description This PR adds support for a new setting named `max_partition_fetch_size` to be used with `kgo.FetchMaxPartitionBytes` franz-go option. <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes open-telemetry#43097 <!--Describe what testing was performed and which tests were added.--> #### Testing Updated tests to ensure the new config is applied and works as expected. <!--Describe the documentation added.--> #### Documentation Documentation updated with the new setting, and referencing will only work while using `franz-go` as Sarama doesn't have support for it. <!--Please delete paragraphs that you did not use before submitting.--> --------- Signed-off-by: Paulo Dias <paulodias.gm@gmail.com> Co-authored-by: Vihas Makwana <121151420+VihasMakwana@users.noreply.github.com>
axw
added a commit
to axw/opentelemetry-collector-contrib
that referenced
this pull request
Oct 10, 2025
tommyers-elastic
pushed a commit
to tommyers-elastic/opentelemetry-collector-contrib
that referenced
this pull request
Oct 10, 2025
…en-telemetry#43105) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description This PR adds support for a new setting named `max_partition_fetch_size` to be used with `kgo.FetchMaxPartitionBytes` franz-go option. <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes open-telemetry#43097 <!--Describe what testing was performed and which tests were added.--> #### Testing Updated tests to ensure the new config is applied and works as expected. <!--Describe the documentation added.--> #### Documentation Documentation updated with the new setting, and referencing will only work while using `franz-go` as Sarama doesn't have support for it. <!--Please delete paragraphs that you did not use before submitting.--> --------- Signed-off-by: Paulo Dias <paulodias.gm@gmail.com> Co-authored-by: Vihas Makwana <121151420+VihasMakwana@users.noreply.github.com>
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
This PR adds support for a new setting named
max_partition_fetch_sizeto be used withkgo.FetchMaxPartitionBytesfranz-go option.Link to tracking issue
Fixes #43097
Testing
Updated tests to ensure the new config is applied and works as expected.
Documentation
Documentation updated with the new setting, and referencing will only work while using
franz-goas Sarama doesn't have support for it.