]> git.proxmox.com Git - rustc.git/blob - vendor/tracing-subscriber/CHANGELOG.md
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / vendor / tracing-subscriber / CHANGELOG.md
1 # 0.2.7 (July 1, 2020)
2
3 ### Changed
4
5 - **parking_lot**: Updated the optional `parking_lot` dependency to accept the
6 latest `parking_lot` version (#774)
7
8 ### Fixed
9
10 - **fmt**: Fixed events with explicitly overridden parent spans being formatted
11 as though they were children of the current span (#767)
12
13 ### Added
14
15 - **fmt**: Added the option to print synthesized events when spans are created,
16 entered, exited, and closed, including span durations (#761)
17 - Documentation clarification and improvement (#762, #769)
18
19 Thanks to @rkuhn, @greenwoodcm, and @Ralith for contributing to this release!
20
21 # 0.2.6 (June 19, 2020)
22
23 ### Fixed
24
25 - **fmt**: Fixed an issue in the JSON formatter where using `Span::record` would
26 result in malformed spans (#709)
27
28 # 0.2.5 (April 21, 2020)
29
30 ### Changed
31
32 - **fmt**: Bump sharded-slab dependency (#679)
33
34 ### Fixed
35
36 - **fmt**: remove trailing space in `ChronoUtc` `format_time` (#677)
37
38 # 0.2.4 (April 6, 2020)
39
40 This release includes several API ergonomics improvements, including shorthand
41 constructors for many types, and an extension trait for initializing subscribers
42 using method-chaining style. Additionally, several bugs in less commonly used
43 `fmt` APIs were fixed.
44
45 ### Added
46
47 - **fmt**: Shorthand free functions for constructing most types in `fmt`
48 (including `tracing_subscriber::fmt()` to return a `SubscriberBuilder`,
49 `tracing_subscriber::fmt::layer()` to return a format `Layer`, etc) (#660)
50 - **registry**: Shorthand free function `tracing_subscriber::registry()` to
51 construct a new registry (#660)
52 - Added `SubscriberInitExt` extension trait for more ergonomic subscriber
53 initialization (#660)
54
55 ### Changed
56
57 - **fmt**: Moved `LayerBuilder` methods to `Layer` (#655)
58
59 ### Deprecated
60
61 - **fmt**: `LayerBuilder`, as `Layer` now implements all builder methods (#655)
62
63 ### Fixed
64
65 - **fmt**: Fixed `Compact` formatter not omitting levels with
66 `with_level(false)` (#657)
67 - **fmt**: Fixed `fmt::Layer` duplicating the fields for a new span if another
68 layer has already formatted its fields (#634)
69 - **fmt**: Added missing space when using `record` to add new fields to a span
70 that already has fields (#659)
71 - Updated outdated documentation (#647)
72
73
74 # 0.2.3 (March 5, 2020)
75
76 ### Fixed
77
78 - **env-filter**: Regression where filter directives were selected in the order
79 they were listed, rather than most specific first (#624)
80
81 # 0.2.2 (February 27, 2020)
82
83 ### Added
84
85 - **fmt**: Added `flatten_event` to `SubscriberBuilder` (#599)
86 - **fmt**: Added `with_level` to `SubscriberBuilder` (#594)
87
88 # 0.2.1 (February 13, 2020)
89
90 ### Changed
91
92 - **filter**: `EnvFilter` directive selection now behaves correctly (i.e. like
93 `env_logger`) (#583)
94
95 ### Fixed
96
97 - **filter**: Fixed `EnvFilter` incorrectly allowing less-specific filter
98 directives to enable events that are disabled by more-specific filters (#583)
99 - **filter**: Multiple significant `EnvFilter` performance improvements,
100 especially when filtering events generated by `log` records (#578, #583)
101 - **filter**: Replaced `BTreeMap` with `Vec` in `DirectiveSet`, improving
102 iteration performance significantly with typical numbers of filter directives
103 (#580)
104
105 A big thank-you to @samschlegel for lots of help with `EnvFilter` performance
106 tuning in this release!
107
108 # 0.2.0 (February 4, 2020)
109
110 ### Breaking Changes
111
112 - **fmt**: Renamed `Context` to `FmtContext` (#420, #425)
113 - **fmt**: Renamed `Builder` to `SubscriberBuilder` (#420)
114 - **filter**: Removed `Filter`. Use `EnvFilter` instead (#434)
115
116 ### Added
117
118 - **registry**: `Registry`, a `Subscriber` implementation that `Layer`s can use
119 as a high-performance, in-memory span store. (#420, #425, #432, #433, #435)
120 - **registry**: Added `LookupSpan` trait, implemented by `Subscriber`s to expose
121 stored span data to `Layer`s (#420)
122 - **fmt**: Added `fmt::Layer`, to allow composing log formatting with other `Layer`s
123 - **fmt**: Added support for JSON field and event formatting (#377, #415)
124 - **filter**: Documentation for filtering directives (#554)
125
126 ### Changed
127
128 - **fmt**: Renamed `Context` to `FmtContext` (#420, #425) (BREAKING)
129 - **fmt**: Renamed `Builder` to `SubscriberBuilder` (#420) (BREAKING)
130 - **fmt**: Reimplemented `fmt::Subscriber` in terms of the `Registry`
131 and `Layer`s (#420)
132
133 ### Removed
134
135 - **filter**: Removed `Filter`. Use `EnvFilter` instead (#434) (BREAKING)
136
137 ### Fixed
138
139 - **fmt**: Fixed memory leaks in the slab used to store per-span data
140 (3c35048)
141 - **fmt**: `fmt::SubscriberBuilder::init` not setting up `log` compatibility
142 (#489)
143 - **fmt**: Spans closed by a child span closing not also closing _their_
144 parents (#514)
145 - **Layer**: Fixed `Layered` subscribers failing to downcast to their own type
146 (#549)
147 - **Layer**: Fixed `Layer::downcast_ref` returning invalid references (#454)
148
149 # 0.2.0-alpha.6 (February 3, 2020)
150
151 ### Fixed
152
153 - **fmt**: Fixed empty `{}` printed after spans with no fields (f079f2d)
154 - **fmt**: Fixed inconsistent formatting when ANSI colors are disabled (506a482)
155 - **fmt**: Fixed mis-aligned levels when ANSI colors are disabled (eba1adb)
156 - Fixed warnings on nightly Rust compilers (#558)
157
158 # 0.2.0-alpha.5 (January 31, 2020)
159
160 ### Added
161
162 - **env_filter**: Documentation for filtering directives (#554)
163 - **registry**, **env_filter**: Updated `smallvec` dependency to 0.1 (#543)
164
165 ### Fixed
166
167 - **registry**: Fixed a memory leak in the slab used to store per-span data
168 (3c35048)
169 - **Layer**: Fixed `Layered` subscribers failing to downcast to their own type
170 (#549)
171 - **fmt**: Fixed a panic when multiple layers insert `FormattedFields`
172 extensions from the same formatter type (1c3bb70)
173 - **fmt**: Fixed `fmt::Layer::on_record` inserting a new `FormattedFields` when
174 formatted fields for a span already exist (1c3bb70)
175
176 # 0.2.0-alpha.4 (January 11, 2020)
177
178 ### Fixed
179
180 - **registry**: Removed inadvertently committed `dbg!` macros (#533)
181
182 # 0.2.0-alpha.3 (January 10, 2020)
183
184 ### Added
185
186 - **fmt**: Public `FormattedFields::new` constructor (#478)
187 - **fmt**: Added examples to `fmt::Layer` documentation (#510)
188 - Documentation now shows what feature flags are required by each API item (#525)
189
190 ### Fixed
191
192 - **fmt**: Missing space between timestamp and level (#480)
193 - **fmt**: Incorrect formatting with `with_target(false)` (#481)
194 - **fmt**: `fmt::SubscriberBuilder::init` not setting up `log` compatibility
195 (#489)
196 - **registry**: Spans exited out of order not being closed properly on exit
197 (#509)
198 - **registry**: Memory leak when spans are closed by a child span closing (#514)
199 - **registry**: Spans closed by a child span closing not also closing _their_
200 parents (#514)
201 - Compilation errors with `no-default-features` (#499, #500)
202
203 # 0.2.0-alpha.2 (December 8, 2019)
204
205 ### Added
206
207 - `LookupSpans` implementation for `Layered` (#448)
208 - `SpanRef::from_root` to iterate over a span's parents from the root (#460)
209 - `Context::scope`, to iterate over the current context from the root (#460)
210 - `Context::lookup_current`, which returns a `SpanRef` to the current
211 span's data (#460)
212
213 ### Changed
214
215 - Lifetimes on some new `Context` methods to be less restrictive (#460)
216
217 ### Fixed
218
219 - `Layer::downcast_ref` returning invalid references (#454)
220 - Compilation failure on 32-bit platforms (#462)
221 - Compilation failure with ANSI formatters (#438)
222
223 # 0.2.0-alpha.1 (November 18, 2019)
224
225 ### Added
226
227 - `Registry`, a reusable span store that `Layer`s can use a
228 high-performance, in-memory store. (#420, #425, #432, #433, #435)
229 - Reimplemented `fmt::Subscriber` in terms of the `Registry`
230 and `Layer`s (#420)
231 - Add benchmarks for fmt subscriber (#421)
232 - Add support for JSON field and event formatting (#377, #415)
233
234 ### Changed
235
236 - **BREAKING**: Change `fmt::format::FormatFields` and
237 `fmt::format::FormatEvent` to accept a mandatory `FmtContext`. These
238 `FormatFields` and `FormatEvent` will likely see additional breaking
239 changes in subsequent alpha. (#420, #425)
240 - **BREAKING**: Removed `Filter`. Use `EnvFilter` instead (#434)
241
242 ### Contributers
243
244 Thanks to all the contributers to this release!
245
246 - @pimeys for #377 and #415
247
248 # 0.1.6 (October 29, 2019)
249
250 ### Added
251
252 - Add `init` and `try_init` functions to `FmtSubscriber` (#385)
253 - Add `ChronoUtc` and `ChronoLocal` timers, RFC 3339 support (#387)
254 - Add `tracing::subscriber::set_default` which sets the default
255 subscriber and returns a drop guard. This drop guard will reset the
256 dispatch on drop (#388).
257
258 ### Fixed
259
260 - Fix default level for `EnvFilter`. Setting `RUST_LOG=target`
261 previously only the `ERROR` level, while it should enable everything.
262 `tracing-subscriber` now defaults to `TRACE` if no level is specified
263 (#401)
264 - Fix `tracing-log` feature flag for init + try_init. The feature flag
265 `tracing_log` was used instead of the correct `tracing-log`. As a
266 result, both `tracing-log` and `tracing_log` needed to be specified in
267 order to initialize the global logger. Only `tracing-log` needs to be
268 specified now (#400).
269
270 ### Contributers
271
272 Thanks to all the contributers to this release!
273
274 - @emschwartz for #385, #387, #400 and #401
275 - @bIgBV for #388
276
277 # 0.1.5 (October 7, 2019)
278
279 ### Fixed
280
281 - Spans not being closed properly when `FmtSubscriber::current_span` is used
282 (#371)
283
284 # 0.1.4 (September 26, 2019)
285
286 ### Fixed
287
288 - Spans entered twice on the same thread sometimes being completely exited when
289 the more deeply-nested entry is exited (#361)
290 - Setting `with_ansi(false)` on `FmtSubscriber` not disabling ANSI color
291 formatting for timestamps (#354)
292 - Incorrect reference counting in `FmtSubscriber` that could cause spans to not
293 be closed when all references are dropped (#366)
294
295 # 0.1.3 (September 16, 2019)
296
297 ### Fixed
298
299 - `Layered` subscribers not properly forwarding calls to `current_span`
300 (#350)
301
302 # 0.1.2 (September 12, 2019)
303
304 ### Fixed
305
306 - `EnvFilter` ignoring directives with targets that are the same number of
307 characters (#333)
308 - `EnvFilter` failing to properly apply filter directives to events generated
309 from `log` records by`tracing-log` (#344)
310
311 ### Changed
312
313 - Renamed `Filter` to `EnvFilter`, deprecated `Filter` (#339)
314 - Renamed "filter" feature flag to "env-filter", deprecated "filter" (#339)
315 - `FmtSubscriber` now defaults to enabling only the `INFO` level and above when
316 a max level filter or `EnvFilter` is not set (#336)
317 - Made `parking_lot` dependency an opt-in feature flag (#348)
318
319 ### Added
320
321 - `EnvFilter::add_directive` to add new directives to filters after they are
322 constructed (#334)
323 - `fmt::Builder::with_max_level` to set a global level filter for a
324 `FmtSubscriber` without requiring the use of `EnvFilter` (#336)
325 - `Layer` implementation for `LevelFilter` (#336)
326 - `EnvFilter` now implements `fmt::Display` (#329)
327
328 ### Removed
329
330 - Removed dependency on `crossbeam-util` (#348)
331
332 # 0.1.1 (September 4, 2019)
333
334 ### Fixed
335
336 - Potential double panic in `CurrentSpan` (#325)
337
338 # 0.1.0 (September 3, 2019)
339
340 - Initial release