-
public final class BenchmarkSpanExtKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> TwithinBenchmarkSpan(String operationName, Map<String, String> additionalProperties, Function1<BenchmarkSpan, T> block)Wraps the provided lambda within a BenchmarkSpan. -
-
Method Detail
-
withinBenchmarkSpan
final static <T extends Any> T withinBenchmarkSpan(String operationName, Map<String, String> additionalProperties, Function1<BenchmarkSpan, T> block)
Wraps the provided lambda within a BenchmarkSpan.
- Parameters:
operationName- the name of the BenchmarkSpan created around the lambda (default istrue)additionalProperties- Additional properties for this span.block- the lambda function traced by this newly created BenchmarkSpan
-
-
-
-