Package org.pipservices3.components.trace


package org.pipservices3.components.trace
  • Class
    Description
    Abstract tracer that caches recorded traces in memory and periodically dumps them.
    Aggregates all tracers from component references under a single component.
    Creates ITracer components by their descriptors.
    Interface for tracer components that capture operation traces.
    Tracer that dumps recorded traces to logger. ### Configuration parameters ### - options: - log_level: log level to record traces (default: debug) ### References ### *:logger:*:*:1.0 (optional) ILogger components to dump the captured counters *:context-info:*:*:1.0 (optional) ContextInfo to detect the context id and specify counters source
    Dummy implementation of tracer that doesn't do anything.
    Data object to store captured operation traces.
    Timing object returned by ITracer.beginTrace(java.lang.String, java.lang.String, java.lang.String) to end timing of execution block and record the associated trace. ### Example ### TraceTiming timing = tracer.beginTrace("mymethod.exec_time"); try { ... timing.endTrace(); } catch (Exception err) { timing.endFailure(err); }