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()) }