opentelemetry-collector-contrib icon indicating copy to clipboard operation
opentelemetry-collector-contrib copied to clipboard

[pkg/stanza]: allow max_batch_size to be 0 for unlimited batching in recombine

Open MoosaTae opened this issue 1 month ago • 2 comments

Description

Allow setting max_batch_size: 0 in the recombine operator to disable the batch size limit, enabling unlimited batching.

  • Modified condition in transformer.go to check maxBatchSize > 0 before applying the limit
  • Added test case TestMaxBatchSizeUnlimited to verify the new behavior

Link to tracking issue

Fixes #43982 (partial - enables the feature)

Testing

  • Added TestMaxBatchSizeUnlimited test

Documentation

Configuration Example

receivers:
  filelog:
    operators:
      - type: container

MoosaTae avatar Nov 03 '25 20:11 MoosaTae

CLA Signed

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:

A maintainer will review your pull request soon. Thank you for helping make OpenTelemetry better!

github-actions[bot] avatar Nov 03 '25 20:11 github-actions[bot]

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.

otelbot[bot] avatar Dec 11 '25 14:12 otelbot[bot]