pip-services3-components-nodex
Version:
Component definitions for Pip.Services in Node.js / ES2017
28 lines (27 loc) • 1.01 kB
TypeScript
/** @module trace */
import { ErrorDescription } from 'pip-services3-commons-nodex';
/**
* Data object to store captured operation traces.
* This object is used by [[CachedTracer]].
*/
export declare class OperationTrace {
/** The time when operation was executed */
time: Date;
/** The source (context name) */
source: string;
/** The name of component */
component: string;
/** The name of the executed operation */
operation: string;
/** The transaction id to trace execution through call chain. */
correlation_id: string;
/** The duration of the operation in milliseconds */
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]]
*/
error: ErrorDescription;
}