Package 

Class FeatureScopeExtKt

    • Method Summary

      Modifier and Type Method Description
      final static <R extends Any> R measureMethodCallPerf(InternalLogger $self, Class<?> callerClass, String operationName, Float samplingRate, Function0<R> operation) Measures the execution time for the given block and report it as a MethodCall telemetry metric.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • measureMethodCallPerf

         final static <R extends Any> R measureMethodCallPerf(InternalLogger $self, Class<?> callerClass, String operationName, Float samplingRate, Function0<R> operation)

        Measures the execution time for the given block and report it as a MethodCall telemetry metric.

        Parameters:
        callerClass - the class calling the measured method
        operationName - the operationName to report in the metric
        samplingRate - the sampling rate for the metric
        operation - the operation to report