-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Component(s)
exporter/debug
What happened?
Describe the bug
The default sending queue configuration added in #14101 sets the queue size to 1. With such a configuration, sending more than one log at a time to the collector causes immediate export failures, and can be reproduced easily with a basic configuration and telemetrygen with two workers.
I am not sure what the queue size should be, but it seems that 1 might be too low. 😅
Steps to reproduce
- Run a collector with the provided sample configuration. I used docker, and ran it like so:
docker run -v $(pwd)/config.yaml:/etc/otelcol/config.yaml -p 4318:4318 otel/opentelemetry-collector:0.139.0 - Run
telemetrygenwith more than one worker:telemetrygen logs --duration inf --workers 2 --otlp-http --otlp-insecure --otlp-endpoint 127.0.0.1:4318
What did you expect to see?
No export failures.
What did you see instead?
Immediate export failures.
Collector version
v0.139.0
Environment information
Environment
OS: macOS Sequoia 15.6.1 (reproducible in docker, however).
Compiler(if manually compiled): n/a
OpenTelemetry Collector configuration
receivers:
otlp:
protocols:
http:
endpoint: 0.0.0.0:4318
exporters:
debug:
service:
pipelines:
logs:
receivers: [otlp]
exporters: [debug]Log output
2025-11-06T14:42:08.465Z info [email protected]/service.go:222 Starting otelcol... {"resource": {"service.instance.id": "6f29825a-fb72-4d6e-8f8e-1129c8f42d1b", "service.name": "otelcol", "service.version": "0.139.0"}, "Version": "0.139.0", "NumCPU": 14}
2025-11-06T14:42:08.465Z info extensions/extensions.go:40 Starting extensions... {"resource": {"service.instance.id": "6f29825a-fb72-4d6e-8f8e-1129c8f42d1b", "service.name": "otelcol", "service.version": "0.139.0"}}
2025-11-06T14:42:08.465Z info [email protected]/otlp.go:178 Starting HTTP server {"resource": {"service.instance.id": "6f29825a-fb72-4d6e-8f8e-1129c8f42d1b", "service.name": "otelcol", "service.version": "0.139.0"}, "otelcol.component.id": "otlp", "otelcol.component.kind": "receiver", "endpoint": "[::]:4318"}
2025-11-06T14:42:08.465Z info [email protected]/service.go:245 Everything is ready. Begin running and processing data. {"resource": {"service.instance.id": "6f29825a-fb72-4d6e-8f8e-1129c8f42d1b", "service.name": "otelcol", "service.version": "0.139.0"}}
2025-11-06T14:42:10.542Z info Logs {"resource": {"service.instance.id": "6f29825a-fb72-4d6e-8f8e-1129c8f42d1b", "service.name": "otelcol", "service.version": "0.139.0"}, "otelcol.component.id": "debug", "otelcol.component.kind": "exporter", "otelcol.signal": "logs", "resource logs": 1, "log records": 1}
2025-11-06T14:42:10.542Z error internal/base_exporter.go:114 Exporting failed. Rejecting data. {"resource": {"service.instance.id": "6f29825a-fb72-4d6e-8f8e-1129c8f42d1b", "service.name": "otelcol", "service.version": "0.139.0"}, "otelcol.component.id": "debug", "otelcol.component.kind": "exporter", "otelcol.signal": "logs", "error": "sending queue is full", "rejected_items": 1}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.