init-tracing-opentelemetry 0.27.1

A set of helpers to initialize (and more) tracing + opentelemetry (compose your own or use opinionated preset)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error(transparent)]
    IoError(#[from] std::io::Error),

    #[error(transparent)]
    SetGlobalDefaultError(#[from] tracing::subscriber::SetGlobalDefaultError),

    #[error(transparent)]
    TraceError(#[from] opentelemetry::trace::TraceError),

    #[cfg(feature = "tracing_subscriber_ext")]
    #[error(transparent)]
    FilterParseError(#[from] tracing_subscriber::filter::ParseError),
}