Skip to content

Batcher sizer is set to items even though the queue sizer is bytes #14500

@bogdandrutu

Description

@bogdandrutu

Component(s)

pkg/exporter/exporterhelper

What happened?

Describe the bug

Batcher sizer is set to items even though the queue sizer is bytes.

Steps to reproduce

    sending_queue:
      queue_size: 62914560  # 60MiB
      sizer: bytes
      block_on_overflow: true
      num_consumers: 64
      batch:
        min_size: 1048576   # 1MiB
        max_size: 16777216  # 16MiB
        flush_timeout: 1s

What did you expect to see?

The sent messages to not be larger than 16MB

What did you see instead?

The sent messages larger than 100MB

Collector version

v0.142.0

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

Log output

Additional context

No response

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions