UNPKG

1.01 kBTypeScriptView Raw
1/** @module trace */
2import { ErrorDescription } from 'pip-services3-commons-node';
3/**
4 * Data object to store captured operation traces.
5 * This object is used by [[CachedTracer]].
6 */
7export declare class OperationTrace {
8 /** The time when operation was executed */
9 time: Date;
10 /** The source (context name) */
11 source: string;
12 /** The name of component */
13 component: string;
14 /** The name of the executed operation */
15 operation: string;
16 /** The transaction id to trace execution through call chain. */
17 correlation_id: string;
18 /** The duration of the operation in milliseconds */
19 duration: number;
20 /**
21 * The description of the captured error
22 *
23 * [[https://pip-services3-node.github.io/pip-services3-commons-node/classes/errors.errordescription.html ErrorDescription]]
24 * [[https://pip-services3-node.github.io/pip-services3-commons-node/classes/errors.applicationexception.html ApplicationException]]
25 */
26 error: ErrorDescription;
27}