Expand description
Wire types for the Langfuse ingestion API.
Corresponds to POST /api/public/ingestion. The request body is { "batch": [ <event>, ... ] },
where each event is an envelope: { id, type, timestamp, body }.
- The envelope
idis used for deduplication (unique per request). body.idis the real trace / observation id (same id with different envelope id = update).- All fields use camelCase (
#[serde(rename_all = "camelCase")]).
Data model mirrors https://langfuse.com/docs/observability/data-model.
We only cover the event types and fields needed for ingestion; the full Langfuse
schema is wider.
Unused fields are omitted (skip_serializing_if = "Option::is_none").
Structs§
- Ingestion
Batch - The body of an ingestion request.
- Ingestion
Error - A single failure result. Fields are intentionally lenient — only used for diagnostic logging; unknown fields are ignored.
- Ingestion
Event - A single event envelope.
typeis the oneOf discriminator;bodyvaries by type. - Ingestion
Response - Response body for the ingestion endpoint.
- Ingestion
Success - A single successful ingestion result.
- Observation
Body - Body of an observation (generation / span).
- Trace
Body - Body for a trace (shared by
trace-createand update).
Enums§
- Event
Kind - Discriminant for ingestion event types.
- Observation
Level - The level of an observation, determining UI state coloring and filtering.