Class: Aws::Telemetry::OTelTracerProvider
- Inherits:
-
TracerProviderBase
- Object
- TracerProviderBase
- Aws::Telemetry::OTelTracerProvider
- Defined in:
- lib/aws-sdk-core/telemetry/otel.rb
Overview
OpenTelemetry-based TracerProviderBase, an entry point for creating Tracer instances.
Instance Method Summary collapse
-
#initialize ⇒ OTelTracerProvider
constructor
A new instance of OTelTracerProvider.
-
#tracer(name = nil) ⇒ Aws::Telemetry::OTelTracer
Returns a Tracer instance.
Constructor Details
#initialize ⇒ OTelTracerProvider
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.
74 75 76 |
# File 'lib/aws-sdk-core/telemetry/otel.rb', line 74 def tracer(name = nil) OTelTracer.new(@tracer_provider.tracer(name)) end |