pub struct DefaultSpanBackend;
Expand description
The default ReqwestOtelSpanBackend
for TracingMiddleware
. Note that it doesn’t include
the url.full
field in spans, you can use SpanBackendWithUrl
to add it.
Trait Implementations§
Source§impl ReqwestOtelSpanBackend for DefaultSpanBackend
impl ReqwestOtelSpanBackend for DefaultSpanBackend
Source§fn on_request_start(req: &Request, ext: &mut Extensions) -> Span
fn on_request_start(req: &Request, ext: &mut Extensions) -> Span
Initialized a new span before the request is executed.
Source§fn on_request_end(span: &Span, outcome: &Result<Response>, _: &mut Extensions)
fn on_request_end(span: &Span, outcome: &Result<Response>, _: &mut Extensions)
Runs after the request call has executed.
Auto Trait Implementations§
impl Freeze for DefaultSpanBackend
impl RefUnwindSafe for DefaultSpanBackend
impl Send for DefaultSpanBackend
impl Sync for DefaultSpanBackend
impl Unpin for DefaultSpanBackend
impl UnwindSafe for DefaultSpanBackend
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