Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve logging with requestId #27804

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

marjisound
Copy link
Contributor

What does this change?

This PR adds RequestIdFilter to the filters of the admin application. This filter ensures that the x-gu-xid header is added to incoming requests.

Additionally, I introduced new functions in GuLogging that take an implicit request parameter. These functions attempt to retrieve the x-gu-xid from request headers and include it as the requestId field in logs.

Using these new functions, I updated nearly all logs generated during the request journey. I say "nearly all" because, in the frontend, many logs are produced via agents or background jobs, which are outside the request flow. I’ve done my best to capture all logs within the request journey, but I may have missed some.

@marjisound marjisound requested review from a team as code owners February 26, 2025 12:38
@marjisound marjisound changed the title Improve logging with request Improve logging with requestId Feb 26, 2025
@marjisound marjisound marked this pull request as draft February 26, 2025 12:40
@marjisound marjisound added this to the Health milestone Feb 26, 2025
@marjisound marjisound linked an issue Feb 26, 2025 that may be closed by this pull request
@marjisound marjisound self-assigned this Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement request ID logging
1 participant