Skip to main content

Class: OpenTelemetryWorkflowClientCallsInterceptor

opentelemetry.OpenTelemetryWorkflowClientCallsInterceptor

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 OpenTelemetryWorkflowClientCallsInterceptor(options?)

Parameters

NameType
options?InterceptorOptions

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

WorkflowClientCallsInterceptor.start