refactor: add request/correlation IDs to logs #9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
pkg/logproduces flat log lines with no per-request identifier. When multiple HTTP-mode clients are calling tools concurrently, lines from different requests interleave with no way to correlate "this error" with "that tool call".Suggested direction
ctxpkg/logread it fromctxand prefix every lineX-Request-IDheader to Gitea so server-side logs can join up