[pkg/stanza]: allow max_batch_size to be 0 for unlimited batching in recombine
Description
Allow setting max_batch_size: 0 in the recombine operator to disable the batch size limit, enabling unlimited batching.
- Modified condition in
transformer.goto checkmaxBatchSize > 0before applying the limit - Added test case
TestMaxBatchSizeUnlimitedto verify the new behavior
Link to tracking issue
Fixes #43982 (partial - enables the feature)
Testing
- Added
TestMaxBatchSizeUnlimitedtest
Documentation
Configuration Example
receivers:
filelog:
operators:
- type: container
The committers listed above are authorized under a signed CLA.
- :white_check_mark: login: MoosaTae / name: Sadit Wongprayon (e337fe11101678ce636975427b63c45c2f07b9b0)
Welcome, contributor! Thank you for your contribution to opentelemetry-collector-contrib.
Important reminders:
- Please review our Contributing Guidelines.
- Don't forget to sign the Contributor License Agreement (CLA) if you haven't already.
A maintainer will review your pull request soon. Thank you for helping make OpenTelemetry better!
Thank you for your contribution @MoosaTae! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey. If you are getting started contributing, you can also join the CNCF Slack channel #opentelemetry-new-contributors to ask for guidance and get help.