pub fn global_metrics() -> &'static MetricsRegistryExpand description
Process-wide global MetricsRegistry instance.
Use this in production code to record metrics without threading a registry through every call.
ยงExample
use stygian_graph::application::metrics::{global_metrics, MetricEvent};
global_metrics().record(MetricEvent::CacheAccess { hit: true });