Closed mgabeler-lee-6rs closed 2 weeks ago
Adds WithContext() option that will cause the gin context to be passed to the zerolog event via logger.Ctx(...)
WithContext()
logger.Ctx(...)
This is useful for zerolog hooks to be able to attach additional metadata, such as tracing span IDs and other contextual metadata to the event.
fixed in https://github.com/gin-contrib/logger/commit/9c6ff6577a0d6f5ad74c265ba52ca3aab881a5c5
Adds
WithContext()
option that will cause the gin context to be passed to the zerolog event vialogger.Ctx(...)
This is useful for zerolog hooks to be able to attach additional metadata, such as tracing span IDs and other contextual metadata to the event.