MultiplexMetricsHandler
A pseudo-metrics handler that can be used to send messages to multiple other metrics handlers.
final class MultiplexMetricsHandler
A pseudo-metrics handler that can be used to send messages to multiple other metrics handlers.
final class MultiplexMetricsHandler
import CoreMetrics
A Metrics API package for Swift.
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 Sendable
@preconcurrency protocol _SwiftMetricsSendableProtocol : Sendable
init(factories: [MetricsFactory])
func destroyCounter(_ handler: CounterHandler)
func destroyFloatingPointCounter(_ handler: FloatingPointCounterHandler)
func destroyMeter(_ handler: MeterHandler)
func destroyRecorder(_ handler: RecorderHandler)
func destroyTimer(_ handler: TimerHandler)
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