Skip to content

Conversation

@ignitz
Copy link
Contributor

@ignitz ignitz commented Aug 31, 2025

Description

Currently, when Trino Gateway logs non-OK HTTP status codes, such as 401 Unauthorized, it does not include information about the user who initiated the request. This lack of context makes troubleshooting difficult, as it requires manually cross-referencing timestamps with external logs (e.g., Ingress) to identify the source of the problematic requests.

Additional context and related issues

Just to include the username in the log output for these error scenarios, significantly speeding up diagnostics and reducing needed to find those users in another place.

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required, with the following suggested text:

Currently, when Trino Gateway logs non-OK HTTP status codes, such as 401 Unauthorized, it does not include information about the user who initiated the request. This lack of context makes troubleshooting difficult, as it requires manually cross-referencing timestamps with external logs (e.g., Ingress) to identify the source of the problematic requests. This change enhances the logging mechanism to include the username in the log output for these error scenarios, significantly speeding up diagnostics and reducing operational overhead.
@cla-bot cla-bot bot added the cla-signed label Aug 31, 2025
Copy link
Member

@Chaho12 Chaho12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx. LGTM 👍

@Chaho12 Chaho12 merged commit a37a345 into trinodb:main Aug 31, 2025
2 checks passed
@github-actions github-actions bot added this to the 16 milestone Aug 31, 2025
@ebyhr
Copy link
Member

ebyhr commented Sep 1, 2025

The commit body is too long. Please follow https://trino.io/development/process.html#pull-request-and-commit-guidelines- from next time.

@Chaho12
Copy link
Member

Chaho12 commented Sep 1, 2025

Got it. Will make sure to check if commit body is not too long

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants