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_cloudflare::DatadogPropagator;
global::set_text_map_propagator(DatadogPropagator::default());
Implementations§
Trait Implementations§
Source§impl Clone for DatadogPropagator
impl Clone for DatadogPropagator
Source§fn clone(&self) -> DatadogPropagator
fn clone(&self) -> DatadogPropagator
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DatadogPropagator
impl Debug for DatadogPropagator
Source§impl Default for DatadogPropagator
impl Default for DatadogPropagator
Source§fn default() -> DatadogPropagator
fn default() -> DatadogPropagator
Returns the “default value” for a type. Read more
Source§impl TextMapPropagator for DatadogPropagator
impl TextMapPropagator for DatadogPropagator
Source§fn inject_context(&self, cx: &Context, injector: &mut dyn Injector)
fn inject_context(&self, cx: &Context, injector: &mut dyn Injector)
Source§fn fields(&self) -> FieldIter<'_>
fn fields(&self) -> FieldIter<'_>
Returns iter of fields used by
TextMapPropagator
Auto Trait Implementations§
impl Freeze for DatadogPropagator
impl RefUnwindSafe for DatadogPropagator
impl Send for DatadogPropagator
impl Sync for DatadogPropagator
impl Unpin for DatadogPropagator
impl UnwindSafe for DatadogPropagator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more