-
public final class SpanExtKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> TwithinSpan(String operationName, DatadogSpan parentSpan, Boolean activate, Function1<DatadogSpan, T> block)Wraps the provided lambda within a DatadogSpan. -
-
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 lambdaparentSpan- the parent DatadogSpan (default isnull)activate- whether the created DatadogSpan should be made active for the current thread (default istrue)block- the lambda function traced by this newly created DatadogSpan
-
-
-
-