Skip to content

Commit

Permalink
Release v0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
asaaki committed Feb 15, 2022
1 parent ba82268 commit 7efd91e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 7 deletions.
28 changes: 27 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "opentelemetry-tide"
version = "0.11.0"
version = "0.12.0"
authors = [
"Christoph Grabo <asaaki@mannaz.cc>",
"The opentelemetry-tide Contributors"
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```

Expand All @@ -92,11 +92,11 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

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")];

Expand Down

0 comments on commit 7efd91e

Please sign in to comment.