diff --git a/Sources/Prometheus/Histogram.swift b/Sources/Prometheus/Histogram.swift index dabe2a0..5b8ce76 100644 --- a/Sources/Prometheus/Histogram.swift +++ b/Sources/Prometheus/Histogram.swift @@ -56,6 +56,7 @@ public final class Histogram: Sendable { self.box = .init(.init(buckets: buckets)) } + @inlinable public func record(_ value: Value) { self.box.withLockedValue { state in for i in state.buckets.startIndex..