protected fun recordScalar(metricData: CommonMetricData, value: ScalarType): Unit
Helper function for the derived classes. It can be used to record simple scalars to the internal storage.