Skip to content

Commit

Permalink
document the specific boundaries
Browse files Browse the repository at this point in the history
  • Loading branch information
dmathieu committed Aug 23, 2023
1 parent 5febde7 commit 2228d0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/telemetry/metric_exporter_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import (
"go.opentelemetry.io/otel/sdk/metric/metricdata"
)

// Override default otel/prometheus boundaries, as we skip empty buckets and therefore able to use more accurate and higher range boundaries.
// See https://github.com/elastic/apm/blob/5791498e9569ef9111615ef439e1cbf0b7fd7c18/specs/agents/metrics-otel.md#histogram-aggregation
var customHistogramBoundaries = []float64{
0.00390625, 0.00552427, 0.0078125, 0.0110485, 0.015625, 0.0220971, 0.03125,
0.0441942, 0.0625, 0.0883883, 0.125, 0.176777, 0.25, 0.353553, 0.5, 0.707107,
Expand Down

0 comments on commit 2228d0d

Please sign in to comment.