Skip to content

miniproto.observability.set_metrics_sink

set_metrics_sink(sink: MetricsSink | None) -> None

Set the process-global metrics destination, or disable metric recording.

Parameters:

  • sink (MetricsSink | None) – Metrics sink to use; None disables the global sink.