From 6752895ae416a03960853bf2a0f8cece89ff74c3 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Fri, 1 Jul 2022 11:00:49 -0700 Subject: [PATCH] opentelemetry: prepare to release v0.17.4 (#2202) # 0.17.4 (July 1, 2022) This release adds optional support for recording `std::error::Error`s using OpenTelemetry's [semantic conventions for exceptions][exn-semconv]. ### Added - `Layer::with_exception_fields` to enable emitting `exception.message` and `exception.backtrace` semantic-convention fields when an `Error` is recorded as a span or event field ([#2135]) - `Layer::with_exception_field_propagation` to enable setting `exception.message` and `exception.backtrace` semantic-convention fields on the current span when an event with an `Error` field is recorded ([#2135]) Thanks to @lilymara-onesignal for contributing to this release! [thread-semconv]: https://opentelemetry.io/docs/reference/specification/trace/semantic_conventions/exceptions/ [#2135]: https://github.com/tokio-rs/tracing/pull/2135 --- tracing-opentelemetry/CHANGELOG.md | 19 +++++++++++++++++++ tracing-opentelemetry/Cargo.toml | 2 +- tracing-opentelemetry/README.md | 4 ++-- tracing-opentelemetry/src/lib.rs | 2 +- 4 files changed, 23 insertions(+), 4 deletions(-) diff --git a/tracing-opentelemetry/CHANGELOG.md b/tracing-opentelemetry/CHANGELOG.md index 6bb1da3b5f..6fb43d55db 100644 --- a/tracing-opentelemetry/CHANGELOG.md +++ b/tracing-opentelemetry/CHANGELOG.md @@ -1,3 +1,22 @@ +# 0.17.4 (July 1, 2022) + +This release adds optional support for recording `std::error::Error`s using +[OpenTelemetry's semantic conventions for exceptions][exn-semconv]. + +### Added + +- `Layer::with_exception_fields` to enable emitting `exception.message` and + `exception.backtrace` semantic-convention fields when an `Error` is recorded + as a span or event field ([#2135]) +- `Layer::with_exception_field_propagation` to enable setting `exception.message` and + `exception.backtrace` semantic-convention fields on the current span when an + event with an `Error` field is recorded ([#2135]) + +Thanks to @lilymara-onesignal for contributing to this release! + +[thread-semconv]: https://opentelemetry.io/docs/reference/specification/trace/semantic_conventions/exceptions/ +[#2135]: https://github.com/tokio-rs/tracing/pull/2135 + # 0.17.3 (June 7, 2022) This release adds support for emitting thread names and IDs to OpenTelemetry, as diff --git a/tracing-opentelemetry/Cargo.toml b/tracing-opentelemetry/Cargo.toml index 2aa9e1ad69..1781eb99f3 100644 --- a/tracing-opentelemetry/Cargo.toml +++ b/tracing-opentelemetry/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tracing-opentelemetry" -version = "0.17.3" +version = "0.17.4" authors = [ "Julian Tescher ", "Tokio Contributors " diff --git a/tracing-opentelemetry/README.md b/tracing-opentelemetry/README.md index d17c4ce6fa..6640754483 100644 --- a/tracing-opentelemetry/README.md +++ b/tracing-opentelemetry/README.md @@ -17,9 +17,9 @@ Utilities for adding [OpenTelemetry] interoperability to [`tracing`]. [Documentation][docs-url] | [Chat][discord-url] [crates-badge]: https://img.shields.io/crates/v/tracing-opentelemetry.svg -[crates-url]: https://crates.io/crates/tracing-opentelemetry/0.17.3 +[crates-url]: https://crates.io/crates/tracing-opentelemetry/0.17.4 [docs-badge]: https://docs.rs/tracing-opentelemetry/badge.svg -[docs-url]: https://docs.rs/tracing-opentelemetry/0.17.3/tracing_opentelemetry +[docs-url]: https://docs.rs/tracing-opentelemetry/0.17.4/tracing_opentelemetry [docs-master-badge]: https://img.shields.io/badge/docs-master-blue [docs-master-url]: https://tracing-rs.netlify.com/tracing_opentelemetry [mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg diff --git a/tracing-opentelemetry/src/lib.rs b/tracing-opentelemetry/src/lib.rs index f493d5c2d6..872afc8a44 100644 --- a/tracing-opentelemetry/src/lib.rs +++ b/tracing-opentelemetry/src/lib.rs @@ -92,7 +92,7 @@ //! #![deny(unreachable_pub)] #![cfg_attr(test, deny(warnings))] -#![doc(html_root_url = "https://docs.rs/tracing-opentelemetry/0.17.3")] +#![doc(html_root_url = "https://docs.rs/tracing-opentelemetry/0.17.4")] #![doc( html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo-type.png", issue_tracker_base_url = "https://github.com/tokio-rs/tracing/issues/"