|
| 1 | +# 0.1.38 (April 25th, 2023) |
| 2 | + |
| 3 | +This `tracing` release changes the `Drop` implementation for `Instrumented` |
| 4 | +`Future`s so that the attached `Span` is entered when dropping the `Future`. This |
| 5 | +means that events emitted by the `Future`'s `Drop` implementation will now be |
| 6 | +recorded within its `Span`. It also adds `#[inline]` hints to methods called in |
| 7 | +the `event!` macro's expansion, for an improvement in both binary size and |
| 8 | +performance. |
| 9 | + |
| 10 | +Additionally, this release updates the `tracing-attributes` dependency to |
| 11 | +[v0.1.24][attrs-0.1.24], which updates the [`syn`] dependency to v2.x.x. |
| 12 | +`tracing-attributes` v0.1.24 also includes improvements to the `#[instrument]` |
| 13 | +macro; see [the `tracing-attributes` 0.1.24 release notes][attrs-0.1.24] for |
| 14 | +details. |
| 15 | + |
| 16 | +### Added |
| 17 | + |
| 18 | +- `Instrumented` futures will now enter the attached `Span` in their `Drop` |
| 19 | + implementation, allowing events emitted when dropping the future to occur |
| 20 | + within the span ([#2562]) |
| 21 | +- `#[inline]` attributes for methods called by the `event!` macros, making |
| 22 | + generated code smaller ([#2555]) |
| 23 | +- **attributes**: `level` argument to `#[instrument(err)]` and |
| 24 | + `#[instrument(ret)]` to override the level of |
| 25 | + the generated return value event ([#2335]) |
| 26 | +- **attributes**: Improved compiler error message when `#[instrument]` is added to a `const fn` |
| 27 | + ([#2418]) |
| 28 | + |
| 29 | +### Changed |
| 30 | + |
| 31 | +- `tracing-attributes`: updated to [0.1.24][attrs-0.1.24] |
| 32 | +- Removed unneeded `cfg-if` dependency ([#2553]) |
| 33 | +- **attributes**: Updated [`syn`] dependency to 2.0 ([#2516]) |
| 34 | + |
| 35 | +### Fixed |
| 36 | + |
| 37 | +- **attributes**: Fix `clippy::unreachable` warnings in `#[instrument]`-generated code ([#2356]) |
| 38 | +- **attributes**: Removed unused "visit" feature flag from `syn` dependency ([#2530]) |
| 39 | + |
| 40 | +### Documented |
| 41 | + |
| 42 | +- **attributes**: Documented default level for `#[instrument(err)]` ([#2433]) |
| 43 | +- **attributes**: Improved documentation for levels in `#[instrument]` ([#2350]) |
| 44 | + |
| 45 | +Thanks to @nitnelave, @jsgf, @Abhicodes-crypto, @LukeMathWalker, @andrewpollack, |
| 46 | +@quad, @klensy, @davidpdrsn, @dbidwell94, @ldm0, @NobodyXu, @ilsv, and @daxpedda |
| 47 | +for contributing to this release! |
| 48 | + |
| 49 | +[`syn`]: https://crates.io/crates/syn |
| 50 | +[attrs-0.1.24]: |
| 51 | + https://github.com/tokio-rs/tracing/releases/tag/tracing-attributes-0.1.24 |
| 52 | +[#2565]: https://github.com/tokio-rs/tracing/pull/2565 |
| 53 | +[#2555]: https://github.com/tokio-rs/tracing/pull/2555 |
| 54 | +[#2553]: https://github.com/tokio-rs/tracing/pull/2553 |
| 55 | +[#2335]: https://github.com/tokio-rs/tracing/pull/2335 |
| 56 | +[#2418]: https://github.com/tokio-rs/tracing/pull/2418 |
| 57 | +[#2516]: https://github.com/tokio-rs/tracing/pull/2516 |
| 58 | +[#2356]: https://github.com/tokio-rs/tracing/pull/2356 |
| 59 | +[#2530]: https://github.com/tokio-rs/tracing/pull/2530 |
| 60 | +[#2433]: https://github.com/tokio-rs/tracing/pull/2433 |
| 61 | +[#2350]: https://github.com/tokio-rs/tracing/pull/2350 |
| 62 | + |
1 | 63 | # 0.1.37 (October 6, 2022)
|
2 | 64 |
|
3 | 65 | This release of `tracing` incorporates changes from `tracing-core`
|
|
0 commit comments