Debian Codegraph @

third_party/rust/tracing-core/CHANGELOG.md

raw
1 # 0.1.30 (October 6, 2022)
2
3 This release of `tracing-core` adds a new `on_register_dispatch` method to the
4 `Subscriber` trait to allow the `Subscriber` to perform initialization after
5 being registered as a `Dispatch`, and a `WeakDispatch` type to allow a
6 `Subscriber` to store its own `Dispatch` without creating reference count
7 cycles.
8
9 ### Added
10
11 - `Subscriber::on_register_dispatch` method ([#2269])
12 - `WeakDispatch` type and `Dispatch::downgrade()` function ([#2293])
13
14 Thanks to @jswrenn for contributing to this release!
15
16 [#2269]: https://github.com/tokio-rs/tracing/pull/2269
17 [#2293]: https://github.com/tokio-rs/tracing/pull/2293
18
19 # 0.1.29 (July 29, 2022)
20
21 This release of `tracing-core` adds `PartialEq` and `Eq` implementations for
22 metadata types, and improves error messages when setting the global default
23 subscriber fails.
24
25 ### Added
26
27 - `PartialEq` and `Eq` implementations for `Metadata` ([#2229])
28 - `PartialEq` and `Eq` implementations for `FieldSet` ([#2229])
29
30 ### Fixed
31
32 - Fixed unhelpful `fmt::Debug` output for `dispatcher::SetGlobalDefaultError`
33 ([#2250])
34 - Fixed compilation with `-Z minimal-versions` ([#2246])
35
36 Thanks to @jswrenn and @CAD97 for contributing to this release!
37
38 [#2229]: https://github.com/tokio-rs/tracing/pull/2229
39 [#2246]: https://github.com/tokio-rs/tracing/pull/2246
40 [#2250]: https://github.com/tokio-rs/tracing/pull/2250
41
42 # 0.1.28 (June 23, 2022)
43
44 This release of `tracing-core` adds new `Value` implementations, including one
45 for `String`, to allow recording `&String` as a value without having to call
46 `as_str()` or similar, and for 128-bit integers (`i128` and `u128`). In
47 addition, it adds new methods and trait implementations for `Subscriber`s.
48
49 ### Added
50
51 - `Value` implementation for `String` ([#2164])
52 - `Value` implementation for `u128` and `i28` ([#2166])
53 - `downcast_ref` and `is` methods for `dyn Subscriber + Sync`,
54 `dyn Subscriber + Send`, and `dyn Subscriber + Send + Sync` ([#2160])
55 - `Subscriber::event_enabled` method to enable filtering based on `Event` field
56 values ([#2008])
57 - `Subscriber` implementation for `Box<S: Subscriber + ?Sized>` and
58 `Arc<S: Subscriber + ?Sized>` ([#2161])
59
60 Thanks to @jswrenn and @CAD97 for contributing to this release!
61
62 [#2164]: https://github.com/tokio-rs/tracing/pull/2164
63 [#2166]: https://github.com/tokio-rs/tracing/pull/2166
64 [#2160]: https://github.com/tokio-rs/tracing/pull/2160
65 [#2008]: https://github.com/tokio-rs/tracing/pull/2008
66 [#2161]: https://github.com/tokio-rs/tracing/pull/2161
67
68 # 0.1.27 (June 7, 2022)
69
70 This release of `tracing-core` introduces a new `DefaultCallsite` type, which
71 can be used by instrumentation crates rather than implementing their own
72 callsite types. Using `DefaultCallsite` may offer reduced overhead from callsite
73 registration.
74
75 ### Added
76
77 - `DefaultCallsite`, a pre-written `Callsite` implementation for use in
78 instrumentation crates ([#2083])
79 - `ValueSet::len` and `Record::len` methods returning the number of fields in a
80 `ValueSet` or `Record` ([#2152])
81
82 ### Changed
83
84 - Replaced `lazy_static` dependency with `once_cell` ([#2147])
85
86 ### Documented
87
88 - Added documentation to the `callsite` module ([#2088], [#2149])
89
90 Thanks to new contributors @jamesmunns and @james7132 for contributing to this
91 release!
92
93 [#2083]: https://github.com/tokio-rs/tracing/pull/2083
94 [#2152]: https://github.com/tokio-rs/tracing/pull/2152
95 [#2147]: https://github.com/tokio-rs/tracing/pull/2147
96 [#2088]: https://github.com/tokio-rs/tracing/pull/2088
97 [#2149]: https://github.com/tokio-rs/tracing/pull/2149
98
99 # 0.1.26 (April 14, 2022)
100
101 This release adds a `Value` implementation for `Box<T: Value>` to allow
102 recording boxed values more conveniently. In particular, this should improve
103 the ergonomics of the implementations for `dyn std::error::Error` trait objects,
104 including those added in [v0.1.25].
105
106 ### Added
107
108 - `Value` implementation for `Box<T> where T: Value` ([#2071])
109
110 ### Fixed
111
112 - Broken documentation links ([#2068])
113
114 Thanks to new contributor @ben0x539 for contributing to this release!
115
116
117 [v0.1.25]: https://github.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.25
118 [#2071]: https://github.com/tokio-rs/tracing/pull/2071
119 [#2068]: https://github.com/tokio-rs/tracing/pull/2068
120
121 # 0.1.25 (April 12, 2022)
122
123 This release adds additional `Value` implementations for `std::error::Error`
124 trait objects with auto trait bounds (`Send` and `Sync`), as Rust will not
125 auto-coerce trait objects. Additionally, it fixes a bug when setting scoped
126 dispatchers that was introduced in the previous release ([v0.1.24]).
127
128 ### Added
129
130 - `Value` implementations for `dyn Error + Send + 'static`, `dyn Error + Send +
131 Sync + 'static`, `dyn Error + Sync + 'static` ([#2066])
132
133 ### Fixed
134
135 - Failure to use the global default dispatcher if a thread has set a scoped
136 default prior to setting the global default, and unset the scoped default
137 after setting the global default ([#2065])
138
139 Thanks to @lilyball for contributing to this release!
140
141 [v0.1.24]: https://github.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.24
142 [#2066]: https://github.com/tokio-rs/tracing/pull/2066
143 [#2065]: https://github.com/tokio-rs/tracing/pull/2065
144
145 # 0.1.24 (April 1, 2022)
146
147 This release fixes a bug where setting `NoSubscriber` as the local default would
148 not disable the global default subscriber locally.
149
150 ### Fixed
151
152 - Setting `NoSubscriber` as the local default now correctly disables the global
153 default subscriber ([#2001])
154 - Fixed compilation warnings with the "std" feature disabled ([#2022])
155
156 ### Changed
157
158 - Removed unnecessary use of `write!` and `format_args!` macros ([#1988])
159
160 [#1988]: https://github.com/tokio-rs/tracing/pull/1988
161 [#2001]: https://github.com/tokio-rs/tracing/pull/2001
162 [#2022]: https://github.com/tokio-rs/tracing/pull/2022
163
164 # 0.1.23 (March 8, 2022)
165
166 ### Changed
167
168 - Removed `#[inline]` attributes from some `Dispatch` methods whose
169 callers are now inlined ([#1974])
170 - Bumped minimum supported Rust version (MSRV) to Rust 1.49.0 ([#1913])
171
172 [#1913]: https://github.com/tokio-rs/tracing/pull/1913
173 [#1974]: https://github.com/tokio-rs/tracing/pull/1974
174
175 # 0.1.22 (February 3, 2022)
176
177 This release adds *experimental* support for recording structured field values
178 using the [`valuable`] crate. See [this blog post][post] for details on
179 `valuable`.
180
181 Note that `valuable` support currently requires `--cfg tracing_unstable`. See
182 the documentation for details.
183
184 ### Added
185
186 - **field**: Experimental support for recording field values using the
187 [`valuable`] crate ([#1608], [#1888], [#1887])
188 - **field**: Added `ValueSet::record` method ([#1823])
189 - **subscriber**: `Default` impl for `NoSubscriber` ([#1785])
190 - **metadata**: New `Kind::HINT` to support the `enabled!` macro in `tracing`
191 ([#1883], [#1891])
192 ### Fixed
193
194 - Fixed a number of documentation issues ([#1665], [#1692], [#1737])
195
196 Thanks to @xd009642, @Skepfyr, @guswynn, @Folyd, and @mbergkvist for
197 contributing to this release!
198
199 [`valuable`]: https://crates.io/crates/valuable
200 [post]: https://tokio.rs/blog/2021-05-valuable
201 [#1608]: https://github.com/tokio-rs/tracing/pull/1608
202 [#1888]: https://github.com/tokio-rs/tracing/pull/1888
203 [#1887]: https://github.com/tokio-rs/tracing/pull/1887
204 [#1823]: https://github.com/tokio-rs/tracing/pull/1823
205 [#1785]: https://github.com/tokio-rs/tracing/pull/1785
206 [#1883]: https://github.com/tokio-rs/tracing/pull/1883
207 [#1891]: https://github.com/tokio-rs/tracing/pull/1891
208 [#1665]: https://github.com/tokio-rs/tracing/pull/1665
209 [#1692]: https://github.com/tokio-rs/tracing/pull/1692
210 [#1737]: https://github.com/tokio-rs/tracing/pull/1737
211
212 # 0.1.21 (October 1, 2021)
213
214 This release adds support for recording `Option<T> where T: Value` as typed
215 `tracing` field values.
216
217 ### Added
218
219 - **field**: `Value` impl for `Option<T> where T: Value` ([#1585])
220
221 ### Fixed
222
223 - Fixed deprecation warnings when building with `default-features` disabled
224 ([#1603], [#1606])
225 - Documentation fixes and improvements ([#1595], [#1601])
226
227 Thanks to @brianburgers, @DCjanus, and @matklad for contributing to this
228 release!
229
230 [#1585]: https://github.com/tokio-rs/tracing/pull/1585
231 [#1595]: https://github.com/tokio-rs/tracing/pull/1595
232 [#1601]: https://github.com/tokio-rs/tracing/pull/1601
233 [#1603]: https://github.com/tokio-rs/tracing/pull/1603
234 [#1606]: https://github.com/tokio-rs/tracing/pull/1606
235
236 # 0.1.20 (September 12, 2021)
237
238 This release adds support for `f64` as one of the `tracing-core`
239 primitive field values, allowing floating-point values to be recorded as
240 typed values rather than with `fmt::Debug`. Additionally, it adds
241 `NoSubscriber`, a `Subscriber` implementation that does nothing.
242
243 ### Added
244
245 - **subscriber**: `NoSubscriber`, a no-op `Subscriber` implementation
246 ([#1549])
247 - **field**: Added `Visit::record_f64` and support for recording
248 floating-point values ([#1507])
249
250 Thanks to new contributors @jsgf and @maxburke for contributing to this
251 release!
252
253 [#1549]: https://github.com/tokio-rs/tracing/pull/1549
254 [#1507]: https://github.com/tokio-rs/tracing/pull/1507
255
256 # 0.1.19 (August 17, 2021)
257 ### Added
258
259 - `Level::as_str` ([#1413])
260 - `Hash` implementation for `Level` and `LevelFilter` ([#1456])
261 - `Value` implementation for `&mut T where T: Value` ([#1385])
262 - Multiple documentation fixes and improvements ([#1435], [#1446])
263
264 Thanks to @Folyd, @teozkr, and @dvdplm for contributing to this release!
265
266 [#1413]: https://github.com/tokio-rs/tracing/pull/1413
267 [#1456]: https://github.com/tokio-rs/tracing/pull/1456
268 [#1385]: https://github.com/tokio-rs/tracing/pull/1385
269 [#1435]: https://github.com/tokio-rs/tracing/pull/1435
270 [#1446]: https://github.com/tokio-rs/tracing/pull/1446
271
272 # 0.1.18 (April 30, 2021)
273
274 ### Added
275
276 - `Subscriber` impl for `Box<dyn Subscriber + Send + Sync + 'static>` ([#1358])
277 - `Subscriber` impl for `Arc<dyn Subscriber + Send + Sync + 'static>` ([#1374])
278 - Symmetric `From` impls for existing `Into` impls on `Current` and `Option<Id>`
279 ([#1335])
280 - `Attributes::fields` accessor that returns the set of fields defined on a
281 span's `Attributes` ([#1331])
282
283
284 Thanks to @Folyd for contributing to this release!
285
286 [#1358]: https://github.com/tokio-rs/tracing/pull/1358
287 [#1374]: https://github.com/tokio-rs/tracing/pull/1374
288 [#1335]: https://github.com/tokio-rs/tracing/pull/1335
289 [#1331]: https://github.com/tokio-rs/tracing/pull/1331
290
291 # 0.1.17 (September 28, 2020)
292
293 ### Fixed
294
295 - Incorrect inlining of `Event::dispatch` and `Event::child_of`, which could
296 result in `dispatcher::get_default` being inlined at the callsite ([#994])
297
298 ### Added
299
300 - `Copy` implementations for `Level` and `LevelFilter` ([#992])
301
302 Thanks to new contributors @jyn514 and @TaKO8Ki for contributing to this
303 release!
304
305 [#994]: https://github.com/tokio-rs/tracing/pull/994
306 [#992]: https://github.com/tokio-rs/tracing/pull/992
307
308 # 0.1.16 (September 8, 2020)
309
310 ### Fixed
311
312 - Added a conversion from `Option<Level>` to `LevelFilter`. This resolves a
313 previously unreported regression where `Option<Level>` was no longer
314 a valid LevelFilter. ([#966](https://github.com/tokio-rs/tracing/pull/966))
315
316 # 0.1.15 (August 22, 2020)
317
318 ### Fixed
319
320 - When combining `Interest` from multiple subscribers, if the interests differ,
321 the current subscriber is now always asked if a callsite should be enabled
322 (#927)
323
324 ## Added
325
326 - Internal API changes to support optimizations in the `tracing` crate (#943)
327 - **docs**: Multiple fixes and improvements (#913, #941)
328
329 # 0.1.14 (August 10, 2020)
330
331 ### Fixed
332
333 - Incorrect calculation of global max level filter which could result in fast
334 filtering paths not being taken (#908)
335
336 # 0.1.13 (August 4, 2020)
337
338 ### Fixed
339
340 - Missing `fmt::Display` impl for `field::DisplayValue` causing a compilation
341 failure when the "log" feature is enabled (#887)
342
343 Thanks to @d-e-s-o for contributing to this release!
344
345 # 0.1.12 (July 31, 2020)
346
347 ### Added
348
349 - `LevelFilter` type and `LevelFilter::current()` for returning the highest level
350 that any subscriber will enable (#853)
351 - `Subscriber::max_level_hint` optional trait method, for setting the value
352 returned by `LevelFilter::current()` (#853)
353
354 ### Fixed
355
356 - **docs**: Removed outdated reference to a Tokio API that no longer exists
357 (#857)
358
359 Thanks to new contributor @dignati for contributing to this release!
360
361 # 0.1.11 (June 8, 2020)
362
363 ### Changed
364
365 - Replaced use of `inner_local_macros` with `$crate::` (#729)
366
367 ### Added
368
369 - `must_use` warning to guards returned by `dispatcher::set_default` (#686)
370 - `fmt::Debug` impl to `dyn Value`s (#696)
371 - Functions to convert between `span::Id` and `NonZeroU64` (#770)
372 - More obvious warnings in documentation (#769)
373
374 ### Fixed
375
376 - Compiler error when `tracing-core/std` feature is enabled but `tracing/std` is
377 not (#760)
378 - Clippy warning on vtable address comparison in `callsite::Identifier` (#749)
379 - Documentation formatting issues (#715, #771)
380
381 Thanks to @bkchr, @majecty, @taiki-e, @nagisa, and @nvzqz for contributing to
382 this release!
383
384 # 0.1.10 (January 24, 2020)
385
386 ### Added
387
388 - `field::Empty` type for declaring empty fields whose values will be recorded
389 later (#548)
390 - `field::Value` implementations for `Wrapping` and `NonZero*` numbers (#538)
391
392 ### Fixed
393
394 - Broken and unresolvable links in RustDoc (#595)
395
396 Thanks to @oli-cosmian for contributing to this release!
397
398 # 0.1.9 (January 10, 2020)
399
400 ### Added
401
402 - API docs now show what feature flags are required to enable each item (#523)
403
404 ### Fixed
405
406 - A panic when the current default subscriber subscriber calls
407 `dispatcher::with_default` as it is being dropped (#522)
408 - Incorrect documentation for `Subscriber::drop_span` (#524)
409
410 # 0.1.8 (December 20, 2019)
411
412 ### Added
413
414 - `Default` impl for `Dispatch` (#411)
415
416 ### Fixed
417
418 - Removed duplicate `lazy_static` dependencies (#424)
419 - Fixed no-std dependencies being enabled even when `std` feature flag is set
420 (#424)
421 - Broken link to `Metadata` in `Event` docs (#461)
422
423 # 0.1.7 (October 18, 2019)
424
425 ### Added
426
427 - Added `dispatcher::set_default` API which returns a drop guard (#388)
428
429 ### Fixed
430
431 - Added missing `Value` impl for `u8` (#392)
432 - Broken links in docs.
433
434 # 0.1.6 (September 12, 2019)
435
436 ### Added
437
438 - Internal APIs to support performance optimizations (#326)
439
440 ### Fixed
441
442 - Clarified wording in `field::display` documentation (#340)
443
444 # 0.1.5 (August 16, 2019)
445
446 ### Added
447
448 - `std::error::Error` as a new primitive `Value` type (#277)
449 - `Event::new` and `Event::new_child_of` to manually construct `Event`s (#281)
450
451 # 0.1.4 (August 9, 2019)
452
453 ### Added
454
455 - Support for `no-std` + `liballoc` (#256)
456
457 ### Fixed
458
459 - Broken links in RustDoc (#259)
460
461 # 0.1.3 (August 8, 2019)
462
463 ### Added
464
465 - `std::fmt::Display` implementation for `Level` (#194)
466 - `std::str::FromStr` implementation for `Level` (#195)
467
468 # 0.1.2 (July 10, 2019)
469
470 ### Deprecated
471
472 - `Subscriber::drop_span` in favor of new `Subscriber::try_close` (#168)
473
474 ### Added
475
476 - `Into<Option<&Id>>`, `Into<Option<Id>>`, and
477 `Into<Option<&'static Metadata<'static>>>` impls for `span::Current` (#170)
478 - `Subscriber::try_close` method (#153)
479 - Improved documentation for `dispatcher` (#171)
480
481 # 0.1.1 (July 6, 2019)
482
483 ### Added
484
485 - `Subscriber::current_span` API to return the current span (#148).
486 - `span::Current` type, representing the `Subscriber`'s view of the current
487 span (#148).
488
489 ### Fixed
490
491 - Typos and broken links in documentation (#123, #124, #128, #154)
492
493 # 0.1.0 (June 27, 2019)
494
495 - Initial release