The span registers 'now' up to the moment that the given future
completes.
The span registers 'now' up to the moment that the given future
completes.
This method may measure more than is obvious.
It measures:
* the evaluation of the (by name) parameter future
* in case the future is not yet completed: the delay until the constructed Future is scheduled in the
given ExecutionContext
* in case the future is not yet completed: the actual execution of the Future
* the time it takes to schedule finishing the span
Source: https://github.com/erikvanoosten/metrics-scala/blob/c20187a1ed09f50a523b310e3a7ffa992564afb3/metrics-scala/src/main/scala/nl/grons/metrics4/scala/Timer.scala#L60
Runs f and recording it as a span
A Span pans are created by calling the buildSpan(operationName) method on Kamon’s companion object as shown below: