Skip to main content

register_product_metric

Function register_product_metric 

Source
pub fn register_product_metric(
    descriptor: MetricDescriptor,
) -> ProductMetricResult<ProductMetricHandle>
Expand description

Registers a product-owned metric family in the shared Prometheus registry.

Product crates pass a Forge MetricDescriptor and receive an opaque handle for future record calls. This keeps product code independent from the prometheus crate while still allowing product-specific metric families.