pub struct IngestionEvent {
pub id: String,
pub kind: EventKind,
pub timestamp: String,
pub body: Value,
}Expand description
A single event envelope. type is the oneOf discriminator; body varies by type.
Uses a flat kind (mapped to "type") + generic body: serde_json::Value instead of
an enum variant per type: the projector constructs the body JSON as needed, and the
model layer only wraps the envelope. This way, adding new fields does not require
changes to the model layer.
Fields§
§id: StringEnvelope ID, unique per request — Langfuse uses it for deduplication.
kind: EventKindA discriminant string for the event type, e.g. trace-create /
generation-create.
timestamp: StringTimestamp when the event was produced (ISO-8601 / RFC3339).
body: ValueType-specific payload. body.id is the trace or observation id being operated on.
Implementations§
Trait Implementations§
Source§impl Clone for IngestionEvent
impl Clone for IngestionEvent
Source§fn clone(&self) -> IngestionEvent
fn clone(&self) -> IngestionEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IngestionEvent
impl Debug for IngestionEvent
Auto Trait Implementations§
impl Freeze for IngestionEvent
impl RefUnwindSafe for IngestionEvent
impl Send for IngestionEvent
impl Sync for IngestionEvent
impl Unpin for IngestionEvent
impl UnsafeUnpin for IngestionEvent
impl UnwindSafe for IngestionEvent
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