Skip to main content

Class: OpenTelemetryActivityInboundInterceptor

Intercepts calls to start an Activity.

Wraps the operation in an opentelemetry Span and links it to a parent Span context if one is provided in the Activity input headers.

Implements​

Constructors​

Constructor​

new OpenTelemetryActivityInboundInterceptor(ctx, options?): OpenTelemetryActivityInboundInterceptor

Parameters​

ctx​

Context

options?​

InterceptorOptions

Returns​

OpenTelemetryActivityInboundInterceptor

Methods​

execute()​

execute(input, next): Promise<unknown>

Called when Activity function is executed

Parameters​

input​

ActivityExecuteInput

next​

OmitLastParam<(input, next) => Promise<unknown>>

Returns​

Promise<unknown>

result of Activity function

Implementation of​

ActivityInboundCallsInterceptor.execute