From 2bfd38f0e254cec5541069bead2eac2358af9f2c Mon Sep 17 00:00:00 2001 From: James Sherlock <15193942+Sherlouk@users.noreply.github.com> Date: Sun, 31 Jul 2022 16:26:08 +0100 Subject: [PATCH] Use defaultRecorderBuckets for Histogram Fixes #74 --- Sources/Prometheus/PrometheusMetrics.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Prometheus/PrometheusMetrics.swift b/Sources/Prometheus/PrometheusMetrics.swift index cdb9261..3c28d29 100644 --- a/Sources/Prometheus/PrometheusMetrics.swift +++ b/Sources/Prometheus/PrometheusMetrics.swift @@ -204,7 +204,7 @@ public struct PrometheusMetricsFactory: PrometheusWrappedMetricsFactory { private func makeHistogram(label: String, dimensions: [(String, String)]) -> RecorderHandler { let label = configuration.labelSanitizer.sanitize(label) - let histogram = client.createHistogram(forType: Double.self, named: label) + let histogram = client.createHistogram(forType: Double.self, named: label, buckets: configuration.defaultRecorderBuckets) return MetricsHistogram(histogram: histogram, dimensions: dimensions.sanitized()) }