Class: OpenTelemetry::Trace::TracerProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/opentelemetry/trace/tracer_provider.rb

Overview

No-op implementation of a tracer provider.

Direct Known Subclasses

Internal::ProxyTracerProvider

Instance Method Summary collapse

Instance Method Details

#tracer(name = nil, version = nil) ⇒ Tracer

Returns a OpenTelemetry::Trace::Tracer instance.

Parameters:

  • name (optional String) (defaults to: nil)

    Instrumentation package name

  • version (optional String) (defaults to: nil)

    Instrumentation package version

Returns:



17
18
19
# File 'lib/opentelemetry/trace/tracer_provider.rb', line 17

def tracer(name = nil, version = nil)
  @tracer ||= Tracer.new
end