MeterHandler

A MeterHandler represents a backend implementation of a Meter.

Metrics.swift:1034
protocol MeterHandler : AnyObject, _SwiftMetricsSendableProtocol
Browse conforming types

This 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 Meter.

Implementation requirements

To implement your own MeterHandler you should respect a few requirements that are necessary so applications work as expected regardless of the selected MeterHandler implementation.

  • The RecorderHandler must be a class.