From 7efd91e6d637205382a9e992081ddfd6f57371ec Mon Sep 17 00:00:00 2001 From: Christoph Grabo Date: Tue, 15 Feb 2022 18:14:00 +0100 Subject: [PATCH] Release v0.12.0 --- CHANGELOG.md | 28 +++++++++++++++++++++++++++- Cargo.toml | 2 +- README.md | 10 +++++----- 3 files changed, 33 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b5e74d8..731ba42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,31 @@ Additional changes to original format: ## [Unreleased] +## [0.12.0] - 2022-02-15 +### Changed +- Update dependencies and fix breaking changes + + ```toml + opentelemetry = "0.17" + opentelemetry-prometheus = { version = "0.10", optional = true } + opentelemetry-semantic-conventions = "0.9" + prometheus = { version = "0.13", optional = true } + ``` + + Due to lifetime and thread-safety issues (non-Send across await point), + a switch to `BoxedTracer` was necessary. Since most examples and implementation do that, + this crate gets in line with the others now. +- Ensure that docs are generated for both middlewares (`#[cfg(any(…, doc))]`) + +### Added +- More default methods to set up the middlewares (via `opentelemetry_tide::TideExt`): + + - `.with_default_metrics_middleware()` + - `.with_default_tracing_middleware()` + - `.with_default_middlewares()` + + This should avoid the need to pass in a tracer for common scenarios. + ## [0.11.0] - 2021-10-03 — _German Unity Edition_ ### Changed - Update dependencies @@ -188,7 +213,8 @@ _(not released to crates.io)_ ## [0.1.0] - 2020-08-01 **Initial release** -[Unreleased]: https://github.com/asaaki/opentelemetry-tide/compare/v0.11.0...HEAD +[Unreleased]: https://github.com/asaaki/opentelemetry-tide/compare/v0.12.0...HEAD +[0.11.0]: https://github.com/asaaki/opentelemetry-tide/compare/v0.11.0...v0.12.0 [0.11.0]: https://github.com/asaaki/opentelemetry-tide/compare/v0.10.0...v0.11.0 [0.10.0]: https://github.com/asaaki/opentelemetry-tide/compare/v0.9.0...v0.10.0 [0.9.0]: https://github.com/asaaki/opentelemetry-tide/compare/v0.8.0...v0.9.0 diff --git a/Cargo.toml b/Cargo.toml index 7e80560..9ca95ee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "opentelemetry-tide" -version = "0.11.0" +version = "0.12.0" authors = [ "Christoph Grabo ", "The opentelemetry-tide Contributors" diff --git a/README.md b/README.md index dfc0505..ec63af1 100644 --- a/README.md +++ b/README.md @@ -71,9 +71,9 @@ curl http://localhost:3000/metrics [dependencies] async-std = { version = "1.10", features = ["attributes"] } -opentelemetry = { version = "0.16.0", features = ["rt-async-std"] } -opentelemetry-jaeger = { version = "0.15.0", features = ["rt-async-std"] } -opentelemetry-tide = "0.10" +opentelemetry = { version = "0.17.0", features = ["rt-async-std"] } +opentelemetry-jaeger = { version = "0.16.0", features = ["rt-async-std"] } +opentelemetry-tide = "0.12" tide = "0.16" ``` @@ -92,11 +92,11 @@ async fn main() -> Result<(), Box> { let tags = [resource::SERVICE_VERSION.string(VERSION)]; - let tracer = opentelemetry_jaeger::new_pipeline() - .with_service_name("example-server") + let _tracer = opentelemetry_jaeger::new_pipeline() .with_tags(tags.iter().map(ToOwned::to_owned)) .install_batch(runtime::AsyncStd) .expect("pipeline install failure"); + let tracer = global::tracer("example-server"); let metrics_kvs = vec![KeyValue::new("K", "V")];