pub struct OtelAxumLayer { /* private fields */ }Expand description
layer/middleware for axum:
- propagate
OpenTelemetrycontext (trace_id,…) to server - create a Span for
OpenTelemetry(and tracing) on call
OpenTelemetry context are extracted from tracing’s span.
Implementations§
Trait Implementations§
source§impl Clone for OtelAxumLayer
impl Clone for OtelAxumLayer
source§fn clone(&self) -> OtelAxumLayer
fn clone(&self) -> OtelAxumLayer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for OtelAxumLayer
impl Debug for OtelAxumLayer
source§impl Default for OtelAxumLayer
impl Default for OtelAxumLayer
source§fn default() -> OtelAxumLayer
fn default() -> OtelAxumLayer
Returns the “default value” for a type. Read more
source§impl<S> Layer<S> for OtelAxumLayer
impl<S> Layer<S> for OtelAxumLayer
Auto Trait Implementations§
impl RefUnwindSafe for OtelAxumLayer
impl Send for OtelAxumLayer
impl Sync for OtelAxumLayer
impl Unpin for OtelAxumLayer
impl UnwindSafe for OtelAxumLayer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more