Skip to content

Latest commit

 

History

History
 
 

interceptor

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Interceptor Sample

This sample shows how to make a worker interceptor that intercepts workflow and activity GetLogger calls to customize the logger.

Steps to run this sample:

  1. Run a Temporal service.
  2. Run the following command to start the worker
go run ./interceptor/worker
  1. Run the following command to start the example
go run ./interceptor/starter

Notice the log output has the WorkflowStartTime/ActivityStartTime tags on the logs.