Constructors
constructor
- new TraceTiming(correlationId: string, component: string, operation: string, tracer?: ITracer): TraceTiming
-
Parameters
-
correlationId: string
-
component: string
-
operation: string
-
Default value tracer: ITracer = null
Methods
endFailure
- endFailure(error: Error): void
-
Parameters
Returns void
endTrace
-
Returns void
Timing object returned by ITracer.beginTrace to end timing of execution block and record the associated trace.
Example
let timing = tracer.beginTrace("mymethod.exec_time"); try { ... timing.endTrace(); } catch (err) { timing.endFailure(err); }