Private
#innerExplicitly sets the timespan value.
This API should only be used if your library or application requires recording times in a way that can not make use of start/stop.
Care should be taken using this if the ping lifetime might contain more than one timespan measurement. To be safe, this function should generally be followed by sending a custom ping containing the timespan.
The elapsed time to record, in nanoseconds.
Test-only API
Returns the number of errors recorded for the given metric.
the number of errors recorded for the metric.
The type of the error recorded.
represents the name of the ping to retrieve the metric for.
Defaults to the first value in sendInPings
.
Test-only API.**
Gets the currently stored value as a number.
This doesn't clear the stored value.
The value found in storage or undefined
if nothing was found.
the ping from which we want to retrieve this metrics value from.
Defaults to the first value in sendInPings
.
Generated using TypeDoc
A timespan metric.
Timespans are used to make a measurement of how much time is spent in a particular task.