This tracing release changes the Drop implementation for InstrumentedFutures so that the attached Span is entered when dropping the Future. This
means that events emitted by the Future's Drop implementation will now be
recorded within its Span. It also adds #[inline] hints to methods called in
the event! macro's expansion, for an improvement in both binary size and
performance.
Additionally, this release updates the tracing-attributes dependency to
v0.1.24, which updates the syn dependency to v2.x.x.
tracing-attributes v0.1.24 also includes improvements to the #[instrument]
macro; see the tracing-attributes 0.1.24 release notes for
details.
Added
Instrumented futures will now enter the attached Span in their Drop
implementation, allowing events emitted when dropping the future to occur
within the span (#2562)
#[inline] attributes for methods called by the event! macros, making
generated code smaller (#2555)
attributes: level argument to #[instrument(err)] and
#[instrument(ret)] to override the level of
the generated return value event (#2335)
attributes: Improved compiler error message when #[instrument] is added to a const fn
(#2418)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps tracing from 0.1.37 to 0.1.38.
Release notes
Sourced from tracing's releases.
Commits
3de7f8c
tracing: prepare to release v0.1.38 (#2575)e35265a
attributes: prepare to release v0.1.24 (#2574)0114ec1
subscriber: prepare to release v0.3.17 (#2571)53989b4
chore: fix rustfmt2235570
subscriber: add "unicode-case" and "unicode-perl" features toregex
depende...b9becf9
attributes: update UI tests with the latest stable version of Rust (#2568)3a65354
tracing, tracing-futures: instrumentFuture
insideDrop
(#2562)29d85b1
mock: move layer mock from tracing-subscriber tests (#2369)049ad73
subscriber: add ability to disable ANSI without crate feature (#2532)a066c36
attributes: update to syn 2.0 (#2516)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)