pub enum ObservationType {
Span,
Generation,
Event,
Embedding,
Agent,
Tool,
Chain,
Retriever,
Evaluator,
Guardrail,
}Expand description
The 10 observation types supported by Langfuse.
Variants§
Span
A generic span representing a unit of work.
Generation
An LLM generation (completion, embedding request).
Event
A discrete event within a trace.
Embedding
An embedding operation.
Agent
An AI agent.
Tool
A tool invocation.
Chain
A processing chain.
Retriever
A retrieval operation (e.g. RAG).
Evaluator
An evaluation step.
Guardrail
A guardrail check.
Trait Implementations§
Source§impl Clone for ObservationType
impl Clone for ObservationType
Source§fn clone(&self) -> ObservationType
fn clone(&self) -> ObservationType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObservationType
impl Debug for ObservationType
Source§impl<'de> Deserialize<'de> for ObservationType
impl<'de> Deserialize<'de> for ObservationType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ObservationType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ObservationType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ObservationType
impl PartialEq for ObservationType
Source§impl Serialize for ObservationType
impl Serialize for ObservationType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for ObservationType
impl Eq for ObservationType
impl StructuralPartialEq for ObservationType
Auto Trait Implementations§
impl Freeze for ObservationType
impl RefUnwindSafe for ObservationType
impl Send for ObservationType
impl Sync for ObservationType
impl Unpin for ObservationType
impl UnsafeUnpin for ObservationType
impl UnwindSafe for ObservationType
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