pub struct TracingInterceptor;Expand description
Built-in interceptor that adds a structured tracing span around every request.
Trait Implementations§
Source§impl Clone for TracingInterceptor
impl Clone for TracingInterceptor
Source§fn clone(&self) -> TracingInterceptor
fn clone(&self) -> TracingInterceptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TracingInterceptor
impl Debug for TracingInterceptor
Source§impl Default for TracingInterceptor
impl Default for TracingInterceptor
Source§fn default() -> TracingInterceptor
fn default() -> TracingInterceptor
Returns the “default value” for a type. Read more
Source§impl Interceptor for TracingInterceptor
impl Interceptor for TracingInterceptor
Source§fn on_request<'life0, 'async_trait>(
&'life0 self,
request: Request,
) -> Pin<Box<dyn Future<Output = Result<Request, SdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
TracingInterceptor: 'async_trait,
fn on_request<'life0, 'async_trait>(
&'life0 self,
request: Request,
) -> Pin<Box<dyn Future<Output = Result<Request, SdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
TracingInterceptor: 'async_trait,
Called just before the request is dispatched. Implementations may mutate the
request (add headers, extend the URL) by returning a modified
Request.Source§fn on_response<'life0, 'life1, 'async_trait>(
&'life0 self,
response: &'life1 Response,
) -> Pin<Box<dyn Future<Output = Result<(), SdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
TracingInterceptor: 'async_trait,
fn on_response<'life0, 'life1, 'async_trait>(
&'life0 self,
response: &'life1 Response,
) -> Pin<Box<dyn Future<Output = Result<(), SdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
TracingInterceptor: 'async_trait,
Called after the transport layer produced a response. Implementations are free
to observe the response; transforming it is not supported here on purpose —
retry/decode semantics belong to the core, not to arbitrary interceptors.
impl Copy for TracingInterceptor
Auto Trait Implementations§
impl Freeze for TracingInterceptor
impl RefUnwindSafe for TracingInterceptor
impl Send for TracingInterceptor
impl Sync for TracingInterceptor
impl Unpin for TracingInterceptor
impl UnsafeUnpin for TracingInterceptor
impl UnwindSafe for TracingInterceptor
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