[−][src]Macro tokio_trace_core::metadata
Statically constructs new span metadata.
This may be used in contexts, such as static initializers, where the
Metadata::new
function is not currently usable.
/// For example:
use tokio_trace_core::{Metadata, Level}; static FOO_CALLSITE: MyCallsite = MyCallsite { // ... }; static FOO_METADATA: Metadata = metadata!{ name: "foo", target: module_path!(), level: Level::DEBUG, fields: &["bar", "baz"], callsite: &FOO_CALLSITE, };