Macro tracing_core::metadata [−][src]
Statically constructs new span metadata.
/// For example:
use tracing_core::metadata::{Kind, Level, Metadata}; static FOO_CALLSITE: MyCallsite = MyCallsite { // ... }; static FOO_METADATA: Metadata = metadata!{ name: "foo", target: module_path!(), level: Level::DEBUG, fields: &["bar", "baz"], callsite: &FOO_CALLSITE, kind: Kind::SPAN, };