use std::future::Future;
use tracing_core::Subscriber;
use tracing_subscriber::{registry::LookupSpan, Layer};
pub trait TelemetryLayerBuilder {
fn layer<S>(
self,
) -> impl Future<Output = Result<Box<dyn Layer<S> + Send + Sync + 'static>, String>> + Send
where
S: Subscriber + Send + Sync,
for<'a> S: LookupSpan<'a>;
}