-
Notifications
You must be signed in to change notification settings - Fork 751
Description
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 ?