Skip to content

Commit 638e1bc

Browse files
authored
Prepare for 0.5.0 release (#110)
1 parent ef4e033 commit 638e1bc

File tree

6 files changed

+68
-5
lines changed

6 files changed

+68
-5
lines changed

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
11
# Changelog
22

3+
## [v0.5.0](https://github.com/open-telemetry/opentelemetry-rust/compare/v0.4.0...v0.5.0)
4+
5+
### Added
6+
- Derive `Clone` for `B3Propagator`, `SamplingResult`, and `SpanBuilder`
7+
- Ability to configure the span id / trace id generator
8+
- impl `From<T>` for common `Key` and `Value` types
9+
- Add global `tracer` method
10+
- Add `Resource` API
11+
- Add `Context` API
12+
- Add `Correlations` API
13+
- Add `HttpTextCompositePropagator` for composing `HttpTextPropagator`s
14+
- Add `GlobalPropagator` for globally configuring a propagator
15+
- Add `TraceContextExt` to provide methods for working with trace data in a context
16+
- Expose `EvictedQueue` constructor
17+
18+
### Changed
19+
- Ensure that impls of `Span` are `Send` and `Sync` when used in `global`
20+
- Changed `Key` and `Value` method signatures to remove `Cow` references
21+
- Tracer's `start` now uses the implicit current context instead of an explicit span context.
22+
`start_with_context` may be used to specify a context if desired.
23+
- `with_span` now accepts a span for naming consistency and managing the active state of a more
24+
complex span (likely produced by a builder), and the previous functionality that accepts a
25+
`&str` has been renamed to `in_span`, both of which now yield a context to the provided closure.
26+
- Tracer's `get_active_span` now accepts a closure
27+
- The `Instrument` trait has been renamed to `FutureExt` to avoid clashing with metric instruments,
28+
and instead accepts contexts via `with_context`.
29+
- Span's `get_context` method has been renamed to `span_context` to avoid ambiguity.
30+
- `HttpTextPropagators` inject the current context instead of an explicit span context. The context
31+
can be specified with `inject_context`.
32+
- `SpanData`'s `context` has been renamed to `span_context`
33+
34+
### Fixed
35+
- Update the probability sampler to match the spec
36+
- Rename `Traceparent` header to `traceparent`
37+
38+
### Removed
39+
- `TracerGenerics` methods have been folded in to the `Tracer` trait so it is longer needed
40+
- Tracer's `mark_span_as_inactive` has been removed
41+
- Exporters no longer require an `as_any` method
42+
- Span's `mark_as_active`, `mark_as_inactive`, and `as_any` have been removed
43+
344
## [v0.4.0](https://github.com/open-telemetry/opentelemetry-rust/compare/v0.3.0...v0.4.0)
445

546
### Added

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "opentelemetry"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
authors = ["OpenTelemetry Authors <[email protected]>"]
55
description = "A metrics collection and distributed tracing framework"
66
homepage = "https://github.com/open-telemetry/opentelemetry-rust"

opentelemetry-jaeger/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## v0.4.0
4+
5+
### Added
6+
- Support for resource attributes
7+
8+
### Changed
9+
- Update to opentelemetry v0.5.0
10+
11+
### Removed
12+
- `as_any` method on exporter
13+
314
## v0.3.0
415

516
### Changed

opentelemetry-jaeger/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "opentelemetry-jaeger"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
authors = ["OpenTelemetry Authors <[email protected]>"]
55
description = "Jaeger exporter for OpenTelemetry"
66
homepage = "https://github.com/open-telemetry/opentelemetry-rust"
@@ -16,7 +16,7 @@ license = "Apache-2.0"
1616
edition = "2018"
1717

1818
[dependencies]
19-
opentelemetry = { version = "0.4.0", path = ".." }
19+
opentelemetry = { version = "0.5.0", path = ".." }
2020
reqwest = { version = "0.10.1", features = ["blocking"], optional = true }
2121
thrift = "0.13.0"
2222

opentelemetry-zipkin/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## v0.2.0
4+
5+
### Added
6+
- Support for resource attributes
7+
8+
### Changed
9+
- Update to opentelemetry v0.5.0
10+
11+
### Removed
12+
- `as_any` method on exporter
13+
314
## v0.1.0
415

516
### Changed

opentelemetry-zipkin/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "opentelemetry-zipkin"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
authors = ["OpenTelemetry Authors <[email protected]>"]
55
description = "Zipkin exporter for OpenTelemetry"
66
homepage = "https://github.com/open-telemetry/opentelemetry-rust"
@@ -16,7 +16,7 @@ license = "Apache-2.0"
1616
edition = "2018"
1717

1818
[dependencies]
19-
opentelemetry = { version = "0.4.0", path = ".." }
19+
opentelemetry = { version = "0.5.0", path = ".." }
2020
reqwest = { version = "0.10.4", features = ["blocking"] }
2121
serde_json = "1.0"
2222
serde = { version = "1.0.104", features = ["derive"] }

0 commit comments

Comments
 (0)