Releases: open-telemetry/opentelemetry-rust
Releases · open-telemetry/opentelemetry-rust
v0.10.0
Added
- Add support for baggage metadata #287
Changed
- Remove
apiprefix from modules #305 - Move
mark_as_active_spanandget_active_spanfunctions into trace module #310 - Revert renaming of
SpanContexttoSpanReference#299 - Default trace propagator is now a no-op #329
- Return references to span contexts instead of clones #325
- Update exporter errors to be
Box<dyn Error + Send + Sync + 'static>#284 - Rename
GenericProvidertoGenericTracerProvider#313 - Reduce
SpanStatusenum toOk,Error, andUnsetvariants #315 - update B3 propagator to more closely match spec #319
- Export missing pub global trace types #313
- Ensure kv array values are homogeneous #333
- Implement
Displaytrait forKeyandValuetypes #353 - Move
SpanProcessortrait intosdkmodule #334 - Ensure
is_recordingisfalseand span is no-op afterend#341 - Move binary propagator and base64 format to contrib #343
- Ensure metrics noop types go through constructors #345
- Change
ExportResultto usestd::result::Result#347 - Change
SpanExporter::exportto take&mut selfinstead of&self#350 - Add MSRV 1.42.0 #296
Fixed
- Fix parent based sampling #354
Removed
v0.9.1
v0.9.0
Added
- Add resource detector #174
- Add
fieldsmethod to TextMapFormat #178 - Add support for
tracestateinTraceContextPropagator#191 - Propagate valid span context in noop tracer #197
- Add end_with_timestamp method for trace span #199
- Add ID methods for hex and byte array formatting #200
- Add AWS X-Ray ID Generator #201
- AWS X-Ray Trace Context Propagator #202
- Add instrumentation library information to spans #207
- Add keys method to extractors #209
- Add
TraceStatetoSpanContext#217 - Add
from_envconfig option forBatchSpanProcessor#228 - Add pipeline uninstall mechanism to shut down trace pipelines #229
Changed
- Re-write metrics sdk to be spec compliant #179
- Rename
Sampler::ProbabilitytoSampler::TraceIdRatioBased#188 - Rename
HTTPTextPropagatortoTextMapPropagator#192 - Ensure extractors are case insensitive #193
- Rename
ProvidertoTracerProvider#206 - Rename
CorrelationContextintoBaggage#208 - Pipeline builder for stdout trace exporter #224
- Switch to async exporters #232
- Allow
ShouldSampleimplementation to modify trace state #237 - Ensure context guard is
!Send#239 - Ensure trace noop structs use
newconstructor #240 - Switch to w3c
baggageheader #246 - Move trace module imports from
apitoapi::trace#255 - Update
tonicfeature to use version0.3.x#258 - Update exporters to receive owned span data #264
- Move propagators to
sdk::propagation#266 - Rename SpanContext to SpanReference #270
- Rename
SamplingDecision'sNotRecord,RecordandRecordAndSampledto
DropRecordOnlyandRecordAndSample#247
v0.8.0
v0.7.0
Added
- New
ParentOrElsesampler for fallback logic if parent is not sampled. #128 - Attributes can now have array values #146
- Added
record_exceptionandrecord_exception_with_stacktracemethods toSpan#152
Changed
- Update sampler types #128
Alwaysis nowAlwaysOn.Neveris nowAlwaysOff.Probabilitynow ignores parent
sampled state.
base64andbinary_propagatorhave been moved toexperimentalmodule. #134Correlation-Contextheader has been updated tootcorrelations#145B3Propagatorhas been updated to more closely follow the spec #148
v0.6.0
v0.5.0
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
v0.4.0
Added
- New async batch span processor
- New stdout exporter
- Add
trace_idtoSpanBuilder
Changed
- Add
attributestoEvents. - Update
Span'sadd_eventandadd_event_with_timestampto accept attributes. - Record log fields in jaeger exporter
- Properly export span kind in jaeger exporter
- Add support for
Links - Add
status_messagetoSpanandSpanData - Rename
SpanStatustoStatusCode - Update
EvictedQueueinternals from LIFO to FIFO - Switch span attributes to
EvictedHashMap
Fixed
- Call
shutdowncorrectly 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