Skip to content

Commit

Permalink
feat: add more buckets to the histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
0x416e746f6e committed Mar 17, 2024
1 parent 8b36dc2 commit d571885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (m *metrics) setup(meter otelapi.Meter, observe func(ctx context.Context, o

// new block latency
newBlockLatency, err := meter.Float64Histogram(metricNewBlockLatency,
metric.WithExplicitBucketBoundaries(.005, .01, .025, .05, .075, .1, .25, .5, .75, 1, 1.5, 3, 6, 12),
metric.WithExplicitBucketBoundaries(.005, .01, .025, .05, .075, .1, .25, .5, .75, 1, 1.5, 3, 6, 12, 24, 48, 96, 192, 384, 768),
otelapi.WithDescription(metricDescriptions[metricNewBlockLatency]),
otelapi.WithUnit("s"),
)
Expand Down

0 comments on commit d571885

Please sign in to comment.