pub struct OtelSpan {
pub trace_id: Option<Option<Value>>,
pub span_id: Option<Option<Value>>,
pub parent_span_id: Option<Option<Value>>,
pub name: Option<Option<String>>,
pub kind: Option<Option<i32>>,
pub start_time_unix_nano: Option<Option<Value>>,
pub end_time_unix_nano: Option<Option<Value>>,
pub attributes: Option<Option<Vec<OtelAttribute>>>,
pub status: Option<Option<Value>>,
}Expand description
OtelSpan : Individual span representing a unit of work or operation
Fields§
§trace_id: Option<Option<Value>>Trace ID (16 bytes, hex-encoded string in JSON or Buffer in binary)
span_id: Option<Option<Value>>Span ID (8 bytes, hex-encoded string in JSON or Buffer in binary)
parent_span_id: Option<Option<Value>>Parent span ID if this is a child span
name: Option<Option<String>>Span name describing the operation
kind: Option<Option<i32>>Span kind (1=INTERNAL, 2=SERVER, 3=CLIENT, 4=PRODUCER, 5=CONSUMER)
start_time_unix_nano: Option<Option<Value>>Start time in nanoseconds since Unix epoch
end_time_unix_nano: Option<Option<Value>>End time in nanoseconds since Unix epoch
attributes: Option<Option<Vec<OtelAttribute>>>Span attributes including Langfuse-specific attributes (langfuse.observation.*)
status: Option<Option<Value>>Span status object
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OtelSpan
impl<'de> Deserialize<'de> for OtelSpan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for OtelSpan
Auto Trait Implementations§
impl Freeze for OtelSpan
impl RefUnwindSafe for OtelSpan
impl Send for OtelSpan
impl Sync for OtelSpan
impl Unpin for OtelSpan
impl UnsafeUnpin for OtelSpan
impl UnwindSafe for OtelSpan
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
Mutably borrows from an owned value. Read more