Package 

Class SpanExtKt

    • Method Summary

      Modifier and Type Method Description
      final static <T extends Any> T withinSpan(String operationName, DatadogSpan parentSpan, Boolean activate, Function1<DatadogSpan, T> block) Wraps the provided lambda within a DatadogSpan.
      • Methods inherited from class java.lang.Object

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

      • withinSpan

         final static <T extends Any> T withinSpan(String operationName, DatadogSpan parentSpan, Boolean activate, Function1<DatadogSpan, T> block)

        Wraps the provided lambda within a DatadogSpan.

        Parameters:
        operationName - the name of the DatadogSpan created around the lambda
        parentSpan - the parent DatadogSpan (default is null)
        activate - whether the created DatadogSpan should be made active for the current thread (default is true)
        block - the lambda function traced by this newly created DatadogSpan