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?
)
Parameters
Name | Type |
---|---|
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
Name | Type |
---|---|
input | WorkflowStartInput |
next | OmitLastParam <(input : WorkflowStartInput , next : OmitLastParam <(input: WorkflowStartInput, next: OmitLastParam<...>) => Promise<string>>) => Promise <string >> |
Returns
Promise
<string
>
Implementation of
WorkflowClientInterceptor.start