opentelemetry_spanprocessor_any/sdk/export/mod.rs
1//! Metrics Export
2#[cfg(feature = "metrics")]
3#[cfg_attr(docsrs, doc(cfg(feature = "metrics")))]
4pub mod metrics;
5#[cfg(feature = "trace")]
6#[cfg_attr(docsrs, doc(cfg(feature = "trace")))]
7pub mod trace;
8
9/// Marker trait for errors returned by exporters
10pub trait ExportError: std::error::Error + Send + Sync + 'static {
11 /// The name of exporter that returned this error
12 fn exporter_name(&self) -> &'static str;
13}