GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — samples-go/logger-interceptor at main · temporalio/samples-go

Expand file tree

/

logger-interceptor

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

logger-interceptor

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
starter
starter
 
 
worker
worker
 
 
README.md
README.md
 
 
interceptor.go
interceptor.go
 
 
workflow.go
workflow.go
 
 
workflow_test.go
workflow_test.go
 
 

README.md

Outline

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 ./logger-interceptor/worker
  1. Run the following command to start the example
go run ./logger-interceptor/starter

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

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.