ITracer

Interface for tracer components that capture operation traces.

Description

The ITracer interface is used to create tracer component that capture operation traces.

Instance methods

begin_trace

Begings recording an operation trace

TraceTiming beginTrace(IContext context, String component, String operation)

  • context: IContext - (optional) a context to trace execution through a call chain.
  • component: String - name of the called component
  • operation: String - name of the executed operation.
  • return: TraceTiming - a trace timing object.

failure

Records an operation failure with its name, duration and error.

void failure(IContext context, String component, String operation, Exception error, long duration)

  • context: IContext - (optional) a context to trace execution through a call chain.
  • component: String - a name of called component
  • operation: String - a name of the executed operation.
  • error: Exception - an error object associated with this trace.
  • duration: long - execution duration in milliseconds.

trace

Records an operation trace with its name and duration

void trace([IContext](../../../components/context/icontext context, String component, String operation, Long duration)

  • context: IContext - (optional) a context to trace execution through a call chain.
  • component: String - name of the called component
  • operation: String - name of the executed operation.
  • duration: Long - execution duration in milliseconds.