pip_services3_components.trace.TraceTiming module
-
class
pip_services3_components.trace.TraceTiming.
TraceTiming
(correlation_id: Optional[str], component: str, operation: str, tracer: Optional[pip_services3_components.trace.ITracer.ITracer] = None) Bases:
object
CounterTiming object returned by
beginTrace
to end timing of execution block and record the associated trace.Example:
-
end_failure
(error: Exception) Ends timing of a failed block, calculates elapsed time and records the associated trace.
- Parameters
error – an error object associated with this trace.
-
end_trace
() Ends timing of an execution block, calculates elapsed time and records the associated trace.
-