pub struct SpanBackendWithUrl;
Expand description
Similar to DefaultSpanBackend
but also adds the url.full
attribute to request spans.
Trait Implementations§
Source§impl ReqwestOtelSpanBackend for SpanBackendWithUrl
impl ReqwestOtelSpanBackend for SpanBackendWithUrl
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 SpanBackendWithUrl
impl RefUnwindSafe for SpanBackendWithUrl
impl Send for SpanBackendWithUrl
impl Sync for SpanBackendWithUrl
impl Unpin for SpanBackendWithUrl
impl UnwindSafe for SpanBackendWithUrl
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