class OpenTelemetry::Internal::ProxyTracer

@api private

{ProxyTracer} is an implementation of {OpenTelemetry::Trace::Tracer}. It is returned from the ProxyTracerProvider until a delegate tracer provider is installed. After the delegate tracer provider is installed, the ProxyTracer will delegate to the corresponding “real” tracer.

Attributes

delegate[W]

Public Class Methods

new() click to toggle source

Returns a new {ProxyTracer} instance.

@return [ProxyTracer]

# File lib/opentelemetry/internal/proxy_tracer.rb, line 21
def initialize
  @delegate = nil
end

Public Instance Methods

start_root_span(name, attributes: nil, links: nil, start_timestamp: nil, kind: nil) click to toggle source
Calls superclass method
# File lib/opentelemetry/internal/proxy_tracer.rb, line 25
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
start_span(name, with_parent: nil, attributes: nil, links: nil, start_timestamp: nil, kind: nil) click to toggle source
Calls superclass method
# File lib/opentelemetry/internal/proxy_tracer.rb, line 31
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