Class TraceScope

java.lang.Object
com.aembot.lib.tracing.TraceScope
All Implemented Interfaces:
AutoCloseable

public final class TraceScope extends Object implements AutoCloseable
AutoCloseable wrapper for trace spans, enabling try-with-resources usage.

Usage:


 try (var t = Tracer.trace("MyClass.myMethod")) {
     // Method body - automatically timed
 }
 
  • Method Details