1 # 0.1.25 (February 23, 2021)
5 - `Span::entered` method for entering a span and moving it into a guard by value
6 rather than borrowing it ([#1252])
8 Thanks to @matklad for contributing to this release!
10 [#1252]: https://github.com/tokio-rs/tracing/pull/1252
12 # 0.1.24 (February 17, 2021)
16 - **attributes**: Compiler error when using `#[instrument(err)]` on functions
17 which return `impl Trait` ([#1236])
18 - Fixed broken match arms in event macros ([#1239])
19 - Documentation improvements ([#1232])
21 Thanks to @bkchr and @lfranke for contributing to this release!
23 [#1236]: https://github.com/tokio-rs/tracing/pull/1236
24 [#1239]: https://github.com/tokio-rs/tracing/pull/1239
25 [#1232]: https://github.com/tokio-rs/tracing/pull/1232
27 # 0.1.23 (February 4, 2021)
31 - **attributes**: Compiler error when using `#[instrument(err)]` on functions
32 with mutable parameters ([#1167])
33 - **attributes**: Missing function visibility modifier when using
34 `#[instrument]` with `async-trait` ([#977])
35 - **attributes** Removed unused `syn` features ([#928])
36 - **log**: Fixed an issue where the `tracing` macros would generate code for
37 events whose levels are disabled statically by the `log` crate's
38 `static_max_level_XXX` features ([#1175])
39 - Fixed deprecations and clippy lints ([#1195])
40 - Several documentation fixes and improvements ([#941], [#965], [#981], [#1146],
45 - **attributes**: `tracing-futures` dependency is no longer required when using
46 `#[instrument]` on async functions ([#808])
47 - **attributes**: Updated `tracing-attributes` minimum dependency to v0.1.12
50 Thanks to @nagisa, @Txuritan, @TaKO8Ki, @okready, and @krojew for contributing
53 [#1167]: https://github.com/tokio-rs/tracing/pull/1167
54 [#977]: https://github.com/tokio-rs/tracing/pull/977
55 [#965]: https://github.com/tokio-rs/tracing/pull/965
56 [#981]: https://github.com/tokio-rs/tracing/pull/981
57 [#1215]: https://github.com/tokio-rs/tracing/pull/1215
58 [#808]: https://github.com/tokio-rs/tracing/pull/808
59 [#941]: https://github.com/tokio-rs/tracing/pull/941
60 [#1146]: https://github.com/tokio-rs/tracing/pull/1146
61 [#1175]: https://github.com/tokio-rs/tracing/pull/1175
62 [#1195]: https://github.com/tokio-rs/tracing/pull/1195
63 [#1222]: https://github.com/tokio-rs/tracing/pull/1222
65 # 0.1.22 (November 23, 2020)
69 - Updated `pin-project-lite` dependency to 0.2 ([#1108])
71 [#1108]: https://github.com/tokio-rs/tracing/pull/1108
73 # 0.1.21 (September 28, 2020)
77 - Incorrect inlining of `Span::new`, `Span::new_root`, and `Span::new_child_of`,
78 which could result in `dispatcher::get_default` being inlined at the callsite
80 - Regression where using a struct field as a span or event field when other
81 fields on that struct are borrowed mutably would fail to compile ([#987])
85 - Updated `tracing-core` to 0.1.17 ([#992])
89 - `Instrument` trait and `Instrumented` type for attaching a `Span` to a
91 - `Copy` implementations for `Level` and `LevelFilter` ([#992])
92 - Multiple documentation fixes and improvements ([#964], [#980], [#981])
94 Thanks to @nagisa, and new contributors @SecurityInsanity, @froydnj, @jyn514 and
95 @TaKO8Ki for contributing to this release!
97 [#994]: https://github.com/tokio-rs/tracing/pull/994
98 [#992]: https://github.com/tokio-rs/tracing/pull/992
99 [#987]: https://github.com/tokio-rs/tracing/pull/987
100 [#980]: https://github.com/tokio-rs/tracing/pull/980
101 [#981]: https://github.com/tokio-rs/tracing/pull/981
102 [#964]: https://github.com/tokio-rs/tracing/pull/964
103 [#808]: https://github.com/tokio-rs/tracing/pull/808
105 # 0.1.20 (August 24, 2020)
109 - Significantly reduced assembly generated by macro invocations (#943)
110 - Updated `tracing-core` to 0.1.15 (#943)
114 - Documented minimum supported Rust version policy (#941)
116 # 0.1.19 (August 10, 2020)
120 - Updated `tracing-core` to fix incorrect calculation of the global max level
125 - **attributes**: Support for using `self` in field expressions when
126 instrumenting `async-trait` functions (#875)
127 - Several documentation improvements (#832, #881, #896, #897, #911, #913)
129 Thanks to @anton-dutov, @nightmared, @mystor, and @toshokan for contributing to
132 # 0.1.18 (July 31, 2020)
136 - Fixed a bug where `LevelFilter::OFF` (and thus also the `static_max_level_off`
137 feature flag) would enable *all* traces, rather than *none* (#853)
138 - **log**: Fixed `tracing` macros and `Span`s not checking `log::max_level`
139 before emitting `log` records (#870)
143 - **macros**: Macros now check the global max level (`LevelFilter::current`)
144 before the per-callsite cache when determining if a span or event is enabled.
145 This significantly improves performance in some use cases (#853)
146 - **macros**: Simplified the code generated by macro expansion significantly,
147 which may improve compile times and/or `rustc` optimizatation of surrounding
149 - **macros**: Macros now check the static max level before checking any runtime
150 filtering, improving performance when a span or event is disabled by a
151 `static_max_level_XXX` feature flag (#868)
152 - `LevelFilter` is now a re-export of the `tracing_core::LevelFilter` type, it
153 can now be used interchangably with the versions in `tracing-core` and
154 `tracing-subscriber` (#853)
155 - Significant performance improvements when comparing `LevelFilter`s and
157 - Updated the minimum `tracing-core` dependency to 0.1.12 (#853)
161 - **macros**: Quoted string literals may now be used as field names, to allow
162 fields whose names are not valid Rust identifiers (#790)
163 - **docs**: Several documentation improvements (#850, #857, #841)
164 - `LevelFilter::current()` function, which returns the highest level that any
165 subscriber will enable (#853)
166 - `Subscriber::max_level_hint` optional trait method, for setting the value
167 returned by `LevelFilter::current()` (#853)
169 Thanks to new contributors @cuviper, @ethanboxx, @ben0x539, @dignati,
170 @colelawrence, and @rbtcollins for helping out with this release!
172 # 0.1.17 (July 22, 2020)
176 - **log**: Moved verbose span enter/exit log records to "tracing::span::active"
177 target, allowing them to be filtered separately (#833)
178 - **log**: All span lifecycle log records without fields now have the `Trace`
179 log filter, to guard against `log` users enabling them by default with blanket
180 level filtering (#833)
184 - **log**/**macros**: Fixed missing implicit imports of the
185 `tracing::field::debug` and `tracing::field::display` functions inside the
186 macros when the "log" feature is enabled (#835)
188 # 0.1.16 (July 8, 2020)
192 - **attributes**: Support for arbitrary expressions as fields in `#[instrument]` (#672)
193 - **attributes**: `#[instrument]` now emits a compiler warning when ignoring unrecognized
195 - Improved documentation on using `tracing` in async code (#769)
199 - Updated `tracing-core` dependency to 0.1.11
203 - **macros**: Excessive monomorphization in macros, which could lead to
204 longer compilation times (#787)
205 - **log**: Compiler warnings in macros when `log` or `log-always` features
207 - Compiler error when `tracing-core/std` feature is enabled but `tracing/std` is
210 Thanks to @nagisa for contributing to this release!
212 # 0.1.15 (June 2, 2020)
216 - **macros**: Replaced use of legacy `local_inner_macros` with `$crate::` (#740)
220 - Docs fixes and improvements (#742, #731, #730)
222 Thanks to @bnjjj, @blaenk, and @LukeMathWalker for contributing to this release!
224 # 0.1.14 (May 14, 2020)
228 - **log**: When using the [`log`] compatibility feature alongside a `tracing`
229 `Subscriber`, log records for spans now include span IDs (#613)
230 - **attributes**: Support for using `#[instrument]` on methods that are part of
231 [`async-trait`] trait implementations (#711)
232 - **attributes**: Optional `#[instrument(err)]` argument to automatically emit
233 an event if an instrumented function returns `Err` (#637)
234 - Added `#[must_use]` attribute to the guard returned by
235 `subscriber::set_default` (#685)
239 - **log**: Made [`log`] records emitted by spans much less noisy when span IDs are
244 - Several typos in the documentation (#656, #710, #715)
246 Thanks to @FintanH, @shepmaster, @inanna-malick, @zekisharif, @bkchr, @majecty,
247 @ilana and @nightmared for contributing to this release!
249 [`async-trait`]: https://crates.io/crates/async-trait
250 [`log`]: https://crates.io/crates/log
252 # 0.1.13 (February 26, 2019)
256 - **field**: `field::Empty` type for declaring empty fields whose values will be
257 recorded later (#548)
258 - **field**: `field::Value` implementations for `Wrapping` and `NonZero*`
260 - **attributes**: Support for adding arbitrary literal fields to spans generated
261 by `#[instrument]` (#569)
262 - **attributes**: `#[instrument]` now emits a helpful compiler error when
263 attempting to skip a function parameter (#600)
267 - **attributes**: The `#[instrument]` attribute was placed under an on-by-default
268 feature flag "attributes" (#603)
272 - Broken and unresolvable links in RustDoc (#595)
274 Thanks to @oli-cosmian and @Kobzol for contributing to this release!
276 # 0.1.12 (January 11, 2019)
280 - `Span::with_subscriber` method to access the subscriber that tracks a `Span`
282 - API documentation now shows which features are required by feature-flagged
284 - Improved README examples (#496)
285 - Documentation links to related crates (#507)
287 # 0.1.11 (December 20, 2019)
291 - `Span::is_none` method (#475)
292 - `LevelFilter::into_level` method (#470)
293 - `LevelFilter::from_level` function and `From<Level>` impl (#471)
294 - Documented minimum supported Rust version (#482)
298 - Incorrect parameter type to `Span::follows_from` that made it impossible to
300 - Missing whitespace in `log` records generated when enabling the `log` feature
302 - Typos and missing links in documentation (#405, #423, #439)
304 # 0.1.10 (October 23, 2019)
308 - Support for destructuring in arguments to `#[instrument]`ed functions (#397)
309 - Generated field for `self` parameters when `#[instrument]`ing methods (#397)
310 - Optional `skip` argument to `#[instrument]` for excluding function parameters
311 from generated spans (#359)
312 - Added `dispatcher::set_default` and `subscriber::set_default` APIs, which
313 return a drop guard (#388)
317 - Some minor documentation errors (#356, #370)
319 # 0.1.9 (September 13, 2019)
323 - Fixed `#[instrument]`ed async functions not compiling on `nightly-2019-09-11`
328 - Significantly reduced performance impact of skipped spans and events when a
329 `Subscriber` is not in use (#326)
330 - The `log` feature will now only cause `tracing` spans and events to emit log
331 records when a `Subscriber` is not in use (#346)
335 - Added support for overriding the name of the span generated by `#[instrument]`
337 - `log-always` feature flag to emit log records even when a `Subscriber` is set
340 # 0.1.8 (September 3, 2019)
344 - Reorganized and improved API documentation (#317)
348 - Dev-dependencies on `ansi_term` and `humantime` crates, which were used only
351 # 0.1.7 (August 30, 2019)
355 - New (curly-brace free) event message syntax to place the message in the first
356 field rather than the last (#309)
360 - Fixed a regression causing macro stack exhaustion when the `log` feature flag
363 # 0.1.6 (August 20, 2019)
367 - `std::error::Error` as a new primitive type (#277)
368 - Support for mixing key-value fields and `format_args` messages without curly
369 braces as delimiters (#288)
373 - `tracing-core` dependency to 0.1.5 (#294)
374 - `tracing-attributes` dependency to 0.1.2 (#297)
376 # 0.1.5 (August 9, 2019)
380 - Support for `no-std` + `liballoc` (#263)
384 - Using the `#[instrument]` attribute on `async fn`s no longer requires a
389 - The `#[instrument]` macro now works on generic functions (#262)
391 # 0.1.4 (August 8, 2019)
395 - `#[instrument]` attribute for automatically adding spans to functions (#253)
397 # 0.1.3 (July 11, 2019)
401 - Log messages when a subscriber indicates that a span has closed, when the
402 `log` feature flag is enabled (#180).
406 - `tracing-core` minimum dependency version to 0.1.2 (#174).
410 - Fixed an issue where event macro invocations with a single field, using local
411 variable shorthand, would recur infinitely (#166).
412 - Fixed uses of deprecated `tracing-core` APIs (#174).
414 # 0.1.2 (July 6, 2019)
418 - `Span::none()` constructor, which does not require metadata and
419 returns a completely empty span (#147).
420 - `Span::current()` function, returning the current span if it is
421 known to the subscriber (#148).
425 - Broken macro imports when used prefixed with `tracing::` (#152).
427 # 0.1.1 (July 3, 2019)
431 - `cfg_if` dependency to 0.1.9.
435 - Compilation errors when the `log` feature is enabled (#131).
436 - Unclear wording and typos in documentation (#124, #128, #142).
438 # 0.1.0 (June 27, 2019)