Class: OpenTelemetry::SDK::Metrics::Instrument::ObservableCounter
- Inherits:
- 
      Metrics::Instrument::ObservableCounter
      
        - Object
- Metrics::Instrument::ObservableCounter
- OpenTelemetry::SDK::Metrics::Instrument::ObservableCounter
 
- Defined in:
- lib/opentelemetry/sdk/metrics/instrument/observable_counter.rb
Overview
ObservableCounter is the SDK implementation of Metrics::ObservableCounter.
Instance Attribute Summary collapse
- 
  
    
      #description  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute description. 
- 
  
    
      #name  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute name. 
- 
  
    
      #unit  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute unit. 
Instance Method Summary collapse
- 
  
    
      #initialize(name, unit, description, callback, meter)  ⇒ ObservableCounter 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ObservableCounter. 
Constructor Details
#initialize(name, unit, description, callback, meter) ⇒ ObservableCounter
Returns a new instance of ObservableCounter.
| 15 16 17 18 19 20 21 | # File 'lib/opentelemetry/sdk/metrics/instrument/observable_counter.rb', line 15 def initialize(name, unit, description, callback, meter) @name = name @unit = unit @description = description @callback = callback @meter = meter end | 
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
| 13 14 15 | # File 'lib/opentelemetry/sdk/metrics/instrument/observable_counter.rb', line 13 def description @description end | 
#name ⇒ Object (readonly)
Returns the value of attribute name.
| 13 14 15 | # File 'lib/opentelemetry/sdk/metrics/instrument/observable_counter.rb', line 13 def name @name end | 
#unit ⇒ Object (readonly)
Returns the value of attribute unit.
| 13 14 15 | # File 'lib/opentelemetry/sdk/metrics/instrument/observable_counter.rb', line 13 def unit @unit end |