Function instrument

Source
pub fn instrument(
    stream: Stream,
    own_peer_id: &PeerId,
    peer_id: &PeerId,
    role: &str,
    metrics: &Metrics,
    connections_map: &ConnectionsMap,
) -> InstrumentedStream