Class: Langfuse::Chain
- Inherits:
-
BaseObservation
- Object
- BaseObservation
- Langfuse::Chain
- Defined in:
- lib/langfuse/observations.rb
Overview
Observation for tracking structured multi-step workflows and process chains.
Instance Attribute Summary
Attributes inherited from BaseObservation
#otel_span, #otel_tracer, #type
Instance Method Summary collapse
-
#initialize(otel_span, otel_tracer, attributes: nil) ⇒ Chain
constructor
A new instance of Chain.
- #update(attrs) ⇒ self
Methods inherited from BaseObservation
#current_span, #end, #event, #id, #input=, #level=, #metadata=, #output=, #score_trace, #start_observation, #trace_id, #trace_url, #update_trace
Constructor Details
#initialize(otel_span, otel_tracer, attributes: nil) ⇒ Chain
Returns a new instance of Chain.
504 505 506 |
# File 'lib/langfuse/observations.rb', line 504 def initialize(otel_span, otel_tracer, attributes: nil) super(otel_span, otel_tracer, attributes: attributes, type: OBSERVATION_TYPES[:chain]) end |
Instance Method Details
#update(attrs) ⇒ self
510 511 512 513 |
# File 'lib/langfuse/observations.rb', line 510 def update(attrs) update_observation_attributes(attrs) self end |