Class: OpenTelemetry::SDK::Metrics::Instrument::ObservableUpDownCounter

Inherits:
Metrics::Instrument::ObservableUpDownCounter
  • Object
show all
Defined in:
lib/opentelemetry/sdk/metrics/instrument/observable_up_down_counter.rb

Overview

ObservableUpDownCounter is the SDK implementation of Metrics::ObservableUpDownCounter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, unit, description, callback, meter) ⇒ ObservableUpDownCounter

Returns a new instance of ObservableUpDownCounter.



15
16
17
18
19
20
21
# File 'lib/opentelemetry/sdk/metrics/instrument/observable_up_down_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

#descriptionObject (readonly)

Returns the value of attribute description.



13
14
15
# File 'lib/opentelemetry/sdk/metrics/instrument/observable_up_down_counter.rb', line 13

def description
  @description
end

#nameObject (readonly)

Returns the value of attribute name.



13
14
15
# File 'lib/opentelemetry/sdk/metrics/instrument/observable_up_down_counter.rb', line 13

def name
  @name
end

#unitObject (readonly)

Returns the value of attribute unit.



13
14
15
# File 'lib/opentelemetry/sdk/metrics/instrument/observable_up_down_counter.rb', line 13

def unit
  @unit
end