Class: ActivityInboundLogInterceptor
This interceptor was previously used to log Activity execution starts and their completions. It is now deprecated and behaves as a noop in most cases. It is only kept arround to avoid breaking code out there that was previously refering to it.
Deprecated
ActivityInboundLogInterceptor is deprecated. Activity lifecycle events are now automatically logged
by the SDK. To customize activity log attributes, register a custom ActivityOutboundCallsInterceptor
that intercepts the getLogAttributes() method. To customize where log messages are sent, set the
Runtime.logger property.
Implements
Constructors
Constructor
new ActivityInboundLogInterceptor(
ctx,logger?):ActivityInboundLogInterceptor
Parameters
ctx
logger?
Returns
ActivityInboundLogInterceptor
Methods
execute()
execute(
input,next):Promise<unknown>
Called when Activity function is executed
Parameters
input
next
OmitLastParam<(input, next) => Promise<unknown>>
Returns
Promise<unknown>
result of Activity function