Class: Aws::Telemetry::TracerBase
- Inherits:
-
Object
- Object
- Aws::Telemetry::TracerBase
- Defined in:
- lib/aws-sdk-core/telemetry/base.rb
Overview
Base for ‘Tracer` classes.
Direct Known Subclasses
Instance Method Summary collapse
-
#current_span ⇒ Aws::Telemetry::SpanBase
Returns the current active span.
-
#in_span(name, attributes: nil, kind: nil) ⇒ Aws::Telemetry::SpanBase
A helper for the default use-case of extending the current trace with a span.
-
#start_span(name, with_parent: nil, attributes: nil, kind: nil) ⇒ Aws::Telemetry::SpanBase
Used when a caller wants to manage the activation/deactivation and lifecycle of the Span and its parent manually.
Instance Method Details
#current_span ⇒ Aws::Telemetry::SpanBase
Returns the current active span.
72 73 74 |
# File 'lib/aws-sdk-core/telemetry/base.rb', line 72 def current_span raise NotImplementedError end |
#in_span(name, attributes: nil, kind: nil) ⇒ Aws::Telemetry::SpanBase
A helper for the default use-case of extending the current trace with a span. On exit, the Span that was active before calling this method will be reactivated. If an exception occurs during the execution of the provided block, it will be recorded on the span and re-raised.
65 66 67 |
# File 'lib/aws-sdk-core/telemetry/base.rb', line 65 def in_span(name, attributes: nil, kind: nil) raise NotImplementedError end |
#start_span(name, with_parent: nil, attributes: nil, kind: nil) ⇒ Aws::Telemetry::SpanBase
Used when a caller wants to manage the activation/deactivation and lifecycle of the Span and its parent manually.
51 52 53 |
# File 'lib/aws-sdk-core/telemetry/base.rb', line 51 def start_span(name, with_parent: nil, attributes: nil, kind: nil) raise NotImplementedError end |