Module: Langfuse::PartialUpdates

Included in:
Generation, Span, Trace
Defined in:
lib/langfuse/partial_updates.rb

Overview

Update events carry only the fields that changed. The ingestion API merges an update into the existing trace/observation, so re-sending a generation's input on every end call would double the payload of every LLM call.

Constant Summary collapse

UPDATE_IDENTITY_FIELDS =

Always sent so the server can resolve (and if needed upsert) the entity. to_dict#slice ignores the keys a given class does not have.

%i[id trace_id type].freeze