NOOPMetricsHandler
Ships with the metrics module, used for initial bootstrapping.
final class NOOPMetricsHandler
Ships with the metrics module, used for initial bootstrapping.
final class NOOPMetricsHandler
import CoreMetrics
A Metrics API package for Swift.
protocol CounterHandler : AnyObject, _SwiftMetricsSendableProtocol
A CounterHandler
represents a backend implementation of a Counter
.
protocol FloatingPointCounterHandler : AnyObject, _SwiftMetricsSendableProtocol
A FloatingPointCounterHandler
represents a backend implementation of a FloatingPointCounter
.
protocol MeterHandler : AnyObject, _SwiftMetricsSendableProtocol
A MeterHandler
represents a backend implementation of a Meter
.
protocol MetricsFactory : _SwiftMetricsSendableProtocol
The MetricsFactory
is the bridge between the MetricsSystem
and the metrics backend implementation. MetricsFactory
’s role is to initialize concrete implementations of the various metric types:
protocol RecorderHandler : AnyObject, _SwiftMetricsSendableProtocol
A RecorderHandler
represents a backend implementation of a Recorder
.
protocol Sendable
protocol TimerHandler : AnyObject, _SwiftMetricsSendableProtocol
A TimerHandler
represents a backend implementation of a Timer
.
@preconcurrency protocol _SwiftMetricsSendableProtocol : Sendable
static let instance: NOOPMetricsHandler
func decrement(by: Double)
func destroyCounter(_: CounterHandler)
func destroyFloatingPointCounter(_: FloatingPointCounterHandler)
func destroyMeter(_: MeterHandler)
func destroyRecorder(_: RecorderHandler)
func destroyTimer(_: TimerHandler)
func increment(by: Double)
func increment(by: Int64)
func makeCounter(label: String, dimensions: [(String, String)]) -> CounterHandler
func makeFloatingPointCounter(label: String, dimensions: [(String, String)]) -> FloatingPointCounterHandler
func makeMeter(label: String, dimensions: [(String, String)]) -> MeterHandler
func makeRecorder(label: String, dimensions: [(String, String)], aggregate: Bool) -> RecorderHandler
func makeTimer(label: String, dimensions: [(String, String)]) -> TimerHandler
func record(_: Double)
func record(_: Int64)
func recordNanoseconds(_: Int64)
func reset()
func set(_: Double)
func set(_: Int64)
func preferDisplayUnit(_: TimeUnit)