Class: ActiveAgent::Telemetry::NullSpan

Inherits:
Object
  • Object
show all
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

Instance Method Details

#add_span(name, **attributes) ⇒ Object



154
# File 'lib/active_agent/telemetry.rb', line 154

def add_span(name, **attributes); self; end

#finishObject



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, message = 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