getLongMetric

actual fun getLongMetric(metricName: String): Long(source)
expect fun getLongMetric(metricName: String): Long(source)

Gets the value of the metric with the given name in the current trace. If a metric with the given name doesn't exist, it is NOT created and a 0 is returned. This method is atomic.

Return

Value of the metric or 0 if it hasn't yet been set.

Parameters

metricName

Name of the metric to get. Requires no leading or trailing whitespace, no leading underscore '_' character, max length is 100 characters.

actual fun getLongMetric(metricName: String): Long(source)
actual fun getLongMetric(metricName: String): Long(source)
actual fun getLongMetric(metricName: String): Long(source)