incrementMetric

actual fun incrementMetric(metricName: String, incrementBy: Long)(source)
expect fun incrementMetric(metricName: String, incrementBy: Long)(source)

Atomically increments the metric with the given name in this trace by the incrementBy value. If the metric does not exist, a new one will be created. If the trace has not been started or has already been stopped, returns immediately without taking action.

Parameters

metricName

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

incrementBy

Amount by which the metric has to be incremented.

actual fun incrementMetric(metricName: String, incrementBy: Long)(source)
actual fun incrementMetric(metricName: String, incrementBy: Long)(source)
actual fun incrementMetric(metricName: String, incrementBy: Long)(source)