Skip to main content

Module interceptor

Module interceptor 

Source
Expand description

Request / response interceptors.

A light wrapper that lets callers observe or mutate outgoing requests (logging, tracing span injection, custom headers, tenant pinning) without re-implementing the transport.

The default client installs only the built-in telemetry interceptor. Additional interceptors are appended via crate::ClientBuilder::interceptor and run in the order they were added.

Structs§

TracingInterceptor
Built-in interceptor that adds a structured tracing span around every request.

Traits§

Interceptor
Hook invoked around every outgoing HTTP request.

Type Aliases§

SharedInterceptor
Shared-ownership handle used throughout the SDK.