- Compilation failure with
--minimal-versions
due to a too-permissivesyn
dependency (#1960)
- Bumped minimum supported Rust version (MSRV) to 1.49.0 (#1913)
Thanks to new contributor @udoprog for contributing to this release!
This release introduces a new #[instrument(ret)]
argument to emit an event
with the return value of an instrumented function.
#[instrument(ret)]
to record the return value of a function (#1716)- added
err(Debug)
argument to cause#[instrument(err)]
to record errors withDebug
rather than `Display (#1631)
- incorrect code generation for functions returning async blocks (#1866)
- incorrect diagnostics when using
rust-analyzer
(#1634)
Thanks to @Swatinem, @hkmatsumoto, @cynecx, and @ciuncan for contributing to this release!
This release fixes issues introduced in v0.1.17.
- fixed mismatched types compiler error that may occur when using
#[instrument]
on anasync fn
that returns animpl Trait
value that includes a closure (#1616) - fixed false positives for
clippy::suspicious_else_formatting
warnings due to rust-lang/rust-clippy#7760 and rust-lang/rust-clippy#6249 (#1617) - fixed
clippy::let_unit_value
lints when using#[instrument]
(#1614)
This release significantly improves performance when #[instrument]
-generated
spans are below the maximum enabled level.
Thanks to @oli-obk for contributing to this release!
This release adds a new #[instrument(skip_all)]
option to skip recording all
arguments to an instrumented function as fields. Additionally, it adds support
for recording arguments that are tracing
primitive types as typed values,
rather than as fmt::Debug
.
- add
skip_all
option to#[instrument]
(#1548) - record primitive types as primitive values rather than as
fmt::Debug
(#1378) - added support for
f64
s as typed values (#1522)
Thanks to @Folyd and @jsgf for contributing to this release!
#[instrument]
on functions returningBox::pin
ned futures incorrectly skipping function bodies prior to returning a future (#1297)
Thanks to @nightmared for contributing to this release!
- Compatibility between
#[instrument]
andasync-trait
v0.1.43 and newer (#1228)
Thanks to @nightmared for lots of hard work on this fix!
- Compiler error when using
#[instrument(err)]
on functions which returnimpl Trait
(#1236)
- Compiler error when using
#[instrument(err)]
on functions with mutable parameters (#1167) - Missing function visibility modifier when using
#[instrument]
withasync-trait
(#977) - Multiple documentation fixes and improvements (#965, #981, #1215)
tracing-futures
dependency is no longer required when using#[instrument]
on async functions (#808)
Thanks to @nagisa, @Txuritan, @TaKO8Ki, and @okready for contributing to this release!
- Corrected wrong minimum supported Rust version note in docs (#941)
- Removed unused
syn
features (#928)
Thanks to new contributor @jhpratt for contributing to this release!
- Support for using
self
in field expressions when instrumentingasync-trait
functions (#875) - Several documentation improvements (#832, #897, #911, #913)
Thanks to @anton-dutov and @nightmared for contributing to this release!
- Support for arbitrary expressions as fields in
#[instrument]
(#672)
#[instrument]
now emits a compiler warning when ignoring unrecognized input (#672, #786)
- Support for using
#[instrument]
on methods that are part ofasync-trait
trait implementations (#711) - Optional
#[instrument(err)]
argument to automatically emit an event if an instrumented function returnsErr
(#637)
Thanks to @ilana and @nightmared for contributing to this release!
- Support for adding arbitrary literal fields to spans generated by
#[instrument]
(#569) #[instrument]
now emits a helpful compiler error when attempting to skip a function parameter (#600)
Thanks to @Kobzol for contributing to this release!
- Updated documentation (#468)
- Support for destructuring in arguments to
#[instrument]
ed functions (#397) - Generated field for
self
parameters when#[instrument]
ing methods (#397)
- Optional
skip
argument to#[instrument]
for excluding function parameters from generated spans (#359)
- Fixed
#[instrument]
ed async functions not compiling onnightly-2019-09-11
or newer (#342)
- Updated
syn
andquote
dependencies to 1.0 (#292) - Removed direct dependency on
proc-macro2
to avoid potential version conflicts (#296)
- Outdated idioms in examples (#271, #273)
- Using the
#[instrument]
attribute onasync fn
s no longer requires a feature flag (#258)
- The
#[instrument]
macro now works on generic functions (#262)
- Initial release