foundations 5.8.0

A Rust service foundations library.
Documentation
//! Tracing-related metrics.

use super::channel::PipelineType;
use crate::telemetry::metrics::{Counter, Gauge};

/// Tracing metrics.
#[crate::telemetry::metrics::metrics(crate_path = "crate", unprefixed)]
pub mod tracing {
    /// Current size of the span consumer queue.
    pub fn queue_size(pipeline: PipelineType) -> Gauge;

    /// Maximum allowed size of the span consumer queue. `usize::MAX` for
    /// unbounded queues.
    pub fn max_queue_size(pipeline: PipelineType) -> Gauge;

    /// Total number of spans produced.
    pub fn spans_total(pipeline: PipelineType) -> Counter;

    /// Total number of spans dropped because the consumer queue was full.
    pub fn spans_dropped(pipeline: PipelineType) -> Counter;
}