pub fn leg_str(leg: LegType) -> &'static strAvailable on crate feature
std only.Expand description
Stable string label for a LegType, used as an OTel attribute value.
These strings are part of the metric cardinality contract and must stay
stable across releases. "kcp" and "faketls" are retained label values
for legs that no longer exist as transports (the KCP leg and the FakeTLS
leg were removed in the PhantomUDP rewrite); they appear in the contract
only so the instrument set is wire-format-stable. The live production
transport reports as "udp" (PhantomUDP); "tcp" covers
TcpSessionTransport.