Skip to navigation

Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub struct W3cTraceContext { /* private fields */ }

Validated W3C Trace Context retained internally across local stack forks.

Implementations

impl W3cTraceContext

impl W3cTraceContext

new

pub fn new(
    traceparent: impl Into<String>,
    tracestate: Option<String>,
) -> Result<Self>

Validate incoming W3C propagation headers.

traceparent

pub fn traceparent(&self) -> &str

Return the normalized traceparent header.

tracestate

pub fn tracestate(&self) -> Option<&str>

Return the normalized tracestate header.

span_context

pub fn span_context(&self) -> Option<SpanContext>

Decode the retained OpenTelemetry span context.

Trait Implementations

impl Clone for W3cTraceContext

impl Clone for W3cTraceContext

clone

fn clone(&self) -> W3cTraceContext

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for W3cTraceContext

impl Debug for W3cTraceContext

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl PartialEq for W3cTraceContext

impl PartialEq for W3cTraceContext

eq

fn eq(&self, other: &W3cTraceContext) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Eq for W3cTraceContext

impl Eq for W3cTraceContext

impl StructuralPartialEq for W3cTraceContext

impl StructuralPartialEq for W3cTraceContext