Skip to content

Add HTTP OTLPMetricExporter configurable max export batch size, like gRPC #4577

Open
@tammy-baylis-swi

Description

@tammy-baylis-swi

Is your feature request related to a problem?

When an instrumented service generates lots of metrics (many data points / high cardinality) and is configured to export by HTTP, it would help to limit how many metrics data points are exported with each request by splitting into multiple smaller requests.

Describe the solution you'd like

HTTP OTLPMetricExporter could support a configurable max_export_batch_size, like the gRPC OTLPMetricExporter already does (completed through issue #2710 with PR #2809) -- bonus for exporter consistency.

Describe alternatives you've considered

For some environments it's not possible to switch from HTTP to gRPC export to use the existing batching. For example, the OTel Lambda layer and OTel Operator image for Python are built by pre-installing dependencies (SDK, exporters, etc). It's not reasonable to pre-install grpcio because it requires a C extension specific to each Python version and architecture; layer/image size would bloat and builds would be slow.

Additional Context

  1. OTLPMetricExporter fails to send more than 4MB of data #2710
  2. Add a configurable max_export_batch_size to the gRPC metrics exporter #2809
  3. Max Export Size for Metrics/Logs/Traces opentelemetry-specification#2772

Would you like to implement a fix?

Yes

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions