Skip to main content

Module models

Module models 

Source
Expand description

Data models for the Langfuse-compatible observability engine.

Defines Trace, Observation, Session, and supporting types that form the core telemetry data model. All types are serializable for API responses and storage.

Structs§

CaptureConfig
Configuration for LLM prompt/response capture.
EnrichedSession
Enriched session with aggregated data.
ModelStats
Per-model aggregated statistics.
Observation
Observation represents a single unit of work within a trace.
Session
Session groups multiple traces from the same user interaction.
SummaryStats
Overall summary statistics.
TokenUsage
Token usage statistics for an LLM call.
Trace
Trace represents a single graph invocation or request lifecycle.

Enums§

ObservationLevel
Severity level for observations.
ObservationType
Type of observation within a trace.

Type Aliases§

Id
Unique identifier for a trace or observation.