Class: Aws::Telemetry::TelemetryProviderBase

Inherits:
Object
  • Object
show all
Defined in:
gems/aws-sdk-core/lib/aws-sdk-core/telemetry/base.rb

Overview

Base for TelemetryProvider classes. They are used to emit telemetry data. It needs the following class implementations to function: * TracerProviderBase - A provider that returns a tracer instance. Then, a tracer will create spans and those spans will contain information in that given moment. * ContextManagerBase - Manages context and used to return the current context within a trace.

Direct Known Subclasses

NoOpTelemetryProvider, OTelProvider

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tracer_provider: nil, context_manager: nil) ⇒ TelemetryProviderBase

Returns a new instance of TelemetryProviderBase.

Parameters:



18
19
20
21
# File 'gems/aws-sdk-core/lib/aws-sdk-core/telemetry/base.rb', line 18

def initialize(tracer_provider: nil, context_manager: nil)
  @tracer_provider = tracer_provider
  @context_manager = context_manager
end

Instance Attribute Details

#context_managerAws::Telemetry::ContextManagerBase (readonly)



27
28
29
# File 'gems/aws-sdk-core/lib/aws-sdk-core/telemetry/base.rb', line 27

def context_manager
  @context_manager
end

#tracer_providerAws::Telemetry::TracerProviderBase (readonly)



24
25
26
# File 'gems/aws-sdk-core/lib/aws-sdk-core/telemetry/base.rb', line 24

def tracer_provider
  @tracer_provider
end