shotover/
connection_span.rs

1//! This module purposefully only contains this one function to create a span.
2//! This allows us to enable/disable just this one span via the tracing filter: `shotover::connection_span=debug`
3//!
4//! Do not add more code here!
5
6use tracing::Span;
7
8pub fn span(connection_count: u64, source: &str) -> Span {
9    tracing::debug_span!("connection", id = connection_count, source = source)
10}