This sample shows how to make a worker interceptor that intercepts workflow and activity GetLogger
calls to customize
the logger.
- Run a Temporal service.
- Run the following command to start the worker
go run ./interceptor/worker
- Run the following command to start the example
go run ./interceptor/starter
Notice the log output has the WorkflowStartTime
/ActivityStartTime
tags on the logs.