Class: Aws::Telemetry::SpanBase

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

Overview

Base for Span classes.

Direct Known Subclasses

NoOpSpan, OTelSpan

Instance Method Summary collapse

Instance Method Details

#add_attributes(attributes) ⇒ self

Add attributes.

Raises:

  • (NotImplementedError)


100
101
102
# File 'lib/aws-sdk-core/telemetry/base.rb', line 100

def add_attributes(attributes)
  raise NotImplementedError
end

#add_event(name, attributes: nil) ⇒ self

Add event to a Span.

Raises:

  • (NotImplementedError)


113
114
115
# File 'lib/aws-sdk-core/telemetry/base.rb', line 113

def add_event(name, attributes: nil)
  raise NotImplementedError
end

#finish(end_timestamp: nil) ⇒ self

Finishes the Span.

Raises:

  • (NotImplementedError)


130
131
132
# File 'lib/aws-sdk-core/telemetry/base.rb', line 130

def finish(end_timestamp: nil)
  raise NotImplementedError
end

#record_exception(exception, attributes: nil) ⇒ void

This method returns an undefined value.

Record an exception during the execution of this span. Multiple exceptions can be recorded on a span.

Raises:

  • (NotImplementedError)


143
144
145
# File 'lib/aws-sdk-core/telemetry/base.rb', line 143

def record_exception(exception, attributes: nil)
  raise NotImplementedError
end

#set_attribute(key, value) ⇒ self Also known as: []=

Set attribute.

Raises:

  • (NotImplementedError)


87
88
89
# File 'lib/aws-sdk-core/telemetry/base.rb', line 87

def set_attribute(key, value)
  raise NotImplementedError
end

#status=(status) ⇒ void

This method returns an undefined value.

Sets the Span status.

Raises:

  • (NotImplementedError)


122
123
124
# File 'lib/aws-sdk-core/telemetry/base.rb', line 122

def status=(status)
  raise NotImplementedError
end