Class: OpenTelemetryOutboundInterceptor
opentelemetry.OpenTelemetryOutboundInterceptor
Intercepts outbound calls to schedule an Activity
Wraps the operation in an opentelemetry Span and passes it to the Activity via headers.
Implements
Constructors
constructor
• new OpenTelemetryOutboundInterceptor(): OpenTelemetryOutboundInterceptor
Returns
OpenTelemetryOutboundInterceptor
Methods
continueAsNew
▸ continueAsNew(input
, next
): Promise
<never
>
Called when Workflow calls continueAsNew
Parameters
Name | Type |
---|---|
input | ContinueAsNewInput |
next | OmitLastParam <(input : ContinueAsNewInput , next : OmitLastParam<(input: ContinueAsNewInput, next: OmitLastParam<...>) => Promise<never>>) => Promise <never >> |
Returns
Promise
<never
>
Implementation of
WorkflowOutboundCallsInterceptor.continueAsNew
getLogAttributes
▸ getLogAttributes(input
, next
): Record
<string
, unknown
>
Called on each invocation of the workflow.log
methods.
The attributes returned in this call are attached to every log message.
Parameters
Name | Type |
---|---|
input | GetLogAttributesInput |
next | OmitLastParam <(input : GetLogAttributesInput , next : OmitLastParam<(input: GetLogAttributesInput, next: OmitLastParam<...>) => Record<string, unknown>>) => Record <string , unknown >> |
Returns
Record
<string
, unknown
>
Implementation of
WorkflowOutboundCallsInterceptor.getLogAttributes
scheduleActivity
▸ scheduleActivity(input
, next
): Promise
<unknown
>
Called when Workflow schedules an Activity
Parameters
Name | Type |
---|---|
input | ActivityInput |
next | OmitLastParam <(input : ActivityInput , next : OmitLastParam<(input: ActivityInput, next: OmitLastParam<...>) => Promise<unknown>>) => Promise <unknown >> |
Returns
Promise
<unknown
>
result of the activity execution
Implementation of
WorkflowOutboundCallsInterceptor.scheduleActivity
scheduleLocalActivity
▸ scheduleLocalActivity(input
, next
): Promise
<unknown
>
Called when Workflow schedules a local Activity
Parameters
Name | Type |
---|---|
input | LocalActivityInput |
next | OmitLastParam <(input : LocalActivityInput , next : OmitLastParam<(input: LocalActivityInput, next: OmitLastParam<...>) => Promise<unknown>>) => Promise <unknown >> |
Returns
Promise
<unknown
>
result of the activity execution
Implementation of
WorkflowOutboundCallsInterceptor.scheduleLocalActivity