[FEATURE REQUEST] Logger interface support context.Context
#1016
Labels
enhancement
New feature or request
context.Context
#1016
Is your feature request related to a problem? Please describe.
Current
log.Base
interface doesn't support explicitly passctx
param which is important for log observability such as OpenTelemetry.Describe the solution you'd like
Provide another interface which accepts a
ctx context.Context
parameter, such as:Describe alternatives you've considered
No alternatives.
Additional context
In production environments, we need something like
trace_id
to relate many logs. So, it's important to log with context.The text was updated successfully, but these errors were encountered: