class OpenTelemetry::Metrics::Meter

def create_counter(name, unit: nil, description: nil)

Returns:
  • (nil) - after creation of 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 counter
def create_counter(name, unit: nil, description: nil)
  create_instrument(:counter, name, unit, description, nil) { COUNTER }
end