Skip to main content

Class: OpenTelemetryWorkflowClientInterceptor

opentelemetry.OpenTelemetryWorkflowClientInterceptor

Intercepts calls to start a Workflow.

Wraps the operation in an opentelemetry Span and passes it to the Workflow via headers.

Implements

Constructors

constructor

new OpenTelemetryWorkflowClientInterceptor(options?): OpenTelemetryWorkflowClientInterceptor

Parameters

NameType
options?InterceptorOptions

Returns

OpenTelemetryWorkflowClientInterceptor

Methods

signal

signal(input, next): Promise<void>

Intercept a service call to signalWorkflowExecution

If you implement this method, signalWithStart most likely needs to be implemented too

Parameters

NameType
inputWorkflowSignalInput
nextOmitLastParam<(input: WorkflowSignalInput, next: OmitLastParam<(input: WorkflowSignalInput, next: OmitLastParam<...>) => Promise<void>>) => Promise<void>>

Returns

Promise<void>

Implementation of

WorkflowClientInterceptor.signal


start

start(input, next): Promise<string>

Intercept a service call to startWorkflowExecution

If you implement this method, signalWithStart most likely needs to be implemented too

Parameters

NameType
inputWorkflowStartInput
nextOmitLastParam<(input: WorkflowStartInput, next: OmitLastParam<(input: WorkflowStartInput, next: OmitLastParam<...>) => Promise<string>>) => Promise<string>>

Returns

Promise<string>

Implementation of

WorkflowClientInterceptor.start