Struct opentelemetry_datadog::DatadogPropagator
source · [−]pub struct DatadogPropagator { /* private fields */ }
Expand description
Extracts and injects SpanContext
s into Extractor
s or Injector
s using Datadog’s header format.
The Datadog header format does not have an explicit spec, but can be divined from the client libraries, such as dd-trace-go
Example
use opentelemetry::global;
use opentelemetry_datadog::DatadogPropagator;
global::set_text_map_propagator(DatadogPropagator::default());
Implementations
Trait Implementations
sourceimpl Clone for DatadogPropagator
impl Clone for DatadogPropagator
sourcefn clone(&self) -> DatadogPropagator
fn clone(&self) -> DatadogPropagator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DatadogPropagator
impl Debug for DatadogPropagator
sourceimpl Default for DatadogPropagator
impl Default for DatadogPropagator
sourcefn default() -> DatadogPropagator
fn default() -> DatadogPropagator
Returns the “default value” for a type. Read more
sourceimpl TextMapPropagator for DatadogPropagator
impl TextMapPropagator for DatadogPropagator
sourcefn inject_context(&self, cx: &Context, injector: &mut dyn Injector)
fn inject_context(&self, cx: &Context, injector: &mut dyn Injector)
sourcefn extract_with_context(&self, cx: &Context, extractor: &dyn Extractor) -> Context
fn extract_with_context(&self, cx: &Context, extractor: &dyn Extractor) -> Context
fn inject(&self, injector: &mut dyn Injector)
fn inject(&self, injector: &mut dyn Injector)
Auto Trait Implementations
impl RefUnwindSafe for DatadogPropagator
impl Send for DatadogPropagator
impl Sync for DatadogPropagator
impl Unpin for DatadogPropagator
impl UnwindSafe for DatadogPropagator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> FutureExt for T
impl<T> FutureExt for T
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more