Loading
Commits on Source 3
-
Elliot Forbes authored
Introduces log.AppendFields(ctx, attrs...), a shorthand for WithLogger(ctx, FromContext(ctx).With(attrs...)). Consumers migrating to v2/log were repeating that three-call pattern 20+ times to layer request-scoped fields onto the context logger as a request flowed through the call chain. AppendFields removes the boilerplate and matches the slog.Logger.With signature so callers can pass either typed slog.Attr values from the existing field helpers (log.HTTPMethod, log.CorrelationID, ...) or loose key-value pairs. Co-Authored-By:Claude Opus 4.7 (1M context) <noreply@anthropic.com>
-
Elliot Forbes authored
Co-Authored-By:Claude Sonnet 4.6 <noreply@anthropic.com>
-
Peter Leitzen authored
feat(v2/log): add AppendFields helper for context logger enrichment See merge request !449 Merged-by:
Peter Leitzen <pleitzen@gitlab.com> Approved-by:
Peter Leitzen <pleitzen@gitlab.com> Reviewed-by:
Peter Leitzen <pleitzen@gitlab.com> Co-authored-by:
e_forbes <eforbes@gitlab.com>