use thiserror::Error;
#[non_exhaustive]
#[derive(Debug, Error)]
pub enum OtelError {
#[error("failed to build OTLP exporter: {0}")]
Build(String),
#[error("a global tracing subscriber is already installed: {0}")]
AlreadyInitialized(String),
#[error(
"OTLP endpoint `{0}` is plaintext http:// to a non-loopback host; \
use https:// or a loopback collector"
)]
PlaintextRemote(String),
}