Protocolswift-metrics 2.6.1CoreMetrics
RecorderHandler
A RecorderHandler
represents a backend implementation of a Recorder
.
protocol RecorderHandler : AnyObject, _SwiftMetricsSendableProtocol
Browse conforming typesThis type is an implementation detail and should not be used directly, unless implementing your own metrics backend. To use the SwiftMetrics API, please refer to the documentation of Recorder
.
Implementation requirements
To implement your own RecorderHandler
you should respect a few requirements that are necessary so applications work as expected regardless of the selected RecorderHandler
implementation.
The
RecorderHandler
must be aclass
.