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

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