Class: Attio::Observability::Traces::Memory::Span
- Inherits:
-
Object
- Object
- Attio::Observability::Traces::Memory::Span
- Defined in:
- lib/attio/observability.rb
Overview
Instance Attribute Summary collapse
- #attributes ⇒ Object readonly
- #name ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(name) ⇒ Span
constructor
A new instance of Span.
- #set_attribute(key, value) ⇒ Object
Constructor Details
#initialize(name) ⇒ Span
Returns a new instance of Span.
377 378 379 380 |
# File 'lib/attio/observability.rb', line 377 def initialize(name) @name = name @attributes = {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
375 376 377 |
# File 'lib/attio/observability.rb', line 375 def attributes @attributes end |
#name ⇒ Object (readonly)
375 376 377 |
# File 'lib/attio/observability.rb', line 375 def name @name end |
Instance Method Details
#set_attribute(key, value) ⇒ Object
382 383 384 |
# File 'lib/attio/observability.rb', line 382 def set_attribute(key, value) @attributes[key] = value end |