package zerolog import ( zl "github.com/rs/zerolog" "go.wperron.io/themis/correlation" ) type CorrelationHook struct{} func (h CorrelationHook) Run(e *zl.Event, level zl.Level, msg string) { ctx := e.GetCtx() c := correlation.FromContext(ctx) if c != nil { e.Stringer("correlation_id", c) } }