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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
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