telemetry-rust 6.10.0

Open Telemetry fox Axum and Tracing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[inline]
pub(crate) fn env_var(key: &str) -> Option<String> {
    match std::env::var(key) {
        Ok(value) => {
            if value.trim().is_empty() {
                None
            } else {
                Some(value)
            }
        }
        Err(_) => None,
    }
}