santh-tracing 0.2.0

Consistent tracing setup for CLI tools - stderr/JSON/file sinks, a secret-redacting writer, and operation spans
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! No-op metrics implementation used when the `prometheus` feature is
//! disabled.

/// Increment a counter metric.
///
/// Metrics are namespaced under `santh_<tool_name>_<name>`.
pub fn counter(_name: &str, _labels: &[(&str, &str)]) {}

/// Record a histogram observation.
pub fn histogram(_name: &str, _value: f64, _labels: &[(&str, &str)]) {}

/// Set a gauge value.
pub fn gauge(_name: &str, _value: f64, _labels: &[(&str, &str)]) {}