class Aws::Telemetry::SpanBase
Base for ‘Span` classes.
Public Instance Methods
Source
# File lib/aws-sdk-core/telemetry/base.rb, line 100 def add_attributes(attributes) raise NotImplementedError end
Add attributes.
@param [Hash{String => String, Numeric, Boolean, Array<String, Numeric,
Boolean>}] attributes Values must be non-nil and (array of) string, boolean or numeric type. Array values must not contain nil elements and all elements must be of the same basic type (string, numeric, boolean)
@return [self] returns itself
Source
# File lib/aws-sdk-core/telemetry/base.rb, line 113 def add_event(name, attributes: nil) raise NotImplementedError end
Add event to a Span.
@param [String] name Name of the event @param [Hash{String => String, Numeric, Boolean, Array<String,
Numeric, Boolean>}] attributes Values must be non-nil and (array of) string, boolean or numeric type. Array values must not contain nil elements and all elements must be of the same basic type (string, numeric, boolean)
@return [self] returns itself
Source
# File lib/aws-sdk-core/telemetry/base.rb, line 130 def finish(end_timestamp: nil) raise NotImplementedError end
Finishes the Span.
@param [Time] end_timestamp End timestamp for the span. @return [self] returns itself
Source
# File lib/aws-sdk-core/telemetry/base.rb, line 143 def record_exception(exception, attributes: nil) raise NotImplementedError end
Record an exception during the execution of this span. Multiple exceptions can be recorded on a span.
@param [Exception] exception The exception to be recorded @param [Hash{String => String, Numeric, Boolean, Array<String,
Numeric, Boolean>}] attributes One or more key:value pairs, where the keys must be strings and the values may be (array of) string, boolean or numeric type.
@return [void]
Source
# File lib/aws-sdk-core/telemetry/base.rb, line 87 def set_attribute(key, value) raise NotImplementedError end
Set attribute.
@param [String] key @param [String, Boolean, Numeric, Array<String, Numeric, Boolean>] value
Value must be non-nil and (array of) string, boolean or numeric type. Array values must not contain nil elements and all elements must be of the same basic type (string, numeric, boolean)
@return [self] returns itself
Source
# File lib/aws-sdk-core/telemetry/base.rb, line 122 def status=(status) raise NotImplementedError end
Sets the Span status.
@param [Aws::Telemetry::SpanStatus] status The new status, which
overrides the default Span status, which is `OK`
@return [void]