pip-services3-components-node
Version:
Component definitions for Pip.Services in Node.js
29 lines (27 loc) • 1 kB
text/typescript
/** @module trace */
import { ErrorDescription } from 'pip-services3-commons-node';
/**
* Data object to store captured operation traces.
* This object is used by [[CachedTracer]].
*/
export class OperationTrace {
/** The time when operation was executed */
public time: Date;
/** The source (context name) */
public source: string;
/** The name of component */
public component: string;
/** The name of the executed operation */
public operation: string;
/** The transaction id to trace execution through call chain. */
public correlation_id: string;
/** The duration of the operation in milliseconds */
public duration: number;
/**
* The description of the captured error
*
* [[https://pip-services3-node.github.io/pip-services3-commons-node/classes/errors.errordescription.html ErrorDescription]]
* [[https://pip-services3-node.github.io/pip-services3-commons-node/classes/errors.applicationexception.html ApplicationException]]
*/
public error: ErrorDescription;
}