pub struct TraceContext {
pub trace_id: Annotated<TraceId>,
pub span_id: Annotated<SpanId>,
pub parent_span_id: Annotated<SpanId>,
pub op: Annotated<OperationType>,
pub status: Annotated<SpanStatus>,
pub exclusive_time: Annotated<f64>,
pub client_sample_rate: Annotated<f64>,
pub origin: Annotated<OriginType>,
pub sampled: Annotated<bool>,
pub data: Annotated<SpanData>,
pub other: Object<Value>,
}
Expand description
Trace context
Fields§
§trace_id: Annotated<TraceId>
The trace ID.
span_id: Annotated<SpanId>
The ID of the span.
parent_span_id: Annotated<SpanId>
The ID of the span enclosing this span.
op: Annotated<OperationType>
Span type (see OperationType
docs).
status: Annotated<SpanStatus>
Whether the trace failed or succeeded. Currently only used to indicate status of individual transactions.
exclusive_time: Annotated<f64>
The amount of time in milliseconds spent in this transaction span, excluding its immediate child spans.
client_sample_rate: Annotated<f64>
The client-side sample rate as reported in the envelope’s trace.sample_rate
header.
The server takes this field from envelope headers and writes it back into the event. Clients should not ever send this value.
origin: Annotated<OriginType>
The origin of the trace indicates what created the trace (see OriginType docs).
sampled: Annotated<bool>
Track whether the trace connected to this event has been sampled entirely.
This flag only applies to events with [Error
] type that have an associated dynamic sampling context.
data: Annotated<SpanData>
Data of the trace’s root span.
other: Object<Value>
Additional arbitrary fields for forwards compatibility.
Trait Implementations§
Source§impl Clone for TraceContext
impl Clone for TraceContext
Source§fn clone(&self) -> TraceContext
fn clone(&self) -> TraceContext
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TraceContext
impl Debug for TraceContext
Source§impl Default for TraceContext
impl Default for TraceContext
Source§fn default() -> TraceContext
fn default() -> TraceContext
Source§impl DefaultContext for TraceContext
impl DefaultContext for TraceContext
Source§fn default_key() -> &'static str
fn default_key() -> &'static str
Contexts
.