Skip to content

exporters/otlp: add HTTP metric exporter benchmark (#3801)#624

Merged
malkia merged 1 commit intomalkia:mainfrom
open-telemetry:main
Jan 9, 2026
Merged

exporters/otlp: add HTTP metric exporter benchmark (#3801)#624
malkia merged 1 commit intomalkia:mainfrom
open-telemetry:main

Conversation

@malkia
Copy link
Copy Markdown
Owner

@malkia malkia commented Jan 9, 2026

Introduce a Google Benchmark-based performance benchmark for the OTLP HTTP metric exporter, covering both binary (protobuf) and JSON encodings.

Key changes:

  • Add otlp_http_metric_exporter_benchmark target under WITH_BENCHMARK && WITH_OTLP_HTTP.
  • Benchmark OtlpHttpMetricExporter::Export() across increasing numbers of metric data points (1 → 10,000).
  • Measure export cost for both binary and JSON content types.
  • Disable retries and logging to reduce noise and isolate exporter overhead.

This benchmark provides a baseline for evaluating export performance and future optimizations in the OTLP HTTP metric exporter.

Fix resource lifetime in OTLP HTTP metric exporter benchmark

fix CI build errors in HTTP metric exporter benchmark

Fixes # (issue)

Changes

Please provide a brief description of the changes here.

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

Introduce a Google Benchmark-based performance benchmark for the OTLP HTTP
metric exporter, covering both binary (protobuf) and JSON encodings.

Key changes:
- Add `otlp_http_metric_exporter_benchmark` target under
  `WITH_BENCHMARK && WITH_OTLP_HTTP`.
- Benchmark `OtlpHttpMetricExporter::Export()` across increasing numbers of
  metric data points (1 → 10,000).
- Measure export cost for both binary and JSON content types.
- Disable retries and logging to reduce noise and isolate exporter overhead.

This benchmark provides a baseline for evaluating export performance and
future optimizations in the OTLP HTTP metric exporter.

Fix resource lifetime in OTLP HTTP metric exporter benchmark

fix CI build errors in HTTP metric exporter benchmark
@malkia malkia merged commit ee098cd into malkia:main Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants