Skip to content

Commit

Permalink
chore: add context to zerolog event hook
Browse files Browse the repository at this point in the history
  • Loading branch information
anonychun committed Jul 12, 2024
1 parent 6ffe11d commit 6094acc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extra/bunzerolog/zerohook.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func NewQueryHook(opts ...Option) *QueryHook {
duration := h.now().Sub(event.StartTime)

return zerevent.
Ctx(ctx).
Err(event.Err).
Str("query", event.Query).
Str("operation", event.Operation()).
Expand Down

0 comments on commit 6094acc

Please sign in to comment.