lib/spanmanager/tracer.rb in spanmanager-0.2.0 vs lib/spanmanager/tracer.rb in spanmanager-0.3.0

- old
+ new

@@ -16,9 +16,14 @@ def initialize(tracer, managed_span_source = ThreadLocalManagedSpanSource.new) @tracer = tracer @managed_span_source = managed_span_source end + # @return [OpenTracing::Tracer] the wrapped tracer + def wrapped + @tracer + end + # Retrieves the current active span. # # @return [SpanManager::ManagedSpan] returns the current active span, or null if none could be found. def active_span managed_span_source.active_span