Creates a new instance of the tracer.
references to locate the component dependencies.
Begings recording an operation trace
(optional) transaction id to trace execution through call chain.
a name of called component
a name of the executed operation.
a trace timing object.
Records an operation failure with its name, duration and error
(optional) transaction id to trace execution through call chain.
a name of called component
a name of the executed operation.
an error object associated with this trace.
execution duration in milliseconds.
Sets references to dependent components.
references to locate the component dependencies.
Records an operation trace with its name and duration
(optional) transaction id to trace execution through call chain.
a name of called component
a name of the executed operation.
execution duration in milliseconds.
Generated using TypeDoc
Aggregates all tracers from component references under a single component.
It allows to record traces and conveniently send them to multiple destinations.
References
*:tracer:*:*:1.0
(optional) ITracer components to pass operation tracesITracer
Example
class MyComponent implements IReferenceable { private _tracer: CompositeTracer = new CompositeTracer(); public setReferences(references: IReferences): void { this._tracer.setReferences(references); ... } public myMethod(correlatonId: string): void { var timing = this._tracer.beginTrace(correlationId, "mycomponent", "mymethod"); try { ... timing.endTrace(); } catch (err) { timing.endFailure(err); } } }