Class: Riffer::Tracing::NoOp::Span
- Inherits:
-
Object
- Object
- Riffer::Tracing::NoOp::Span
- Defined in:
- lib/riffer/tracing/no_op.rb
Overview
No-op stand-in for a span; answers recording? with false so
callers can skip expensive attribute serialization.
Instance Method Summary collapse
-
#add_event(name, attributes: nil) ⇒ Object
--.
-
#error!(description = "") ⇒ Object
--.
-
#record_exception(exception) ⇒ Object
--.
-
#recording? ⇒ Boolean
--.
-
#set_attribute(key, value) ⇒ Object
--.
Instance Method Details
#add_event(name, attributes: nil) ⇒ Object
--
18 |
# File 'lib/riffer/tracing/no_op.rb', line 18 def add_event(name, attributes: nil); end |
#error!(description = "") ⇒ Object
--
26 |
# File 'lib/riffer/tracing/no_op.rb', line 26 def error!(description = ""); end |
#record_exception(exception) ⇒ Object
--
22 |
# File 'lib/riffer/tracing/no_op.rb', line 22 def record_exception(exception); end |
#recording? ⇒ Boolean
--
30 31 32 |
# File 'lib/riffer/tracing/no_op.rb', line 30 def recording? false end |
#set_attribute(key, value) ⇒ Object
--
14 |
# File 'lib/riffer/tracing/no_op.rb', line 14 def set_attribute(key, value); end |