pub struct XrayPropagator { /* private fields */ }
Expand description

Extracts and injects SpanContexts into Extractors or Injectors using AWS X-Ray header format.

Extracts and injects values to/from the x-amzn-trace-id header. Converting between OpenTelemetry SpanContext and X-Ray Trace format.

For details on the x-amzn-trace-id header see the AWS X-Ray Docs.

Example

use opentelemetry::global;
use opentelemetry_aws::trace::XrayPropagator;

global::set_text_map_propagator(XrayPropagator::default());

Implementations

Creates a new XrayTraceContextPropagator.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Properly encodes the values of the Context and injects them into the Injector. Read more
Retrieves encoded data using the provided [Extractor]. If no data for this format was retrieved OR if the retrieved data is invalid, then the given Context is returned. Read more
Returns iter of fields used by [TextMapPropagator] Read more
Properly encodes the values of the current Context and injects them into the Injector. Read more
Retrieves encoded data using the provided [Extractor]. If no data for this format was retrieved OR if the retrieved data is invalid, then the current Context is returned. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.