From 514e37e890b8da59e872103b07e6e103a3b5ef6f Mon Sep 17 00:00:00 2001 From: Philippe Boneff Date: Wed, 16 Apr 2025 11:38:21 +0000 Subject: [PATCH] use better buckets --- internal/ct/handlers.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/ct/handlers.go b/internal/ct/handlers.go index 34835527..fd0f71b5 100644 --- a/internal/ct/handlers.go +++ b/internal/ct/handlers.go @@ -89,9 +89,11 @@ func setupMetrics() { metric.WithDescription("CT HTTP responses"), metric.WithUnit("{response}"))) + // TODO(phboneff): switch back to s, in Tessera as well. reqDuration = mustCreate(meter.Float64Histogram("tesseract.http.request.duration", metric.WithDescription("CT HTTP response duration"), - metric.WithUnit("s"))) + metric.WithUnit("ms"), + metric.WithExplicitBucketBoundaries(otel.LatencyHistogramBuckets...))) } // entrypoints is a list of entrypoint names as exposed in statistics/logging.