We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 704ecf7 commit 1b0d66eCopy full SHA for 1b0d66e
tracing/src/macros.rs
@@ -829,7 +829,7 @@ macro_rules! event {
829
#[macro_export]
830
macro_rules! event_enabled {
831
($($rest:tt)*)=> (
832
- $crate::enabled!(kind: $crate::metadata::Kind::EVENT.hint(), $($rest)*)
+ $crate::enabled!(kind: $crate::metadata::Kind::EVENT, $($rest)*)
833
)
834
}
835
@@ -861,7 +861,7 @@ macro_rules! event_enabled {
861
862
macro_rules! span_enabled {
863
864
- $crate::enabled!(kind: $crate::metadata::Kind::SPAN.hint(), $($rest)*)
+ $crate::enabled!(kind: $crate::metadata::Kind::SPAN, $($rest)*)
865
866
867
@@ -966,7 +966,7 @@ macro_rules! enabled {
966
":",
967
line!()
968
),
969
- kind: $kind,
+ kind: $kind.hint(),
970
target: $target,
971
level: $lvl,
972
fields: $($fields)*
0 commit comments