Unsafely installs the specified metric listener.
Unsafely removed the specified metric listener.
Unsafely looks up the state of a metric by its key.
Unsafely captures a snapshot of all metrics recorded by the application.
A
MetricClientprovides the functionality to consume metrics produced by ZIO applications.MetricClientsupports two ways of consuming metrics, corresponding to the two ways that third party metrics services use metrics.First, metrics services can poll for the current state of all recorded metrics using the
unsafeSnapshotmethod, which provides a snapshot, as of a point in time, of all metrics recorded by the ZIO application.Second, metrics services can install a listener that will be notified every time a metric is updated.
MetricClientis a lower level interface and is intended to be used by implementers of integrations with third party metrics services but not by end users.