Class: Aws::Telemetry::SpanBase
- Inherits:
- 
      Object
      
        - Object
- Aws::Telemetry::SpanBase
 
- Defined in:
- lib/aws-sdk-core/telemetry/base.rb
Overview
Base for ‘Span` classes.
Instance Method Summary collapse
- 
  
    
      #add_attributes(attributes)  ⇒ self 
    
    
  
  
  
  
  
  
  
  
  
    Add attributes. 
- 
  
    
      #add_event(name, attributes: nil)  ⇒ self 
    
    
  
  
  
  
  
  
  
  
  
    Add event to a Span. 
- 
  
    
      #finish(end_timestamp: nil)  ⇒ self 
    
    
  
  
  
  
  
  
  
  
  
    Finishes the Span. 
- 
  
    
      #record_exception(exception, attributes: nil)  ⇒ void 
    
    
  
  
  
  
  
  
  
  
  
    Record an exception during the execution of this span. 
- 
  
    
      #set_attribute(key, value)  ⇒ self 
    
    
      (also: #[]=)
    
  
  
  
  
  
  
  
  
  
    Set attribute. 
- 
  
    
      #status=(status)  ⇒ void 
    
    
  
  
  
  
  
  
  
  
  
    Sets the Span status. 
Instance Method Details
#add_attributes(attributes) ⇒ self
Add attributes.
| 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.
| 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.
| 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.
| 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.
| 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.
| 122 123 124 | # File 'lib/aws-sdk-core/telemetry/base.rb', line 122 def status=(status) raise NotImplementedError end |