class OpenTelemetry::Metrics::Meter
def create_up_down_counter(name, unit: nil, description: nil)
-
(nil)
- after creation of up_down_counter, it will be stored in instrument_registry
Parameters:
-
description
(optional String
) -- an optional free-form text provided by user. -
unit
(optional String
) -- an optional string provided by user. -
name
(String
) -- the name of the up_down_counter
def create_up_down_counter(name, unit: nil, description: nil) create_instrument(:up_down_counter, name, unit, description, nil) { UP_DOWN_COUNTER } end