1
2
3
4
5
6
7
8
9
/// Creates an entered span for `tracing` on debug builds.
/// On release builds, this is a no-op.
#[macro_export]
macro_rules! dev_span {
    ($($tt:tt)*) => {{
        #[cfg(debug_assertions)]
        tracing::error_span!($($tt)*).entered()
    }};
}