Skip to main content

connection_span

Function connection_span 

Source
pub fn connection_span(transport: &'static str, peer: impl Display) -> Span
Expand description

Span for a new wire/gRPC/HTTP connection. Call at accept time so every log inside that connection’s lifetime carries the remote peer and transport kind.