Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tammy-baylis-swi opened this issue May 9, 2025 · 0 comments · May be fixed by #4576
Open

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

tammy-baylis-swi opened this issue May 9, 2025 · 0 comments · May be fixed by #4576
Assignees

Comments

@tammy-baylis-swi
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant