java.lang.Object
de.codecamp.tracer.impl.NoOpActiveTrace
- All Implemented Interfaces:
ActiveTrace,AutoCloseable
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidend()Ends this trace and all sub-traces.startSubTrace(String label, Object... labelFormatArgs) Starts and returns a new sub-trace which will be the new active trace.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.codecamp.tracer.ActiveTrace
close
-
Field Details
-
INSTANCE
-
-
Method Details
-
startSubTrace
Description copied from interface:ActiveTraceStarts and returns a new sub-trace which will be the new active trace. It's generally recommended to call this method in a try-with-resource.- Specified by:
startSubTracein interfaceActiveTrace- Parameters:
label- the label to use for this trace; may contain placeholderslabelFormatArgs- the format arguments for the placeholders in the label- Returns:
- the new active sub-trace
-
end
public void end()Description copied from interface:ActiveTraceEnds this trace and all sub-traces.- Specified by:
endin interfaceActiveTrace
-