Class: Langfuse::Event
- Inherits:
-
BaseObservation
- Object
- BaseObservation
- Langfuse::Event
- Defined in:
- lib/langfuse/observations.rb
Overview
Point-in-time occurrence. Automatically ended when created without a block.
Instance Attribute Summary
Attributes inherited from BaseObservation
#otel_span, #otel_tracer, #type
Instance Method Summary collapse
-
#initialize(otel_span, otel_tracer, attributes: nil) ⇒ Event
constructor
A new instance of Event.
- #update(attrs) ⇒ self
Methods inherited from BaseObservation
#current_span, #end, #event, #id, #input=, #level=, #metadata=, #output=, #start_observation, #trace_id, #trace_url, #update_trace
Constructor Details
#initialize(otel_span, otel_tracer, attributes: nil) ⇒ Event
Returns a new instance of Event.
349 350 351 |
# File 'lib/langfuse/observations.rb', line 349 def initialize(otel_span, otel_tracer, attributes: nil) super(otel_span, otel_tracer, attributes: attributes, type: OBSERVATION_TYPES[:event]) end |
Instance Method Details
#update(attrs) ⇒ self
355 356 357 358 |
# File 'lib/langfuse/observations.rb', line 355 def update(attrs) update_observation_attributes(attrs) self end |