Skip to main content

Class: ActivityInboundLogInterceptor

worker.ActivityInboundLogInterceptor

Logs Activity execution starts and their completions

Implements

Constructors

constructor

new ActivityInboundLogInterceptor(ctx, logger)

Parameters

NameType
ctxContext
loggerLogger

Methods

execute

execute(input, next): Promise<unknown>

Called when Activity function is executed

Parameters

NameType
inputActivityExecuteInput
nextOmitLastParam<(input: ActivityExecuteInput, next: OmitLastParam<(input: ActivityExecuteInput, next: OmitLastParam<...>) => Promise<unknown>>) => Promise<unknown>>

Returns

Promise<unknown>

result of Activity function

Implementation of

ActivityInboundCallsInterceptor.execute