Package brave

Interface Clock


public interface Clock
Epoch microseconds used for Span.start(long), Span.finish(long) and Span.annotate(long, String).

This should use the most precise value possible. For example, gettimeofday or multiplying System.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

    Modifier and Type Method Description
    long currentTimeMicroseconds()