santh-tracing 0.2.0

Consistent tracing setup for CLI tools - stderr/JSON/file sinks, a secret-redacting writer, and operation spans
Documentation
use std::fmt;

/// Errors that can occur in `santh-tracing`.
#[derive(Debug)]
#[non_exhaustive]
pub enum Error {
    /// The global tracing subscriber is already installed.
    SubscriberAlreadySet,
}

impl fmt::Display for Error {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        match self {
            Error::SubscriberAlreadySet => write!(
                f,
                "Fix: ensure `santh_tracing::init` is called exactly once per process"
            ),
        }
    }
}

impl std::error::Error for Error {}