Class: RailsErrorDashboard::Integrations::Tracer::NoopSpan

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_error_dashboard/integrations/tracer.rb

Overview

No-op stand-in returned to the block when tracing is off or unavailable. Mimics the OTel Span interface (set_attribute, add_event, record_exception) so call sites don’t branch.

Instance Method Summary collapse

Instance Method Details

#add_event(_name, attributes: nil) ⇒ Object



49
# File 'lib/rails_error_dashboard/integrations/tracer.rb', line 49

def add_event(_name, attributes: nil); self; end

#contextObject



53
# File 'lib/rails_error_dashboard/integrations/tracer.rb', line 53

def context; nil; end

#finishObject



52
# File 'lib/rails_error_dashboard/integrations/tracer.rb', line 52

def finish; self; end

#record_exception(_exception, attributes: nil) ⇒ Object



50
# File 'lib/rails_error_dashboard/integrations/tracer.rb', line 50

def record_exception(_exception, attributes: nil); self; end

#set_attribute(_key, _value) ⇒ Object



48
# File 'lib/rails_error_dashboard/integrations/tracer.rb', line 48

def set_attribute(_key, _value); self; end

#status=(_status) ⇒ Object



51
# File 'lib/rails_error_dashboard/integrations/tracer.rb', line 51

def status=(_status); end