risingwave_rpc_client::tracing

Trait TracingInjectedChannelExt

source
pub trait TracingInjectedChannelExt {
    // Required method
    fn tracing_injected(self) -> TracingInjectChannel;
}
Expand description

An extension trait for tonic’s Channel that wraps it into a TracingInjectChannel.

Required Methods§

source

fn tracing_injected(self) -> TracingInjectChannel

Wraps the channel into a TracingInjectChannel, so that the TracingContext obtained from the current tracing span is injected into the HTTP headers of the request.

The server can then extract the TracingContext from the HTTP headers with the TracingExtract middleware.

Implementations on Foreign Types§

source§

impl TracingInjectedChannelExt for Channel

Implementors§