Package org.pipservices3.components.trace
package org.pipservices3.components.trace
-
ClassDescriptionAbstract tracer that caches recorded traces in memory and periodically dumps them.Aggregates all tracers from component references under a single component.Creates
ITracercomponents 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)ILoggercomponents to dump the captured counters *:context-info:*:*:1.0 (optional)ContextInfoto detect the context id and specify counters sourceDummy implementation of tracer that doesn't do anything.Data object to store captured operation traces.Timing object returned byITracer.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); }