Added
- Derive
CloneforB3Propagator,SamplingResult, andSpanBuilder - Ability to configure the span id / trace id generator
- impl
From<T>for commonKeyandValuetypes - Add global
tracermethod - Add
ResourceAPI - Add
ContextAPI - Add
CorrelationsAPI - Add
HttpTextCompositePropagatorfor composingHttpTextPropagators - Add
GlobalPropagatorfor globally configuring a propagator - Add
TraceContextExtto provide methods for working with trace data in a context - Expose
EvictedQueueconstructor
Changed
- Ensure that impls of
SpanareSendandSyncwhen used inglobal - Changed
KeyandValuemethod signatures to removeCowreferences - Tracer's
startnow uses the implicit current context instead of an explicit span context.
start_with_contextmay be used to specify a context if desired. with_spannow 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
&strhas been renamed toin_span, both of which now yield a context to the provided closure.- Tracer's
get_active_spannow accepts a closure - The
Instrumenttrait has been renamed toFutureExtto avoid clashing with metric instruments,
and instead accepts contexts viawith_context. - Span's
get_contextmethod has been renamed tospan_contextto avoid ambiguity. HttpTextPropagatorsinject the current context instead of an explicit span context. The context
can be specified withinject_context.SpanData'scontexthas been renamed tospan_context
Fixed
- Update the probability sampler to match the spec
- Rename
Traceparentheader totraceparent
Removed
TracerGenericsmethods have been folded in to theTracertrait so it is longer needed- Tracer's
mark_span_as_inactivehas been removed - Exporters no longer require an
as_anymethod - Span's
mark_as_active,mark_as_inactive, andas_anyhave been removed