tracing-attributes 0.1.24
·
211 commits
to main
since this release
This release of tracing-attributes adds support for passing an optional
level to the err and ret arguments to #[instrument], allowing the level
of the generated return-value event to be overridden. For example,
#[instrument(err(level = "info"))]
fn my_great_function() -> Result<(), &'static str> {
// ...
}will emit an INFO-level event if the function returns an Err.
In addition, this release updates the syn dependency to v2.x.x.
Added
levelargument toerrandretto override the level of the generated
return value event (#2335)- Improved compiler error message when
#[instrument]is added to aconst fn
(#2418)
Changed
- Updated
syndependency to 2.0 (#2516)
Fixed
- Fix
clippy::unreachablewarnings in#[instrument]-generated code (#2356) - Removed unused "visit" feature flag from
syndependency (#2530)
Documented
Thanks to @nitnelave, @jsgf, @Abhicodes-crypto, @LukeMathWalker, @andrewpollack,
@quad, @klensy, @davidpdrsn, and @dbidwell94 for contributign to this release!