Skip to content
This repository was archived by the owner on Oct 2, 2026. It is now read-only.
This repository was archived by the owner on Oct 2, 2026. It is now read-only.

Wide events loggin support #46

Description

@mishankov

Activity

  1. mishankov commented on Jan 29, 2026

    @mishankov
    MemberAuthor
  2. linked a pull request that will close this issueWide event logging #59on Feb 15, 2026
  3. linked a pull request that will close this issueWide event logging #60on Feb 16, 2026
  4. mishankov commented on Feb 16, 2026

    @mishankov
    MemberAuthor
    • Add middleware that would create wide log event and put in context
    • Remove default time field from wide event log
      wide-events uses slog under the hood, and the standard time field is added by the handler.
      Drop it with HandlerOptions.ReplaceAttr:
    opts := &slog.HandlerOptions{
    	Level: level,
    	ReplaceAttr: func(_ []string, a slog.Attr) slog.Attr {
    		if a.Key == slog.TimeKey {
    			return slog.Attr{} // remove default slog "time"
    		}
    		return a
    	},
    }

    Then use opts in both handlers:

    slog.NewJSONHandler(w, opts)
    slog.NewTextHandler(w, opts)
    • Move trace id middleware to log package
    • Merge wide event logging to log package
  5. linked a pull request that will close this issueWide events logging #61on Feb 16, 2026
  6. linked a pull request that will close this issueWide events logging #62on Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions