Class: RailsErrorDashboard::Integrations::Tracer::NoopSpan
- Inherits:
-
Object
- Object
- RailsErrorDashboard::Integrations::Tracer::NoopSpan
- 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
- #add_event(_name, attributes: nil) ⇒ Object
- #context ⇒ Object
- #finish ⇒ Object
- #record_exception(_exception, attributes: nil) ⇒ Object
- #set_attribute(_key, _value) ⇒ Object
- #status=(_status) ⇒ Object
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 |
#context ⇒ Object
53 |
# File 'lib/rails_error_dashboard/integrations/tracer.rb', line 53 def context; nil; end |
#finish ⇒ Object
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 |