attributes: prepare to release v0.1.24 #2574
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
0.1.24 (April 24th, 2023)
This release of
tracing-attributes
adds support for passing an optionallevel
to theerr
andret
arguments to#[instrument]
, allowing the level of the generated return-value event to be overridden. For example,will emit an
INFO
-level event if the function returns anErr
.In addition, this release updates the
syn
dependency to v2.x.x.Added
level
argument toerr
andret
to override the level of the generated return value event (attributes: add support for custom levels forret
anderr
(#2330) #2335)#[instrument]
is added to aconst fn
(Add compile error on const fn instrumentation #2418)Changed
syn
dependency to 2.0 (attributes: update to syn 2.0 #2516)Fixed
clippy::unreachable
warnings in#[instrument]
-generated code (tracing-attributes: allow warning clippy unreachable #2356)syn
dependency (tracing-attributes: remove unused syn's feature visit #2530)Documented
err
(attributes: document default level forerr
#2433)#[instrument]
(Better documentation & tests for usingLevel
constants for#[instrument(level = X)]
#2350)Thanks to @nitnelave, @jsgf, @Abhicodes-crypto, @LukeMathWalker, @andrewpollack, @quad, @klensy, @davidpdrsn, and @dbidwell94 for contributign to this release!
Motivation
Solution