sqldb-logger icon indicating copy to clipboard operation
sqldb-logger copied to clipboard

zerologadapter: Pass the context to logger

Open 0xjac opened this issue 11 months ago • 0 comments

  • Pass the context to the logger to be used by hooks.
  • Update test case with a hook to read value from the context.
  • Bump zerolog to v.1.30.0 to use zerolog.Event.Ctx.

Edit: This is useful to retrieve values from the context in hooks to include in logs, such as a trace ID.

0xjac avatar Jan 08 '25 12:01 0xjac