Debian Codegraph @

third_party/rust/tracing/CHANGELOG.md

raw
1 # 0.1.37 (October 6, 2022)
2
3 This release of `tracing` incorporates changes from `tracing-core`
4 [v0.1.30][core-0.1.30] and `tracing-attributes` [v0.1.23][attrs-0.1.23],
5 including the new `Subscriber::on_register_dispatch` method for performing late
6 initialization after a `Subscriber` is registered as a `Dispatch`, and bugfixes
7 for the `#[instrument]` attribute. Additionally, it fixes instances of the
8 `bare_trait_objects` lint, which is now a warning on `tracing`'s MSRV and will
9 become an error in the next edition.
10
11 ### Fixed
12
13 - **attributes**: Incorrect handling of inner attributes in `#[instrument]`ed
14 functions ([#2307])
15 - **attributes**: Incorrect location of compiler diagnostic spans generated for
16 type errors in `#[instrument]`ed `async fn`s ([#2270])
17 - **attributes**: Updated `syn` dependency to fix compilation with `-Z
18 minimal-versions` ([#2246])
19 - `bare_trait_objects` warning in `valueset!` macro expansion ([#2308])
20
21 ### Added
22
23 - **core**: `Subscriber::on_register_dispatch` method ([#2269])
24 - **core**: `WeakDispatch` type and `Dispatch::downgrade()` function ([#2293])
25
26 ### Changed
27
28 - `tracing-core`: updated to [0.1.30][core-0.1.30]
29 - `tracing-attributes`: updated to [0.1.23][attrs-0.1.23]
30
31 ### Documented
32
33 - Added [`tracing-web`] and [`reqwest-tracing`] to related crates ([#2283],
34 [#2331])
35
36 Thanks to new contributors @compiler-errors, @e-nomem, @WorldSEnder, @Xiami2012,
37 and @tl-rodrigo-gryzinski, as well as @jswrenn and @CAD97, for contributing to
38 this release!
39
40 [core-0.1.30]: https://github.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.30
41 [attrs-0.1.23]: https://github.com/tokio-rs/tracing/releases/tag/tracing-attributes-0.1.23
42 [`tracing-web`]: https://crates.io/crates/tracing-web/
43 [`reqwest-tracing`]: https://crates.io/crates/reqwest-tracing/
44 [#2246]: https://github.com/tokio-rs/tracing/pull/2246
45 [#2269]: https://github.com/tokio-rs/tracing/pull/2269
46 [#2283]: https://github.com/tokio-rs/tracing/pull/2283
47 [#2270]: https://github.com/tokio-rs/tracing/pull/2270
48 [#2293]: https://github.com/tokio-rs/tracing/pull/2293
49 [#2307]: https://github.com/tokio-rs/tracing/pull/2307
50 [#2308]: https://github.com/tokio-rs/tracing/pull/2308
51 [#2331]: https://github.com/tokio-rs/tracing/pull/2331
52
53 # 0.1.36 (July 29, 2022)
54
55 This release adds support for owned values and fat pointers as arguments to the
56 `Span::record` method, as well as updating the minimum `tracing-core` version
57 and several documentation improvements.
58
59 ### Fixed
60
61 - Incorrect docs in `dispatcher::set_default` ([#2220])
62 - Compilation with `-Z minimal-versions` ([#2246])
63
64 ### Added
65
66 - Support for owned values and fat pointers in `Span::record` ([#2212])
67 - Documentation improvements ([#2208], [#2163])
68
69 ### Changed
70
71 - `tracing-core`: updated to [0.1.29][core-0.1.29]
72
73 Thanks to @fredr, @cgbur, @jyn514, @matklad, and @CAD97 for contributing to this
74 release!
75
76 [core-0.1.29]: https://github.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.29
77 [#2220]: https://github.com/tokio-rs/tracing/pull/2220
78 [#2246]: https://github.com/tokio-rs/tracing/pull/2246
79 [#2212]: https://github.com/tokio-rs/tracing/pull/2212
80 [#2208]: https://github.com/tokio-rs/tracing/pull/2208
81 [#2163]: https://github.com/tokio-rs/tracing/pull/2163
82
83 # 0.1.35 (June 8, 2022)
84
85 This release reduces the overhead of callsite registration by using new
86 `tracing-core` APIs.
87
88 ### Added
89
90 - Use `DefaultCallsite` to reduce callsite registration overhead ([#2083])
91
92 ### Changed
93
94 - `tracing-core`: updated to [0.1.27][core-0.1.27]
95
96 [core-0.1.27]: https://github.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.27
97 [#2088]: https://github.com/tokio-rs/tracing/pull/2083
98
99 # 0.1.34 (April 14, 2022)
100
101 This release includes bug fixes for the "log" support feature and for the use of
102 both scoped and global default dispatchers in the same program.
103
104 ### Fixed
105
106 - Failure to use the global default dispatcher when a thread sets a local
107 default dispatcher before the global default is set ([#2065])
108 - **log**: Compilation errors due to `async` block/fn futures becoming `!Send`
109 when the "log" feature flag is enabled ([#2073])
110 - Broken links in documentation ([#2068])
111
112 Thanks to @ben0x539 for contributing to this release!
113
114 [#2065]: https://github.com/tokio-rs/tracing/pull/2065
115 [#2073]: https://github.com/tokio-rs/tracing/pull/2073
116 [#2068]: https://github.com/tokio-rs/tracing/pull/2068
117
118 # 0.1.33 (April 9, 2022)
119
120 This release adds new `span_enabled!` and `event_enabled!` variants of the
121 `enabled!` macro, for testing whether a subscriber would specifically enable a
122 span or an event.
123
124 ### Added
125
126 - `span_enabled!` and `event_enabled!` macros ([#1900])
127 - Several documentation improvements ([#2010], [#2012])
128
129 ### Fixed
130
131 - Compilation warning when compiling for <=32-bit targets (including `wasm32`)
132 ([#2060])
133
134 Thanks to @guswynn, @arifd, @hrxi, @CAD97, and @name1e5s for contributing to
135 this release!
136
137 [#1900]: https://github.com/tokio-rs/tracing/pull/1900
138 [#2010]: https://github.com/tokio-rs/tracing/pull/2010
139 [#2012]: https://github.com/tokio-rs/tracing/pull/2012
140 [#2060]: https://github.com/tokio-rs/tracing/pull/2060
141
142 # 0.1.32 (March 8th, 2022)
143
144 This release reduces the overhead of creating and dropping disabled
145 spans significantly, which should improve performance when no `tracing`
146 subscriber is in use or when spans are disabled by a filter.
147
148 ### Fixed
149
150 - **attributes**: Compilation failure with `--minimal-versions` due to a
151 too-permissive `syn` dependency ([#1960])
152
153 ### Changed
154
155 - Reduced `Drop` overhead for disabled spans ([#1974])
156 - `tracing-attributes`: updated to [0.1.20][attributes-0.1.20]
157
158 [#1974]: https://github.com/tokio-rs/tracing/pull/1974
159 [#1960]: https://github.com/tokio-rs/tracing/pull/1960
160 [attributes-0.1.20]: https://github.com/tokio-rs/tracing/releases/tag/tracing-attributes-0.1.20
161
162 # 0.1.31 (February 17th, 2022)
163
164 This release increases the minimum supported Rust version (MSRV) to 1.49.0. In
165 addition, it fixes some relatively rare macro bugs.
166
167 ### Added
168
169 - Added `tracing-forest` to the list of related crates ([#1935])
170
171 ### Changed
172
173 - Updated minimum supported Rust version (MSRV) to 1.49.0 ([#1913])
174
175 ### Fixed
176
177 - Fixed the `warn!` macro incorrectly generating an event with the `TRACE` level
178 ([#1930])
179 - Fixed macro hygiene issues when used in a crate that defines its own `concat!`
180 macro, for real this time ([#1918])
181
182 Thanks to @QnnOkabayashi, @nicolaasg, and @teohhanhui for contributing to this
183 release!
184
185 [#1935]: https://github.com/tokio-rs/tracing/pull/1935
186 [#1913]: https://github.com/tokio-rs/tracing/pull/1913
187 [#1930]: https://github.com/tokio-rs/tracing/pull/1930
188 [#1918]: https://github.com/tokio-rs/tracing/pull/1918
189
190 # 0.1.30 (February 3rd, 2022)
191
192 This release adds *experimental* support for recording structured field
193 values using the [`valuable`] crate. See [this blog post][post] for
194 details on `valuable`.
195
196 Note that `valuable` support currently requires `--cfg tracing_unstable`. See
197 the documentation for details.
198
199 This release also adds a new `enabled!` macro for testing if a span or event
200 would be enabled.
201
202 ### Added
203
204 - **field**: Experimental support for recording field values using the
205 [`valuable`] crate ([#1608], [#1888], [#1887])
206 - `enabled!` macro for testing if a span or event is enabled ([#1882])
207
208 ### Changed
209
210 - `tracing-core`: updated to [0.1.22][core-0.1.22]
211 - `tracing-attributes`: updated to [0.1.19][attributes-0.1.19]
212
213 ### Fixed
214
215 - **log**: Fixed "use of moved value" compiler error when the "log" feature is
216 enabled ([#1823])
217 - Fixed macro hygiene issues when used in a crate that defines its own `concat!`
218 macro ([#1842])
219 - A very large number of documentation fixes and improvements.
220
221 Thanks to @@Vlad-Scherbina, @Skepfyr, @Swatinem, @guswynn, @teohhanhui,
222 @xd009642, @tobz, @d-e-s-o@0b01, and @nickelc for contributing to this release!
223
224 [`valuable`]: https://crates.io/crates/valuable
225 [post]: https://tokio.rs/blog/2021-05-valuable
226 [core-0.1.22]: https://github.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.22
227 [attributes-0.1.19]: https://github.com/tokio-rs/tracing/releases/tag/tracing-attributes-0.1.19
228 [#1608]: https://github.com/tokio-rs/tracing/pull/1608
229 [#1888]: https://github.com/tokio-rs/tracing/pull/1888
230 [#1887]: https://github.com/tokio-rs/tracing/pull/1887
231 [#1882]: https://github.com/tokio-rs/tracing/pull/1882
232 [#1823]: https://github.com/tokio-rs/tracing/pull/1823
233 [#1842]: https://github.com/tokio-rs/tracing/pull/1842
234
235 # 0.1.29 (October 5th, 2021)
236
237 This release adds support for recording `Option<T> where T: Value` as typed
238 `tracing` field values. It also includes significant performance improvements
239 for functions annotated with the `#[instrument]` attribute when the generated
240 span is disabled.
241
242 ### Changed
243
244 - `tracing-core`: updated to v0.1.21
245 - `tracing-attributes`: updated to v0.1.18
246
247 ### Added
248
249 - **field**: `Value` impl for `Option<T> where T: Value` ([#1585])
250 - **attributes**: - improved performance when skipping `#[instrument]`-generated
251 spans below the max level ([#1600], [#1605], [#1614], [#1616], [#1617])
252
253 ### Fixed
254
255 - **instrument**: added missing `Future` implementation for `WithSubscriber`,
256 making the `WithDispatch` extension trait actually useable ([#1602])
257 - Documentation fixes and improvements ([#1595], [#1601], [#1597])
258
259 Thanks to @brianburgers, @mattiast, @DCjanus, @oli-obk, and @matklad for
260 contributing to this release!
261
262 [#1585]: https://github.com/tokio-rs/tracing/pull/1585
263 [#1595]: https://github.com/tokio-rs/tracing/pull/1596
264 [#1597]: https://github.com/tokio-rs/tracing/pull/1597
265 [#1600]: https://github.com/tokio-rs/tracing/pull/1600
266 [#1601]: https://github.com/tokio-rs/tracing/pull/1601
267 [#1602]: https://github.com/tokio-rs/tracing/pull/1602
268 [#1605]: https://github.com/tokio-rs/tracing/pull/1605
269 [#1614]: https://github.com/tokio-rs/tracing/pull/1614
270 [#1616]: https://github.com/tokio-rs/tracing/pull/1616
271 [#1617]: https://github.com/tokio-rs/tracing/pull/1617
272
273 # 0.1.28 (September 17th, 2021)
274
275 This release fixes an issue where the RustDoc documentation was rendered
276 incorrectly. It doesn't include any actual code changes, and is very boring and
277 can be ignored.
278
279 ### Fixed
280
281 - **docs**: Incorrect documentation rendering due to unclosed `<div>` tag
282 ([#1572])
283
284 [#1572]: https://github.com/tokio-rs/tracing/pull/1572
285
286 # 0.1.27 (September 13, 2021)
287
288 This release adds a new [`Span::or_current`] method to aid in efficiently
289 propagating span contexts to spawned threads or tasks. Additionally, it updates
290 the [`tracing-core`] version to [0.1.20] and the [`tracing-attributes`] version to
291 [0.1.16], ensuring that a number of new features in those crates are present.
292
293 ### Fixed
294
295 - **instrument**: Added missing `WithSubscriber` implementations for futures and
296 other types ([#1424])
297
298 ### Added
299
300 - `Span::or_current` method, to help with efficient span context propagation
301 ([#1538])
302 - **attributes**: add `skip_all` option to `#[instrument]` ([#1548])
303 - **attributes**: record primitive types as primitive values rather than as
304 `fmt::Debug` ([#1378])
305 - **core**: `NoSubscriber`, a no-op `Subscriber` implementation
306 ([#1549])
307 - **core**: Added `Visit::record_f64` and support for recording floating-point
308 values ([#1507], [#1522])
309 - A large number of documentation improvements and fixes ([#1369], [#1398],
310 [#1435], [#1442], [#1524], [#1556])
311
312 Thanks to new contributors @dzvon and @mbergkvist, as well as @teozkr,
313 @maxburke, @LukeMathWalker, and @jsgf, for contributing to this
314 release!
315
316 [`Span::or_current`]: https://docs.rs/tracing/0.1.27/tracing/struct.Span.html#method.or_current
317 [`tracing-core`]: https://crates.io/crates/tracing-core
318 [`tracing-attributes`]: https://crates.io/crates/tracing-attributes
319 [`tracing-core`]: https://crates.io/crates/tracing-core
320 [0.1.20]: https://github.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.20
321 [0.1.16]: https://github.com/tokio-rs/tracing/releases/tag/tracing-attributes-0.1.16
322 [#1424]: https://github.com/tokio-rs/tracing/pull/1424
323 [#1538]: https://github.com/tokio-rs/tracing/pull/1538
324 [#1548]: https://github.com/tokio-rs/tracing/pull/1548
325 [#1378]: https://github.com/tokio-rs/tracing/pull/1378
326 [#1507]: https://github.com/tokio-rs/tracing/pull/1507
327 [#1522]: https://github.com/tokio-rs/tracing/pull/1522
328 [#1369]: https://github.com/tokio-rs/tracing/pull/1369
329 [#1398]: https://github.com/tokio-rs/tracing/pull/1398
330 [#1435]: https://github.com/tokio-rs/tracing/pull/1435
331 [#1442]: https://github.com/tokio-rs/tracing/pull/1442
332 [#1524]: https://github.com/tokio-rs/tracing/pull/1524
333 [#1556]: https://github.com/tokio-rs/tracing/pull/1556
334
335 # 0.1.26 (April 30, 2021)
336
337 ### Fixed
338
339 - **attributes**: Compatibility between `#[instrument]` and `async-trait`
340 v0.1.43 and newer ([#1228])
341 - Several documentation fixes ([#1305], [#1344])
342 ### Added
343
344 - `Subscriber` impl for `Box<dyn Subscriber + Send + Sync + 'static>` ([#1358])
345 - `Subscriber` impl for `Arc<dyn Subscriber + Send + Sync + 'static>` ([#1374])
346 - Symmetric `From` impls for existing `Into` impls on `span::Current`, `Span`,
347 and `Option<Id>` ([#1335], [#1338])
348 - `From<EnteredSpan>` implementation for `Option<Id>`, allowing `EnteredSpan` to
349 be used in a `span!` macro's `parent:` field ([#1325])
350 - `Attributes::fields` accessor that returns the set of fields defined on a
351 span's `Attributes` ([#1331])
352
353
354 Thanks to @Folyd, @nightmared, and new contributors @rmsc and @Fishrock123 for
355 contributing to this release!
356
357 [#1227]: https://github.com/tokio-rs/tracing/pull/1228
358 [#1305]: https://github.com/tokio-rs/tracing/pull/1305
359 [#1325]: https://github.com/tokio-rs/tracing/pull/1325
360 [#1338]: https://github.com/tokio-rs/tracing/pull/1338
361 [#1344]: https://github.com/tokio-rs/tracing/pull/1344
362 [#1358]: https://github.com/tokio-rs/tracing/pull/1358
363 [#1374]: https://github.com/tokio-rs/tracing/pull/1374
364 [#1335]: https://github.com/tokio-rs/tracing/pull/1335
365 [#1331]: https://github.com/tokio-rs/tracing/pull/1331
366
367 # 0.1.25 (February 23, 2021)
368
369 ### Added
370
371 - `Span::entered` method for entering a span and moving it into a guard by value
372 rather than borrowing it ([#1252])
373
374 Thanks to @matklad for contributing to this release!
375
376 [#1252]: https://github.com/tokio-rs/tracing/pull/1252
377
378 # 0.1.24 (February 17, 2021)
379
380 ### Fixed
381
382 - **attributes**: Compiler error when using `#[instrument(err)]` on functions
383 which return `impl Trait` ([#1236])
384 - Fixed broken match arms in event macros ([#1239])
385 - Documentation improvements ([#1232])
386
387 Thanks to @bkchr and @lfranke for contributing to this release!
388
389 [#1236]: https://github.com/tokio-rs/tracing/pull/1236
390 [#1239]: https://github.com/tokio-rs/tracing/pull/1239
391 [#1232]: https://github.com/tokio-rs/tracing/pull/1232
392
393 # 0.1.23 (February 4, 2021)
394
395 ### Fixed
396
397 - **attributes**: Compiler error when using `#[instrument(err)]` on functions
398 with mutable parameters ([#1167])
399 - **attributes**: Missing function visibility modifier when using
400 `#[instrument]` with `async-trait` ([#977])
401 - **attributes** Removed unused `syn` features ([#928])
402 - **log**: Fixed an issue where the `tracing` macros would generate code for
403 events whose levels are disabled statically by the `log` crate's
404 `static_max_level_XXX` features ([#1175])
405 - Fixed deprecations and clippy lints ([#1195])
406 - Several documentation fixes and improvements ([#941], [#965], [#981], [#1146],
407 [#1215])
408
409 ### Changed
410
411 - **attributes**: `tracing-futures` dependency is no longer required when using
412 `#[instrument]` on async functions ([#808])
413 - **attributes**: Updated `tracing-attributes` minimum dependency to v0.1.12
414 ([#1222])
415
416 Thanks to @nagisa, @Txuritan, @TaKO8Ki, @okready, and @krojew for contributing
417 to this release!
418
419 [#1167]: https://github.com/tokio-rs/tracing/pull/1167
420 [#977]: https://github.com/tokio-rs/tracing/pull/977
421 [#965]: https://github.com/tokio-rs/tracing/pull/965
422 [#981]: https://github.com/tokio-rs/tracing/pull/981
423 [#1215]: https://github.com/tokio-rs/tracing/pull/1215
424 [#808]: https://github.com/tokio-rs/tracing/pull/808
425 [#941]: https://github.com/tokio-rs/tracing/pull/941
426 [#1146]: https://github.com/tokio-rs/tracing/pull/1146
427 [#1175]: https://github.com/tokio-rs/tracing/pull/1175
428 [#1195]: https://github.com/tokio-rs/tracing/pull/1195
429 [#1222]: https://github.com/tokio-rs/tracing/pull/1222
430
431 # 0.1.22 (November 23, 2020)
432
433 ### Changed
434
435 - Updated `pin-project-lite` dependency to 0.2 ([#1108])
436
437 [#1108]: https://github.com/tokio-rs/tracing/pull/1108
438
439 # 0.1.21 (September 28, 2020)
440
441 ### Fixed
442
443 - Incorrect inlining of `Span::new`, `Span::new_root`, and `Span::new_child_of`,
444 which could result in `dispatcher::get_default` being inlined at the callsite
445 ([#994])
446 - Regression where using a struct field as a span or event field when other
447 fields on that struct are borrowed mutably would fail to compile ([#987])
448
449 ### Changed
450
451 - Updated `tracing-core` to 0.1.17 ([#992])
452
453 ### Added
454
455 - `Instrument` trait and `Instrumented` type for attaching a `Span` to a
456 `Future` ([#808])
457 - `Copy` implementations for `Level` and `LevelFilter` ([#992])
458 - Multiple documentation fixes and improvements ([#964], [#980], [#981])
459
460 Thanks to @nagisa, and new contributors @SecurityInsanity, @froydnj, @jyn514 and
461 @TaKO8Ki for contributing to this release!
462
463 [#994]: https://github.com/tokio-rs/tracing/pull/994
464 [#992]: https://github.com/tokio-rs/tracing/pull/992
465 [#987]: https://github.com/tokio-rs/tracing/pull/987
466 [#980]: https://github.com/tokio-rs/tracing/pull/980
467 [#981]: https://github.com/tokio-rs/tracing/pull/981
468 [#964]: https://github.com/tokio-rs/tracing/pull/964
469 [#808]: https://github.com/tokio-rs/tracing/pull/808
470
471 # 0.1.20 (August 24, 2020)
472
473 ### Changed
474
475 - Significantly reduced assembly generated by macro invocations (#943)
476 - Updated `tracing-core` to 0.1.15 (#943)
477
478 ### Added
479
480 - Documented minimum supported Rust version policy (#941)
481
482 # 0.1.19 (August 10, 2020)
483
484 ### Fixed
485
486 - Updated `tracing-core` to fix incorrect calculation of the global max level
487 filter (#908)
488
489 ### Added
490
491 - **attributes**: Support for using `self` in field expressions when
492 instrumenting `async-trait` functions (#875)
493 - Several documentation improvements (#832, #881, #896, #897, #911, #913)
494
495 Thanks to @anton-dutov, @nightmared, @mystor, and @toshokan for contributing to
496 this release!
497
498 # 0.1.18 (July 31, 2020)
499
500 ### Fixed
501
502 - Fixed a bug where `LevelFilter::OFF` (and thus also the `static_max_level_off`
503 feature flag) would enable *all* traces, rather than *none* (#853)
504 - **log**: Fixed `tracing` macros and `Span`s not checking `log::max_level`
505 before emitting `log` records (#870)
506
507 ### Changed
508
509 - **macros**: Macros now check the global max level (`LevelFilter::current`)
510 before the per-callsite cache when determining if a span or event is enabled.
511 This significantly improves performance in some use cases (#853)
512 - **macros**: Simplified the code generated by macro expansion significantly,
513 which may improve compile times and/or `rustc` optimizatation of surrounding
514 code (#869, #869)
515 - **macros**: Macros now check the static max level before checking any runtime
516 filtering, improving performance when a span or event is disabled by a
517 `static_max_level_XXX` feature flag (#868)
518 - `LevelFilter` is now a re-export of the `tracing_core::LevelFilter` type, it
519 can now be used interchangably with the versions in `tracing-core` and
520 `tracing-subscriber` (#853)
521 - Significant performance improvements when comparing `LevelFilter`s and
522 `Level`s (#853)
523 - Updated the minimum `tracing-core` dependency to 0.1.12 (#853)
524
525 ### Added
526
527 - **macros**: Quoted string literals may now be used as field names, to allow
528 fields whose names are not valid Rust identifiers (#790)
529 - **docs**: Several documentation improvements (#850, #857, #841)
530 - `LevelFilter::current()` function, which returns the highest level that any
531 subscriber will enable (#853)
532 - `Subscriber::max_level_hint` optional trait method, for setting the value
533 returned by `LevelFilter::current()` (#853)
534
535 Thanks to new contributors @cuviper, @ethanboxx, @ben0x539, @dignati,
536 @colelawrence, and @rbtcollins for helping out with this release!
537
538 # 0.1.17 (July 22, 2020)
539
540 ### Changed
541
542 - **log**: Moved verbose span enter/exit log records to "tracing::span::active"
543 target, allowing them to be filtered separately (#833)
544 - **log**: All span lifecycle log records without fields now have the `Trace`
545 log filter, to guard against `log` users enabling them by default with blanket
546 level filtering (#833)
547
548 ### Fixed
549
550 - **log**/**macros**: Fixed missing implicit imports of the
551 `tracing::field::debug` and `tracing::field::display` functions inside the
552 macros when the "log" feature is enabled (#835)
553
554 # 0.1.16 (July 8, 2020)
555
556 ### Added
557
558 - **attributes**: Support for arbitrary expressions as fields in `#[instrument]` (#672)
559 - **attributes**: `#[instrument]` now emits a compiler warning when ignoring unrecognized
560 input (#672, #786)
561 - Improved documentation on using `tracing` in async code (#769)
562
563 ### Changed
564
565 - Updated `tracing-core` dependency to 0.1.11
566
567 ### Fixed
568
569 - **macros**: Excessive monomorphization in macros, which could lead to
570 longer compilation times (#787)
571 - **log**: Compiler warnings in macros when `log` or `log-always` features
572 are enabled (#753)
573 - Compiler error when `tracing-core/std` feature is enabled but `tracing/std` is
574 not (#760)
575
576 Thanks to @nagisa for contributing to this release!
577
578 # 0.1.15 (June 2, 2020)
579
580 ### Changed
581
582 - **macros**: Replaced use of legacy `local_inner_macros` with `$crate::` (#740)
583
584 ### Added
585
586 - Docs fixes and improvements (#742, #731, #730)
587
588 Thanks to @bnjjj, @blaenk, and @LukeMathWalker for contributing to this release!
589
590 # 0.1.14 (May 14, 2020)
591
592 ### Added
593
594 - **log**: When using the [`log`] compatibility feature alongside a `tracing`
595 `Subscriber`, log records for spans now include span IDs (#613)
596 - **attributes**: Support for using `#[instrument]` on methods that are part of
597 [`async-trait`] trait implementations (#711)
598 - **attributes**: Optional `#[instrument(err)]` argument to automatically emit
599 an event if an instrumented function returns `Err` (#637)
600 - Added `#[must_use]` attribute to the guard returned by
601 `subscriber::set_default` (#685)
602
603 ### Changed
604
605 - **log**: Made [`log`] records emitted by spans much less noisy when span IDs are
606 not available (#613)
607
608 ### Fixed
609
610 - Several typos in the documentation (#656, #710, #715)
611
612 Thanks to @FintanH, @shepmaster, @inanna-malick, @zekisharif, @bkchr, @majecty,
613 @ilana and @nightmared for contributing to this release!
614
615 [`async-trait`]: https://crates.io/crates/async-trait
616 [`log`]: https://crates.io/crates/log
617
618 # 0.1.13 (February 26, 2019)
619
620 ### Added
621
622 - **field**: `field::Empty` type for declaring empty fields whose values will be
623 recorded later (#548)
624 - **field**: `field::Value` implementations for `Wrapping` and `NonZero*`
625 numbers (#538)
626 - **attributes**: Support for adding arbitrary literal fields to spans generated
627 by `#[instrument]` (#569)
628 - **attributes**: `#[instrument]` now emits a helpful compiler error when
629 attempting to skip a function parameter (#600)
630
631 ### Changed
632
633 - **attributes**: The `#[instrument]` attribute was placed under an on-by-default
634 feature flag "attributes" (#603)
635
636 ### Fixed
637
638 - Broken and unresolvable links in RustDoc (#595)
639
640 Thanks to @oli-cosmian and @Kobzol for contributing to this release!
641
642 # 0.1.12 (January 11, 2019)
643
644 ### Added
645
646 - `Span::with_subscriber` method to access the subscriber that tracks a `Span`
647 (#503)
648 - API documentation now shows which features are required by feature-flagged
649 items (#523)
650 - Improved README examples (#496)
651 - Documentation links to related crates (#507)
652
653 # 0.1.11 (December 20, 2019)
654
655 ### Added
656
657 - `Span::is_none` method (#475)
658 - `LevelFilter::into_level` method (#470)
659 - `LevelFilter::from_level` function and `From<Level>` impl (#471)
660 - Documented minimum supported Rust version (#482)
661
662 ### Fixed
663
664 - Incorrect parameter type to `Span::follows_from` that made it impossible to
665 call (#467)
666 - Missing whitespace in `log` records generated when enabling the `log` feature
667 flag (#484)
668 - Typos and missing links in documentation (#405, #423, #439)
669
670 # 0.1.10 (October 23, 2019)
671
672 ### Added
673
674 - Support for destructuring in arguments to `#[instrument]`ed functions (#397)
675 - Generated field for `self` parameters when `#[instrument]`ing methods (#397)
676 - Optional `skip` argument to `#[instrument]` for excluding function parameters
677 from generated spans (#359)
678 - Added `dispatcher::set_default` and `subscriber::set_default` APIs, which
679 return a drop guard (#388)
680
681 ### Fixed
682
683 - Some minor documentation errors (#356, #370)
684
685 # 0.1.9 (September 13, 2019)
686
687 ### Fixed
688
689 - Fixed `#[instrument]`ed async functions not compiling on `nightly-2019-09-11`
690 or newer (#342)
691
692 ### Changed
693
694 - Significantly reduced performance impact of skipped spans and events when a
695 `Subscriber` is not in use (#326)
696 - The `log` feature will now only cause `tracing` spans and events to emit log
697 records when a `Subscriber` is not in use (#346)
698
699 ### Added
700
701 - Added support for overriding the name of the span generated by `#[instrument]`
702 (#330)
703 - `log-always` feature flag to emit log records even when a `Subscriber` is set
704 (#346)
705
706 # 0.1.8 (September 3, 2019)
707
708 ### Changed
709
710 - Reorganized and improved API documentation (#317)
711
712 ### Removed
713
714 - Dev-dependencies on `ansi_term` and `humantime` crates, which were used only
715 for examples (#316)
716
717 # 0.1.7 (August 30, 2019)
718
719 ### Changed
720
721 - New (curly-brace free) event message syntax to place the message in the first
722 field rather than the last (#309)
723
724 ### Fixed
725
726 - Fixed a regression causing macro stack exhaustion when the `log` feature flag
727 is enabled (#304)
728
729 # 0.1.6 (August 20, 2019)
730
731 ### Added
732
733 - `std::error::Error` as a new primitive type (#277)
734 - Support for mixing key-value fields and `format_args` messages without curly
735 braces as delimiters (#288)
736
737 ### Changed
738
739 - `tracing-core` dependency to 0.1.5 (#294)
740 - `tracing-attributes` dependency to 0.1.2 (#297)
741
742 # 0.1.5 (August 9, 2019)
743
744 ### Added
745
746 - Support for `no-std` + `liballoc` (#263)
747
748 ### Changed
749
750 - Using the `#[instrument]` attribute on `async fn`s no longer requires a
751 feature flag (#258)
752
753 ### Fixed
754
755 - The `#[instrument]` macro now works on generic functions (#262)
756
757 # 0.1.4 (August 8, 2019)
758
759 ### Added
760
761 - `#[instrument]` attribute for automatically adding spans to functions (#253)
762
763 # 0.1.3 (July 11, 2019)
764
765 ### Added
766
767 - Log messages when a subscriber indicates that a span has closed, when the
768 `log` feature flag is enabled (#180).
769
770 ### Changed
771
772 - `tracing-core` minimum dependency version to 0.1.2 (#174).
773
774 ### Fixed
775
776 - Fixed an issue where event macro invocations with a single field, using local
777 variable shorthand, would recur infinitely (#166).
778 - Fixed uses of deprecated `tracing-core` APIs (#174).
779
780 # 0.1.2 (July 6, 2019)
781
782 ### Added
783
784 - `Span::none()` constructor, which does not require metadata and
785 returns a completely empty span (#147).
786 - `Span::current()` function, returning the current span if it is
787 known to the subscriber (#148).
788
789 ### Fixed
790
791 - Broken macro imports when used prefixed with `tracing::` (#152).
792
793 # 0.1.1 (July 3, 2019)
794
795 ### Changed
796
797 - `cfg_if` dependency to 0.1.9.
798
799 ### Fixed
800
801 - Compilation errors when the `log` feature is enabled (#131).
802 - Unclear wording and typos in documentation (#124, #128, #142).
803
804 # 0.1.0 (June 27, 2019)
805
806 - Initial release