Expand description
Langfuse integration — uploads an AgentEvent stream as Langfuse traces, generations,
and spans.
Module layout:
Re-exports§
pub use ingest::IngestConfig;pub use ingest::LangfuseIngest;pub use observer::LangfuseObserver;pub use projector::TraceProjector;
Modules§
- ingest
- Langfuse batch uploader.
- model
- Wire types for the Langfuse ingestion API.
- observer
LangfuseObserverreports each session’sAgentEventstream to Langfuse.- projector
- Translation of
AgentEventinto Langfuse ingestion events.
Structs§
- Langfuse
Setup - Parsed Langfuse upload parameters (credentials already validated as non-empty).
Constants§
- DEFAULT_
FLUSH_ INTERVAL - Default periodic flush interval.
- DEFAULT_
HOST - Default Langfuse host.
- DEFAULT_
MAX_ BATCH - Default maximum number of events per batch.
- DEFAULT_
QUEUE_ CAPACITY - Inbound channel capacity (backpressure boundary; drops when full, does not backpressure the main loop).
Functions§
- build_
observer - Starts the reporter with a
LangfuseSetupand an already-builtHttpStack, returning an observer.