Class: Aws::Telemetry::TelemetryProviderBase
- Inherits:
-
Object
- Object
- Aws::Telemetry::TelemetryProviderBase
- 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
Instance Attribute Summary collapse
-
#context_manager ⇒ Aws::Telemetry::ContextManagerBase
readonly
-
#tracer_provider ⇒ Aws::Telemetry::TracerProviderBase
readonly
Instance Method Summary collapse
-
#initialize(tracer_provider: nil, context_manager: nil) ⇒ TelemetryProviderBase
constructor
A new instance of TelemetryProviderBase.
Constructor Details
#initialize(tracer_provider: nil, context_manager: nil) ⇒ TelemetryProviderBase
Returns a new instance of TelemetryProviderBase.
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_manager ⇒ Aws::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_provider ⇒ Aws::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 |