Interceptors - Go SDK
Interceptors wrap inbound and outbound Temporal calls so you can apply shared behavior such as tracing, logging, or authorization. See Interceptors for the inbound vs outbound model.
Register them on the Client (client.Options.Interceptors), the Worker (worker.Options.Interceptors), or both. Embed
ClientInterceptorBase / WorkerInterceptorBase and override only the methods you need. Full API:
go.temporal.io/sdk/interceptor.
Workflow interceptors and replay
Workflow interceptor methods also run during replay. Use replay-safe APIs for logging, randomness, and time.