class OpenTelemetry::Internal::ProxyTracer
tracer.
tracer provider is installed, the ProxyTracer will delegate to the corresponding “real”
the ProxyTracerProvider until a delegate tracer provider is installed. After the delegate
{ProxyTracer} is an implementation of {OpenTelemetry::Trace::Tracer}. It is returned from
@api private
def initialize
-
(ProxyTracer)
-
def initialize @delegate = nil end
def start_root_span(name, attributes: nil, links: nil, start_timestamp: nil, kind: nil)
def start_root_span(name, attributes: nil, links: nil, start_timestamp: nil, kind: nil) return @delegate.start_root_span(name, attributes: attributes, links: links, start_timestamp: start_timestamp, kind: kind) unless @delegate.nil? super end
def start_span(name, with_parent: nil, attributes: nil, links: nil, start_timestamp: nil, kind: nil)
def start_span(name, with_parent: nil, attributes: nil, links: nil, start_timestamp: nil, kind: nil) return @delegate.start_span(name, with_parent: with_parent, attributes: attributes, links: links, start_timestamp: start_timestamp, kind: kind) unless @delegate.nil? super end