Struct opentelemetry_aws::trace::XrayPropagator
source · [−]pub struct XrayPropagator { /* private fields */ }
Expand description
Extracts and injects SpanContext
s into Extractor
s or Injector
s 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
sourceimpl XrayPropagator
impl XrayPropagator
Trait Implementations
sourceimpl Clone for XrayPropagator
impl Clone for XrayPropagator
sourcefn clone(&self) -> XrayPropagator
fn clone(&self) -> XrayPropagator
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for XrayPropagator
impl Debug for XrayPropagator
sourceimpl Default for XrayPropagator
impl Default for XrayPropagator
sourcefn default() -> XrayPropagator
fn default() -> XrayPropagator
Returns the “default value” for a type. Read more
sourceimpl TextMapPropagator for XrayPropagator
impl TextMapPropagator for XrayPropagator
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 XrayPropagator
impl Send for XrayPropagator
impl Sync for XrayPropagator
impl Unpin for XrayPropagator
impl UnwindSafe for XrayPropagator
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