Class: Phronomy::Tracing::NullTracer
- Defined in:
- lib/phronomy/tracing/null_tracer.rb
Overview
No-op tracer used as the default. All calls succeed silently.
Swap this with a real tracer (OpenTelemetry, Langfuse, etc.) via:
Phronomy.configure { |c| c.tracer = MyRealTracer.new }
Instance Method Summary collapse
-
#finish_span(span) ⇒ Object
Does nothing.
-
#start_span(name) ⇒ Object
Returns a minimal span object with the given name.
Methods inherited from Base
Instance Method Details
#finish_span(span) ⇒ Object
Does nothing.
17 |
# File 'lib/phronomy/tracing/null_tracer.rb', line 17 def finish_span(span, **) = nil |
#start_span(name) ⇒ Object
Returns a minimal span object with the given name.
14 |
# File 'lib/phronomy/tracing/null_tracer.rb', line 14 def start_span(name, **) = OpenStruct.new(name: name) |