Initializerswift-metrics 2.6.1CoreMetrics
init(factories:)
Metrics.swift:1095init(factories: [MetricsFactory])
init(factories: [MetricsFactory])
s11CoreMetrics09MultiplexB7HandlerC9factoriesACSayAA0B7Factory_pG_tcfc
What are these?3086P
import CoreMetrics
A Metrics API package for Swift.
final class MultiplexMetricsHandler
A pseudo-metrics handler that can be used to send messages to multiple other metrics handlers.
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:
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