• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 0.18.0 (September 18, 2022)
2
3### Breaking Changes
4
5- Upgrade to `v0.18.0` of `opentelemetry` ([#2303])
6  For list of breaking changes in OpenTelemetry, see the
7  [v0.18.0 changelog](https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry/CHANGELOG.md#v0180).
8
9### Fixed
10
11- `on_event` respects event's explicit parent ([#2296])
12
13Thanks to @wprzytula for contributing to this release!
14
15[#2303]: https://github.com/tokio-rs/tracing/pull/2303
16[#2296]: https://github.com/tokio-rs/tracing/pull/2296
17
18# 0.17.4 (July 1, 2022)
19
20This release adds optional support for recording `std::error::Error`s using
21[OpenTelemetry's semantic conventions for exceptions][exn-semconv].
22
23### Added
24
25- `Layer::with_exception_fields` to enable emitting `exception.message` and
26  `exception.backtrace` semantic-convention fields when an `Error` is recorded
27  as a span or event field ([#2135])
28- `Layer::with_exception_field_propagation` to enable setting `exception.message` and
29  `exception.backtrace` semantic-convention fields on the current span when an
30  event with an `Error` field is recorded ([#2135])
31
32Thanks to @lilymara-onesignal for contributing to this release!
33
34[thread-semconv]: https://opentelemetry.io/docs/reference/specification/trace/semantic_conventions/exceptions/
35[#2135]: https://github.com/tokio-rs/tracing/pull/2135
36
37# 0.17.3 (June 7, 2022)
38
39This release adds support for emitting thread names and IDs to OpenTelemetry, as
40well as recording `std::error::Error` values in a structured manner with their
41source chain included. Additionally, this release fixes issues related to event
42and span source code locations.
43
44### Added
45
46- `Layer::with_threads` to enable recording thread names/IDs according to
47  [OpenTelemetry semantic conventions][thread-semconv] ([#2134])
48- `Error::source` chain when recording `std::error::Error` values ([#2122])
49- `Layer::with_location` method (replaces `Layer::with_event_location`)
50  ([#2124])
51
52### Changed
53
54- `std::error::Error` values are now recorded using `fmt::Display` rather than
55  `fmt::Debug` ([#2122])
56
57### Fixed
58
59- Fixed event source code locations overwriting the parent span's source
60  location ([#2099])
61- Fixed `Layer::with_event_location` not controlling whether locations are
62  emitted for spans as well as events ([#2124])
63
64### Deprecated
65
66- `Layer::with_event_location`: renamed to `Layer::with_location`, as it now
67  controls both span and event locations ([#2124])
68
69Thanks to new contributors @lilymara-onesignal, @hubertbudzynski, and @DevinCarr
70for contributing to this release!
71
72[thread-semconv]: https://opentelemetry.io/docs/reference/specification/trace/semantic_conventions/span-general/#source-code-attributes
73[#2134]: https://github.com/tokio-rs/tracing/pull/2134
74[#2122]: https://github.com/tokio-rs/tracing/pull/2122
75[#2124]: https://github.com/tokio-rs/tracing/pull/2124
76[#2099]: https://github.com/tokio-rs/tracing/pull/2099
77
78# 0.17.2 (February 21, 2022)
79
80This release fixes [an issue][#1944] introduced in v0.17.1 where
81`tracing-opentelemetry` could not be compiled with `default-features = false`.
82
83### Fixed
84
85- Compilation failure with `tracing-log` feature disabled ([#1949])
86
87[#1949]: https://github.com/tokio-rs/tracing/pull/1917
88[#1944]: https://github.com/tokio-rs/tracing/issues/1944
89
90# 0.17.1 (February 11, 2022) (YANKED)
91
92### Added
93
94- `OpenTelemetryLayer` can now add detailed location information to
95  forwarded events (defaults to on) ([#1911])
96- `OpenTelemetryLayer::with_event_location` to control whether source locations
97  are recorded ([#1911])
98### Changed
99
100- Avoid unnecessary allocations to improve performance when recording events
101  ([#1917])
102
103Thanks to @djc for contributing to this release!
104
105[#1917]: https://github.com/tokio-rs/tracing/pull/1917
106[#1911]: https://github.com/tokio-rs/tracing/pull/1911
107
108# 0.17.0 (February 3, 2022)
109
110### Breaking Changes
111
112- Upgrade to `v0.17.0` of `opentelemetry` (#1853)
113  For list of breaking changes in OpenTelemetry, see the
114  [v0.17.0 changelog](https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry/CHANGELOG.md#v0170).
115
116# 0.16.1 (October 23, 2021)
117
118### Breaking Changes
119
120- Upgrade to `v0.3.0` of `tracing-subscriber` ([#1677])
121  For list of breaking changes in `tracing-subscriber`, see the
122  [v0.3.0 changelog].
123
124### Added
125
126- `OpenTelemetrySpanExt::add_link` method for adding a link between a `tracing`
127  span and a provided OpenTelemetry `Context` ([#1516])
128
129Thanks to @LehMaxence for contributing to this release!
130
131[v0.3.0 changelog]: https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.0
132[#1516]: https://github.com/tokio-rs/tracing/pull/1516
133[#1677]: https://github.com/tokio-rs/tracing/pull/1677
134
135# 0.15.0 (August 7, 2021)
136
137### Breaking Changes
138
139- Upgrade to `v0.17.1` of `opentelemetry` (#1497)
140  For list of breaking changes in OpenTelemetry, see the
141  [v0.17.1 changelog](https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry/CHANGELOG.md#v0160).
142
143# 0.14.0 (July 9, 2021)
144
145### Breaking Changes
146
147- Upgrade to `v0.15.0` of `opentelemetry` ([#1441])
148  For list of breaking changes in OpenTelemetry, see the
149  [v0.14.0 changelog](https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry/CHANGELOG.md#v0140).
150
151### Added
152
153- Spans now include Opentelemetry `code.namespace`, `code.filepath`, and
154  `code.lineno` attributes ([#1411])
155
156### Changed
157
158- Improve performance by pre-allocating attribute `Vec`s ([#1327])
159
160Thanks to @Drevoed, @lilymara-onesignal, and @Folyd for contributing
161to this release!
162
163[#1441]: https://github.com/tokio-rs/tracing/pull/1441
164[#1411]: https://github.com/tokio-rs/tracing/pull/1411
165[#1327]: https://github.com/tokio-rs/tracing/pull/1327
166
167# 0.13.0 (May 15, 2021)
168
169### Breaking Changes
170
171- Upgrade to `v0.14.0` of `opentelemetry` (#1394)
172  For list of breaking changes in OpenTelemetry, see the
173  [v0.14.0 changelog](https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry/CHANGELOG.md#v0140).
174
175# 0.12.0 (March 31, 2021)
176
177### Breaking Changes
178
179- Upgrade to `v0.13.0` of `opentelemetry` (#1322)
180  For list of breaking changes in OpenTelemetry, see the
181  [v0.13.0 changelog](https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry/CHANGELOG.md#v0130).
182
183### Changed
184
185- Improve performance when tracked inactivity is disabled (#1315)
186
187# 0.11.0 (January 25, 2021)
188
189### Breaking Changes
190
191- Upgrade to `v0.12.0` of `opentelemetry` (#1200)
192  For list of breaking changes in OpenTelemetry, see the
193  [v0.12.0 changelog](https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry/CHANGELOG.md#v0120).
194
195# 0.10.0 (December 30, 2020)
196
197### Breaking Changes
198
199- Upgrade to `v0.11.0` of `opentelemetry` (#1161)
200  For list of breaking changes in OpenTelemetry, see the
201  [v0.11.0 changelog](https://github.com/open-telemetry/opentelemetry-rust/blob/master/opentelemetry/CHANGELOG.md#v0110).
202- Update `OpenTelemetrySpanExt::set_parent` to take a context by value as it is
203  now stored and propagated. (#1161)
204- Rename `PreSampledTracer::sampled_span_context` to
205  `PreSampledTracer::sampled_context` as it now returns a full otel context. (#1161)
206
207# 0.9.0 (November 13, 2020)
208
209### Added
210
211- Track busy/idle timings as attributes via `with_tracked_inactivity` (#1096)
212
213### Breaking Changes
214
215- Upgrade to `v0.10.0` of `opentelemetry` (#1049)
216  For list of breaking changes in OpenTelemetry, see the
217  [v0.10.0 changelog](https://github.com/open-telemetry/opentelemetry-rust/blob/master/opentelemetry/CHANGELOG.md#v0100).
218
219# 0.8.0 (October 13, 2020)
220
221### Added
222
223- Implement additional record types (bool, i64, u64) (#1007)
224
225### Breaking changes
226
227- Add `PreSampledTracer` interface, removes need to specify sampler (#962)
228
229### Fixed
230
231- Connect external traces (#956)
232- Assign default ids if missing (#1027)
233
234# 0.7.0 (August 14, 2020)
235
236### Breaking Changes
237
238- Upgrade to `v0.8.0` of `opentelemetry` (#932)
239  For list of breaking changes in OpenTelemetry, see the
240  [v0.8.0 changelog](https://github.com/open-telemetry/opentelemetry-rust/blob/master/CHANGELOG.md#v080).
241
242# 0.6.0 (August 4, 2020)
243
244### Breaking Changes
245
246- Upgrade to `v0.7.0` of `opentelemetry` (#867)
247  For list of breaking changes in OpenTelemetry, see the
248  [v0.7.0 changelog](https://github.com/open-telemetry/opentelemetry-rust/blob/master/CHANGELOG.md#v070).
249
250# 0.5.0 (June 2, 2020)
251
252### Added
253
254- Support `tracing-log` special values (#735)
255- Support `Span::follows_from` creating otel span links (#723)
256- Dynamic otel span names via `otel.name` field (#732)
257
258### Breaking Changes
259
260- Upgrade to `v0.6.0` of `opentelemetry` (#745)
261
262### Fixed
263
264- Filter out invalid parent contexts when building span contexts (#743)
265
266# 0.4.0 (May 12, 2020)
267
268### Added
269
270- `tracing_opentelemetry::layer()` method to construct a default layer.
271- `OpenTelemetryLayer::with_sampler` method to configure the opentelemetry
272  sampling behavior.
273- `OpenTelemetryLayer::new` method to configure both the tracer and sampler.
274
275### Breaking Changes
276
277- `OpenTelemetrySpanExt::set_parent` now accepts a reference to an extracted
278  parent `Context` instead of a `SpanContext` to match propagators.
279- `OpenTelemetrySpanExt::context` now returns a `Context` instead of a
280  `SpanContext` to match propagators.
281- `OpenTelemetryLayer::with_tracer` now takes `&self` as a parameter
282- Upgrade to `v0.5.0` of `opentelemetry`.
283
284### Fixed
285
286- Fixes bug where child spans were always marked as sampled
287
288# 0.3.1 (April 19, 2020)
289
290### Added
291
292- Change span status code to unknown on error event
293
294# 0.3.0 (April 5, 2020)
295
296### Added
297
298- Span extension for injecting and extracting `opentelemetry` span contexts
299  into `tracing` spans
300
301### Removed
302
303- Disabled the `metrics` feature of the opentelemetry as it is unused.
304
305# 0.2.0 (February 7, 2020)
306
307### Changed
308
309- Update `tracing-subscriber` to 0.2.0 stable
310- Update to `opentelemetry` 0.2.0
311