public class TraceOperation extends Object implements ITraceOperation
Use TraceOperation.createRootWithLogging
to setup tracing on a thread. Use TraceOperation.addToExistingTrace to add to the existing tracer
. Use TraceOperation.getChildTrace to track operation which runs in another thread
NOTE: Ensure that close() is called on each of the operation. NOTE: This class is for internal use and can change without notice.
Modifier and Type | Method and Description |
---|---|
static ITraceOperation |
addToExistingTrace(String name) |
void |
annotate(String resultSize,
int size) |
void |
close() |
static ITraceOperation |
createRootWithLogging(String name,
Object context) |
static ThreadTrace |
current() |
static ITraceOperation |
getChildTrace(ThreadTrace parentTrace,
String name) |
ThreadTrace |
getTrace() |
static String |
getTrackingId() |
public static ITraceOperation createRootWithLogging(String name, Object context)
public static ITraceOperation addToExistingTrace(String name)
public static ThreadTrace current()
public static ITraceOperation getChildTrace(ThreadTrace parentTrace, String name)
public static String getTrackingId()
public ThreadTrace getTrace()
getTrace
in interface ITraceOperation
public void close()
close
in interface ITraceOperation
close
in interface AutoCloseable
public void annotate(String resultSize, int size)
annotate
in interface ITraceOperation
Copyright © 2024. All rights reserved.