Skip to content

Commit 76d60d8

Browse files
authored
docs: document the default span level in #[instrument] (#965)
1 parent 3bda893 commit 76d60d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tracing-attributes/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ use syn::{
9999
/// Instruments a function to create and enter a `tracing` [span] every time
100100
/// the function is called.
101101
///
102+
/// Unless overriden, a span with `info` level will be generated.
102103
/// The generated span's name will be the name of the function. Any arguments
103104
/// to that function will be recorded as fields using [`fmt::Debug`]. To skip
104105
/// recording a function's or method's argument, pass the argument's name
@@ -248,7 +249,6 @@ use syn::{
248249
/// ```
249250
/// Instead, you should manually rewrite any `Self` types as the type for
250251
/// which you implement the trait: `#[instrument(fields(tmp = std::any::type_name::<Bar>()))]`.
251-
252252
///
253253
/// [span]: https://docs.rs/tracing/latest/tracing/span/index.html
254254
/// [`tracing`]: https://github.com/tokio-rs/tracing

0 commit comments

Comments
 (0)