Skip to main content

HyperLegacyClientInstrument

Trait HyperLegacyClientInstrument 

Source
pub trait HyperLegacyClientInstrument
where Self: Sized,
{ type Connector; type Body; // Required method fn instrument(self) -> InstrumentedLegacyClient<Self::Connector, Self::Body>; }
Expand description

A trait for creating instrumented hyper-util legacy clients with OpenTelemetry tracing.

Required Associated Types§

Source

type Connector

The legacy client’s connector type.

Source

type Body

The legacy client’s request body type.

Required Methods§

Source

fn instrument(self) -> InstrumentedLegacyClient<Self::Connector, Self::Body>

Wraps this client in an InstrumentedLegacyClient that can be reused to send traced requests.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<C, B> HyperLegacyClientInstrument for Client<C, B>

Implementors§