Skip to content

Commit

Permalink
goldendataset: fix histogram metric BucketCounts length
Browse files Browse the repository at this point in the history
  • Loading branch information
narcis96 committed Oct 4, 2024
1 parent fb37793 commit 8ce8b74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/coreinternal/goldendataset/metrics_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func populateDoubleHistogram(cfg MetricsCfg, dh pmetric.Histogram) {
}

func setDoubleHistogramBounds(hdp pmetric.HistogramDataPoint, bounds ...float64) {
counts := make([]uint64, len(bounds))
counts := make([]uint64, len(bounds)+1)
hdp.BucketCounts().FromRaw(counts)
hdp.ExplicitBounds().FromRaw(bounds)
}
Expand Down

0 comments on commit 8ce8b74

Please sign in to comment.