-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Component(s)
exporter/opensearch
What happened?
Description
When running Collector 0.142.0 with opensearch exporter and sending_queue configured, the Collector is crashing and failing to start.
Steps to Reproduce
Simply start a collector with this exporter configured:
opensearch:
logs_index: otel-logs
logs_index_time_format: "yyyy-MM-dd"
http:
endpoint: "http://opensearch:9200"
tls:
insecure: true
sending_queue:
batch:
Expected Result
The Collector should start without any issues.
Actual Result
The Collector crashes and never starts with the following errors:
Error: invalid configuration: exporters::opensearch::sending_queue: `num_consumers` must be positive
2025/12/17 07:49:17 collector server run finished with error: invalid configuration: exporters::opensearch::sending_queue: `num_consumers` must be positive
When adding num_consumers, the Collector crashed with the following error:
Error: invalid configuration: exporters::opensearch::sending_queue: `queue_size` must be positive
2025/12/17 07:57:16 collector server run finished with error: invalid configuration: exporters::opensearch::sending_queue: `queue_size` must be positive
num_consumers and queue_size default values are not being considered:
https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md#sending-queue
To fix and start the Collector, I had to explicitly set those values:
opensearch:
logs_index: otel-logs
logs_index_time_format: "yyyy-MM-dd"
http:
endpoint: "http://opensearch:9200"
tls:
insecure: true
sending_queue:
num_consumers: 10
queue_size: 1000
batch:
Collector version
0.142.0
Environment information
Environment
OS: MacOS Tahoe 26.1
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.