8000 OTLPMetricExporter fails to send more than 4MB of data · Issue #2710 · open-telemetry/opentelemetry-python · GitHub
[go: up one dir, main page]

Skip to content

OTLPMetricExporter fails to send more than 4MB of data #2710

@overmeulen

Description

@overmeulen

Describe your environment
Python 3.6.8
Opentelemetry Python 1.12.0
Opentelemetry Collector 0.38.0

Steps to reproduce
Metrics SDK with quite a few observables generating more than 4MB of data (datapoints)

What is the expected behavior?
The datapoints are sent to the collector without any problem

What is the actual behavior?
The export to the collector fails with StatusCode.RESOURCE_EXHAUSTED
The exporter keeps on sending the same batch over and over until the data gets dropped

Additional context
One solutions would by to have a configurable "max batch size" in the OTLPMetricExporter, like there is today in the BatchLogProcessor for logs.
Another solution would be for the OTLP gRPC exporter to automatically retry with a smaller batch if it receives a StatusCode.RESOURCE_EXHAUSTED ?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingmetrics

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0