Releases: open-telemetry/opentelemetry-rust
Releases · open-telemetry/opentelemetry-rust
v0.7.0
Added
- New
ParentOrElse
sampler for fallback logic if parent is not sampled. #128 - Attributes can now have array values #146
- Added
record_exception
andrecord_exception_with_stacktrace
methods toSpan
#152
Changed
- Update sampler types #128
Always
is nowAlwaysOn
.Never
is nowAlwaysOff
.Probability
now ignores parent
sampled state.
base64
andbinary_propagator
have been moved toexperimental
module. #134Correlation-Context
header has been updated tootcorrelations
#145B3Propagator
has been updated to more closely follow the spec #148
v0.6.0
v0.5.0
Added
- Derive
Clone
forB3Propagator
,SamplingResult
, andSpanBuilder
- Ability to configure the span id / trace id generator
- impl
From<T>
for commonKey
andValue
types - Add global
tracer
method - Add
Resource
API - Add
Context
API - Add
Correlations
API - Add
HttpTextCompositePropagator
for composingHttpTextPropagator
s - Add
GlobalPropagator
for globally configuring a propagator - Add
TraceContextExt
to provide methods for working with trace data in a context - Expose
EvictedQueue
constructor
Changed
- Ensure that impls of
Span
areSend
andSync
when used inglobal
- Changed
Key
andValue
method signatures to removeCow
references - Tracer's
start
now uses the implicit current context instead of an explicit span context.
start_with_context
may be used to specify a context if desired. with_span
now accepts a span for naming consistency and managing the active state of a more
complex span (likely produced by a builder), and the previous functionality that accepts a
&str
has been renamed toin_span
, both of which now yield a context to the provided closure.- Tracer's
get_active_span
now accepts a closure - The
Instrument
trait has been renamed toFutureExt
to avoid clashing with metric instruments,
and instead accepts contexts viawith_context
. - Span's
get_context
method has been renamed tospan_context
to avoid ambiguity. HttpTextPropagators
inject the current context instead of an explicit span context. The context
can be specified withinject_context
.SpanData
'scontext
has been renamed tospan_context
Fixed
- Update the probability sampler to match the spec
- Rename
Traceparent
header totraceparent
Removed
TracerGenerics
methods have been folded in to theTracer
trait so it is longer needed- Tracer's
mark_span_as_inactive
has been removed - Exporters no longer require an
as_any
method - Span's
mark_as_active
,mark_as_inactive
, andas_any
have been removed
v0.4.0
Added
- New async batch span processor
- New stdout exporter
- Add
trace_id
toSpanBuilder
Changed
- Add
attributes
toEvent
s. - Update
Span
'sadd_event
andadd_event_with_timestamp
to accept attributes. - Record log fields in jaeger exporter
- Properly export span kind in jaeger exporter
- Add support for
Link
s - Add
status_message
toSpan
andSpanData
- Rename
SpanStatus
toStatusCode
- Update
EvictedQueue
internals from LIFO to FIFO - Switch span attributes to
EvictedHashMap
Fixed
- Call
shutdown
correctly when span processors and exporters are dropped
v0.3.0
v0.2.0
Added
- Make trace and metrics features optional
- ExportResult as specified in the specification
- Add Futures compatibility API
- Added serde serialise support to SpanData
- Separate OpenTelemetry Jaeger crate
Changed
- Rename HttpTraceContextPropagator to TraceContextPropagator
- Rename HttpB3Propagator to B3Propagator
- Switch to Apache 2 license
- Resolve agent addresses to allow non-static IP
- Remove tracer name prefix from span name
Removed
- Remove add_link from spans