Class: ActiveAgent::Telemetry::NullSpan
- Inherits:
-
Object
- Object
- ActiveAgent::Telemetry::NullSpan
- Defined in:
- lib/active_agent/telemetry.rb
Overview
Null span implementation for when telemetry is disabled.
Provides no-op methods that match Span interface to avoid nil checks throughout the codebase.
Instance Method Summary collapse
- #add_span(name, **attributes) ⇒ Object
- #finish ⇒ Object
- #record_error(error) ⇒ Object
- #set_attribute(key, value) ⇒ Object
- #set_status(status, message = nil) ⇒ Object
- #set_tokens(input: 0, output: 0, thinking: 0) ⇒ Object
Instance Method Details
#add_span(name, **attributes) ⇒ Object
154 |
# File 'lib/active_agent/telemetry.rb', line 154 def add_span(name, **attributes); self; end |
#finish ⇒ Object
159 |
# File 'lib/active_agent/telemetry.rb', line 159 def finish; self; end |
#record_error(error) ⇒ Object
158 |
# File 'lib/active_agent/telemetry.rb', line 158 def record_error(error); self; end |
#set_attribute(key, value) ⇒ Object
155 |
# File 'lib/active_agent/telemetry.rb', line 155 def set_attribute(key, value); self; end |
#set_status(status, message = nil) ⇒ Object
157 |
# File 'lib/active_agent/telemetry.rb', line 157 def set_status(status, = nil); self; end |
#set_tokens(input: 0, output: 0, thinking: 0) ⇒ Object
156 |
# File 'lib/active_agent/telemetry.rb', line 156 def set_tokens(input: 0, output: 0, thinking: 0); self; end |