Package brave
Interface Clock
-
public interface ClockEpoch microseconds used forSpan.start(long),Span.finish(long)andSpan.annotate(long, String).This should use the most precise value possible. For example,
gettimeofdayor multiplyingSystem.currentTimeMillis()by 1000.See Instrumenting a service for more.
Note: This type is safe to implement as a lambda, or use as a method reference as it is effectively a
FunctionalInterface. It isn't annotated as such because the project has a minimum Java language level 6.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longcurrentTimeMicroseconds()
-