Package com.aembot.lib.tracing
Class TraceScope
java.lang.Object
com.aembot.lib.tracing.TraceScope
- All Implemented Interfaces:
AutoCloseable
AutoCloseable wrapper for trace spans, enabling try-with-resources usage.
Usage:
try (var t = Tracer.trace("MyClass.myMethod")) {
// Method body - automatically timed
}
-
Method Summary
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-