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§
sourcefn tracing_injected(self) -> TracingInjectChannel
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.