Struct relay_event_schema::protocol::TraceContext
source · 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
.source§fn from_context(context: Context) -> Option<Self>
fn from_context(context: Context) -> Option<Self>
source§fn cast(context: &Context) -> Option<&Self>
fn cast(context: &Context) -> Option<&Self>
source§fn cast_mut(context: &mut Context) -> Option<&mut Self>
fn cast_mut(context: &mut Context) -> Option<&mut Self>
source§fn into_context(self) -> Context
fn into_context(self) -> Context
source§impl Empty for TraceContext
impl Empty for TraceContext
source§impl FromValue for TraceContext
impl FromValue for TraceContext
source§fn from_value(__value: Annotated<Value>) -> Annotated<Self>
fn from_value(__value: Annotated<Value>) -> Annotated<Self>
source§impl IntoValue for TraceContext
impl IntoValue for TraceContext
source§fn into_value(self) -> Value
fn into_value(self) -> Value
source§fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
source§fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
§fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
source§impl PartialEq for TraceContext
impl PartialEq for TraceContext
source§impl ProcessValue for TraceContext
impl ProcessValue for TraceContext
source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
source§fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
source§fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
impl StructuralPartialEq for TraceContext
Auto Trait Implementations§
impl Freeze for TraceContext
impl RefUnwindSafe for TraceContext
impl Send for TraceContext
impl Sync for TraceContext
impl Unpin for TraceContext
impl UnwindSafe for TraceContext
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)