1#[allow(missing_docs)]
3#[derive(Debug, thiserror::Error)]
4pub enum Error {
5 #[cfg(feature = "log_loki")]
7 #[error("Loki error: {0}")]
8 Loki(#[from] tracing_loki::Error),
9
10 #[cfg(feature = "log_loki")]
12 #[error("Parse error: {0}")]
13 Parse(#[from] url::ParseError),
14
15 #[cfg(feature = "log_esp")]
16 #[error("Log initialization error: {0}")]
17 Log(#[from] esp_idf_svc::sys::EspError),
18
19 #[error("Failed to read RUST_LOG environment variable: {0}")]
20 Env(#[from] std::env::VarError),
21
22 #[error("Failed to parse service name")]
23 ServiceName,
24}