From b600330112481e1a0f1fbaced821df6483d350be Mon Sep 17 00:00:00 2001 From: Simonas Kazlauskas Date: Fri, 4 Sep 2020 18:28:41 +0300 Subject: [PATCH] Document the default span level --- tracing-attributes/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracing-attributes/src/lib.rs b/tracing-attributes/src/lib.rs index 5d33f15872..4f09b9ff3b 100644 --- a/tracing-attributes/src/lib.rs +++ b/tracing-attributes/src/lib.rs @@ -99,6 +99,7 @@ use syn::{ /// Instruments a function to create and enter a `tracing` [span] every time /// the function is called. /// +/// Unless overriden, a span with `info` level will be generated. /// The generated span's name will be the name of the function. Any arguments /// to that function will be recorded as fields using [`fmt::Debug`]. To skip /// recording a function's or method's argument, pass the argument's name @@ -248,7 +249,6 @@ use syn::{ /// ``` /// Instead, you should manually rewrite any `Self` types as the type for /// which you implement the trait: `#[instrument(fields(tmp = std::any::type_name::()))]`. - /// /// [span]: https://docs.rs/tracing/latest/tracing/span/index.html /// [`tracing`]: https://github.com/tokio-rs/tracing