Package network.oxalis.commons.tracing
Class SpanManagerImpl
- java.lang.Object
-
- network.oxalis.commons.tracing.SpanManagerImpl
-
- All Implemented Interfaces:
SpanManager
public class SpanManagerImpl extends Object implements SpanManager
-
-
Constructor Summary
Constructors Constructor Description SpanManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TrunWithinSpan(String spanName, Function<io.opentelemetry.api.trace.Span,T> function)ClosableSpanstartClosableSpan(String spanName)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface network.oxalis.commons.tracing.SpanManager
runWithinSpan, runWithinSpan
-
-
-
-
Method Detail
-
runWithinSpan
public <T> T runWithinSpan(String spanName, Function<io.opentelemetry.api.trace.Span,T> function)
- Specified by:
runWithinSpanin interfaceSpanManager
-
startClosableSpan
public ClosableSpan startClosableSpan(String spanName)
- Specified by:
startClosableSpanin interfaceSpanManager
-
-