Class OpentracingContextTimer

  • All Implemented Interfaces:
    ContextTimer

    public class OpentracingContextTimer
    extends Object
    implements ContextTimer
    This ContextTimer uses the Opentracing API to report the timing statistics of the context switches that occurred.

    This class does not really support Opentracing as that it uses opentracing to report the timing metrics of this library.

    Author:
    Sjoerd Talsma
    • Constructor Detail

      • OpentracingContextTimer

        public OpentracingContextTimer()
    • Method Detail

      • update

        public void update​(Class<?> type,
                           String method,
                           long duration,
                           TimeUnit unit)
        Description copied from interface: ContextTimer
        Provides a new update for the context timer.
        Specified by:
        update in interface ContextTimer
        Parameters:
        type - The class being called
        method - The method being called
        duration - The duration of the method
        unit - The unit of the duration