Interceptor for activity function execution on the activity worker side.
Runs inside the activity's activityAsyncLocalStorage context, wrapping
the actual activity function invocation — not the proxy call in the workflow.
Unlike workflow-side interceptors, this runs where the activity actually executes.
Use it for cross-cutting concerns like logging, metrics, auth validation,
or error enrichment at the point where the activity actually executes.
Interceptor for activity function execution on the activity worker side. Runs inside the activity's
activityAsyncLocalStoragecontext, wrapping the actual activity function invocation — not the proxy call in the workflow.Unlike workflow-side interceptors, this runs where the activity actually executes. Use it for cross-cutting concerns like logging, metrics, auth validation, or error enrichment at the point where the activity actually executes.
Example