Class: StepWithChildSpans

Defined in: src/types/logging/span.types.ts:41

Extends

Extended by

Constructors

Constructor

new StepWithChildSpans(type: StepType, data: StepWithChildSpansOptions): StepWithChildSpans;
Defined in: src/types/logging/span.types.ts:44

Parameters

type
StepType
data
StepWithChildSpansOptions

Returns

StepWithChildSpans

Overrides

BaseSpan.constructor

Properties

createdAt

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

Inherited from

BaseSpan.createdAt

datasetInput?

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

Inherited from

BaseSpan.datasetInput

datasetMetadata?

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

Inherited from

BaseSpan.datasetMetadata

datasetOutput?

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

Inherited from

BaseSpan.datasetOutput

externalId?

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

Inherited from

BaseSpan.externalId

input

input: StepAllowedInputType;
Defined in: src/types/logging/span.types.ts:27

Inherited from

BaseSpan.input

metrics

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

Inherited from

BaseSpan.metrics

name

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

Inherited from

BaseSpan.name

output?

optional output: StepAllowedOutputType;
Defined in: src/types/logging/step.types.ts:111

Inherited from

BaseSpan.output

redactedInput?

optional redactedInput: StepAllowedInputType;
Defined in: src/types/logging/span.types.ts:28

Inherited from

BaseSpan.redactedInput

redactedOutput?

optional redactedOutput: StepAllowedOutputType;
Defined in: src/types/logging/step.types.ts:112

Inherited from

BaseSpan.redactedOutput

spans

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

statusCode?

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

Inherited from

BaseSpan.statusCode

stepNumber?

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

Inherited from

BaseSpan.stepNumber

tags?

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

Inherited from

BaseSpan.tags

type

type: StepType;
Defined in: src/types/logging/step.types.ts:108

Inherited from

BaseSpan.type

userMetadata

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

Inherited from

BaseSpan.userMetadata

Methods

addChildSpan()

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

Parameters

spans
Span[]

Returns

void

toJSON()

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

Returns

Record<string, any>

Overrides

BaseSpan.toJSON

validateInputOutputSerializable()

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

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

BaseSpan.validateInputOutputSerializable