Module: Riffer::Tracing::NoOp
Overview
No-op tracing backend, used when OTEL is unavailable or tracing is disabled.
Defined Under Namespace
Classes: Span
Constant Summary collapse
- SPAN =
Span.new.freeze
Instance Method Summary collapse
-
#current_context ⇒ Object
Returns
nil; there is no trace context without OTEL. -
#in_span(_name) {|SPAN| ... } ⇒ Object
Yields the no-op span, ignoring all span options.
-
#with_context(_context) ⇒ Object
Yields immediately; there is no context to attach.
Instance Method Details
#current_context ⇒ Object
Returns nil; there is no trace context without OTEL.
47 48 49 |
# File 'lib/riffer/tracing/no_op.rb', line 47 def current_context nil end |
#in_span(_name) {|SPAN| ... } ⇒ Object
Yields the no-op span, ignoring all span options.
40 41 42 |
# File 'lib/riffer/tracing/no_op.rb', line 40 def in_span(_name, **) yield SPAN end |
#with_context(_context) ⇒ Object
Yields immediately; there is no context to attach.
54 55 56 |
# File 'lib/riffer/tracing/no_op.rb', line 54 def with_context(_context) yield end |