Document name macro

This commit is contained in:
Tony Garnock-Jones 2021-08-11 18:03:50 -04:00
parent b14ebe6de5
commit 6d563bfd91
1 changed files with 6 additions and 0 deletions

View File

@ -916,6 +916,12 @@ where
}
}
/// A convenient Syndicate-enhanced variation on
/// [`tracing::info_span`].
///
/// Includes fields `actor_id`, `task_id` and `oid`, so that they show
/// up in those circumstances where they happen to be defined as part
/// of the operation of the [`crate::actor`] module.
#[macro_export]
macro_rules! name {
() => {tracing::info_span!(actor_id = tracing::field::Empty,