Class: Aws::Telemetry::OTelTracerProvider

Inherits:
TracerProviderBase show all
Defined in:
lib/aws-sdk-core/telemetry/otel.rb

Overview

OpenTelemetry-based TracerProviderBase, an entry point for creating Tracer instances.

Instance Method Summary collapse

Constructor Details

#initializeOTelTracerProvider

Returns a new instance of OTelTracerProvider.



65
66
67
68
# File 'lib/aws-sdk-core/telemetry/otel.rb', line 65

def initialize
  super
  @tracer_provider = OpenTelemetry.tracer_provider
end

Instance Method Details

#tracer(name = nil) ⇒ Aws::Telemetry::OTelTracer

Returns a Tracer instance.

Parameters:

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

    Tracer name

Returns:



74
75
76
# File 'lib/aws-sdk-core/telemetry/otel.rb', line 74

def tracer(name = nil)
  OTelTracer.new(@tracer_provider.tracer(name))
end