pub enum SpanKind {
Span,
Generation,
Event,
Agent,
Tool,
Chain,
Retriever,
Embedding,
Guardrail,
}Expand description
Type of an observation. Aligned with Langfuse’s ObservationType
enum so values cross-walk directly. See spec §4.1.
Variants§
Span
Generic span (chains, custom blocks).
Generation
LLM generation. Has a Some(generation) payload.
Event
Discrete event (no duration semantics).
Agent
Agent-loop span.
Tool
Tool execution.
Chain
Logical chain block.
Retriever
Retriever step.
Embedding
Embedding step.
Guardrail
Guardrail / safety check.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpanKind
impl<'de> Deserialize<'de> for SpanKind
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 Copy for SpanKind
impl Eq for SpanKind
impl StructuralPartialEq for SpanKind
Auto Trait Implementations§
impl Freeze for SpanKind
impl RefUnwindSafe for SpanKind
impl Send for SpanKind
impl Sync for SpanKind
impl Unpin for SpanKind
impl UnsafeUnpin for SpanKind
impl UnwindSafe for SpanKind
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