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