pub struct OpenTelemetryFmtLayerBuilder<S, T1, N2, E2, W2> { /* private fields */ }
Implementations
sourceimpl<S, T1, N2, E2, W2> OpenTelemetryFmtLayerBuilder<S, T1, N2, E2, W2>
impl<S, T1, N2, E2, W2> OpenTelemetryFmtLayerBuilder<S, T1, N2, E2, W2>
pub fn new(
opentelemetry_layer: OpenTelemetryLayer<S, T1>,
fmt_layer: FmtLayer<S, N2, E2, W2>
) -> Self
sourceimpl<S, T1, N2, E2, W2> OpenTelemetryFmtLayerBuilder<S, T1, N2, E2, W2> where
S: Subscriber + for<'a> LookupSpan<'a>,
T1: Tracer + PreSampledTracer + 'static,
N2: for<'writer> FormatFields<'writer> + 'static,
E2: FormatEvent<S, N2> + 'static,
W2: for<'writer> MakeWriter<'writer> + 'static,
impl<S, T1, N2, E2, W2> OpenTelemetryFmtLayerBuilder<S, T1, N2, E2, W2> where
S: Subscriber + for<'a> LookupSpan<'a>,
T1: Tracer + PreSampledTracer + 'static,
N2: for<'writer> FormatFields<'writer> + 'static,
E2: FormatEvent<S, N2> + 'static,
W2: for<'writer> MakeWriter<'writer> + 'static,
pub fn build(
self
) -> Layered<OpenTelemetryFmtLayer<S, N2, E2, W2>, OpenTelemetryLayer<S, T1>, S>
Auto Trait Implementations
impl<S, T1, N2, E2, W2> RefUnwindSafe for OpenTelemetryFmtLayerBuilder<S, T1, N2, E2, W2> where
E2: RefUnwindSafe,
N2: RefUnwindSafe,
S: RefUnwindSafe,
T1: RefUnwindSafe,
W2: RefUnwindSafe,
impl<S, T1, N2, E2, W2> Send for OpenTelemetryFmtLayerBuilder<S, T1, N2, E2, W2> where
E2: Send,
N2: Send,
S: Send,
T1: Send,
W2: Send,
impl<S, T1, N2, E2, W2> Sync for OpenTelemetryFmtLayerBuilder<S, T1, N2, E2, W2> where
E2: Sync,
N2: Sync,
S: Sync,
T1: Sync,
W2: Sync,
impl<S, T1, N2, E2, W2> Unpin for OpenTelemetryFmtLayerBuilder<S, T1, N2, E2, W2> where
E2: Unpin,
N2: Unpin,
S: Unpin,
T1: Unpin,
W2: Unpin,
impl<S, T1, N2, E2, W2> UnwindSafe for OpenTelemetryFmtLayerBuilder<S, T1, N2, E2, W2> where
E2: UnwindSafe,
N2: UnwindSafe,
S: UnwindSafe,
T1: UnwindSafe,
W2: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> FutureExt for T
impl<T> FutureExt for T
sourcefn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
sourcefn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more