Class: Trace

Defined in: src/types/logging/trace.types.ts:11

Extends

Constructors

Constructor

new Trace(data: TraceOptions): Trace;
Defined in: src/types/logging/trace.types.ts:16

Parameters

data
TraceOptions

Returns

Trace

Overrides

StepWithChildSpans.constructor

Properties

createdAt

createdAt: Date;
Defined in: src/types/logging/step.types.ts:110

Inherited from

StepWithChildSpans.createdAt

datasetInput?

optional datasetInput: string;
Defined in: src/types/logging/step.types.ts:117

Inherited from

StepWithChildSpans.datasetInput

datasetMetadata?

optional datasetMetadata: Record<string, string> = {};
Defined in: src/types/logging/step.types.ts:119

Inherited from

StepWithChildSpans.datasetMetadata

datasetOutput?

optional datasetOutput: string;
Defined in: src/types/logging/step.types.ts:118

Inherited from

StepWithChildSpans.datasetOutput

externalId?

optional externalId: string;
Defined in: src/types/logging/step.types.ts:115

Inherited from

StepWithChildSpans.externalId

input

input: string;
Defined in: src/types/logging/trace.types.ts:13

Overrides

StepWithChildSpans.input

metrics

metrics: Metrics;
Defined in: src/types/logging/step.types.ts:114

Inherited from

StepWithChildSpans.metrics

name

name: string = "";
Defined in: src/types/logging/step.types.ts:109

Inherited from

StepWithChildSpans.name

output?

optional output: string;
Defined in: src/types/logging/trace.types.ts:14

Overrides

StepWithChildSpans.output

spans

spans: Span[] = [];
Defined in: src/types/logging/span.types.ts:39

Inherited from

StepWithChildSpans.spans

statusCode?

optional statusCode: number;
Defined in: src/types/logging/step.types.ts:113

Inherited from

StepWithChildSpans.statusCode

stepNumber?

optional stepNumber: number;
Defined in: src/types/logging/step.types.ts:116

Inherited from

StepWithChildSpans.stepNumber

tags?

optional tags: string[];
Defined in: src/types/logging/step.types.ts:112

Inherited from

StepWithChildSpans.tags

type

type: StepType = StepType.trace;
Defined in: src/types/logging/trace.types.ts:12

Overrides

StepWithChildSpans.type

userMetadata

userMetadata: Record<string, string> = {};
Defined in: src/types/logging/step.types.ts:111

Inherited from

StepWithChildSpans.userMetadata

Methods

addChildSpan()

addChildSpan(...spans: Span[]): void;
Defined in: src/types/logging/span.types.ts:54

Parameters

spans
Span[]

Returns

void

Inherited from

StepWithChildSpans.addChildSpan

toJSON()

toJSON(): Record<string, any>;
Defined in: src/types/logging/span.types.ts:47

Returns

Record<string, any>

Inherited from

StepWithChildSpans.toJSON

validateInputOutputSerializable()

validateInputOutputSerializable<T>(val: T): T;
Defined in: src/types/logging/step.types.ts:142

Type Parameters

T
T = | string | string[] | Document | Message | Record<string, string> | Message[] | Record<string, string>[] | Record<string, string>[] | Document[]

Parameters

val
T

Returns

T

Inherited from

StepWithChildSpans.validateInputOutputSerializable