|
1 | 1 | # Changelog |
2 | 2 |
|
| 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 | + |
3 | 44 | ## [v0.4.0](https://github.com/open-telemetry/opentelemetry-rust/compare/v0.3.0...v0.4.0) |
4 | 45 |
|
5 | 46 | ### Added |
|
0 commit comments