From 5d7a420a6fcc3a8fe1d023851c95e5a37453278e Mon Sep 17 00:00:00 2001 From: Angelo Date: Fri, 10 May 2024 16:43:46 +0200 Subject: [PATCH] Support opentelemetry 0.22 and release --- CHANGELOG.md | 13 ++++++++++++- Cargo.toml | 8 ++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 456b3a3..7d9218d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 --- +## [0.16.2] - 2024-05-10 + +### Added + +- Support for opentelemetry 0.22 +- `tracing_opentelemetry_0_22` feature +- `tracing_opentelemetry` is now an alias for the latest version of otel(so `tracing_opentelemetry_0_22`) + +--- + ## [0.16.1] - 2024-05-02 ### Changed @@ -348,7 +358,8 @@ The old API is still available but deprecated. It will be removed soon. -[Unreleased]: https://github.com/primait/bridge.rs/compare/0.16.1...HEAD +[Unreleased]: https://github.com/primait/bridge.rs/compare/0.16.2...HEAD +[0.16.2]: https://github.com/primait/bridge.rs/compare/0.16.1...0.16.2 [0.16.1]: https://github.com/primait/bridge.rs/compare/0.16.0...0.16.1 [0.16.0]: https://github.com/primait/bridge.rs/compare/0.15.1-rc.0...0.16.0 [0.15.1]: https://github.com/primait/bridge.rs/compare/0.15.0...0.15.1 diff --git a/Cargo.toml b/Cargo.toml index 0018669..3058a1a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT" name = "prima_bridge" readme = "README.md" repository = "https://github.com/primait/bridge.rs" -version = "0.16.1" +version = "0.16.2" # See https://github.com/rust-lang/rust/issues/107557 rust-version = "1.72" @@ -16,10 +16,11 @@ default = ["tracing_opentelemetry"] auth0 = ["rand", "redis", "jsonwebtoken", "jwks_client_rs", "chrono", "aes", "cbc", "dashmap", "tracing"] gzip = ["reqwest/gzip"] redis-tls = ["redis/tls", "redis/tokio-native-tls-comp"] -tracing_opentelemetry = [ "tracing_opentelemetry_0_21" ] +tracing_opentelemetry = [ "tracing_opentelemetry_0_22" ] tracing_opentelemetry_0_20 = ["_any_otel_version", "tracing", "tracing-opentelemetry_0_21_pkg", "opentelemetry_0_20_pkg"] tracing_opentelemetry_0_21 = ["_any_otel_version", "tracing", "tracing-opentelemetry_0_22_pkg", "opentelemetry_0_21_pkg", "opentelemetry_sdk_0_21_pkg"] +tracing_opentelemetry_0_22 = ["_any_otel_version", "tracing", "tracing-opentelemetry_0_23_pkg", "opentelemetry_0_22_pkg", "opentelemetry_sdk_0_22_pkg"] _any_otel_version = [] @@ -49,9 +50,12 @@ http = "1.0.0" opentelemetry_0_20_pkg = { package = "opentelemetry", version = "0.20", optional = true } opentelemetry_0_21_pkg = { package = "opentelemetry", version = "0.21", optional = true } +opentelemetry_0_22_pkg = { package = "opentelemetry", version = "0.22", optional = true } opentelemetry_sdk_0_21_pkg = { package = "opentelemetry_sdk", version = "0.21", optional = true } +opentelemetry_sdk_0_22_pkg = { package = "opentelemetry_sdk", version = "0.22", optional = true } tracing-opentelemetry_0_21_pkg = { package = "tracing-opentelemetry", version = "0.21", optional = true } tracing-opentelemetry_0_22_pkg = { package = "tracing-opentelemetry", version = "0.22", optional = true } +tracing-opentelemetry_0_23_pkg = { package = "tracing-opentelemetry", version = "0.23", optional = true } [dev-dependencies] flate2 = "1.0"