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

rls: Reduce RLS channel logging #11709

Merged
merged 2 commits into from
Nov 27, 2024
Merged

rls: Reduce RLS channel logging #11709

merged 2 commits into from
Nov 27, 2024

Conversation

ejona86
Copy link
Member

@ejona86 ejona86 commented Nov 26, 2024

The channel log is shared by many components and is poorly suited to the noise of per-RPC events. This commit restricts RLS usage of the logger to no more frequent than cache entry events. This may still be too frequent, but should substantially improve the signal-to-noise and we can do further rework as needed.

Many of the log entries were poor because they lacked enough context. They weren't even clear they were from RLS. The cache entry events now regularly include the request key in the logs, allowing you to follow events for specific keys. I would have preferred using the hash code, but NumberFormat is annoying and toString() may be acceptable given its convenience.

This commit reverts much of eba699a. Those logs have not proven to be helpful as they produce more output than can be reasonably stored.

CC @DNVindhya

The channel log is shared by many components and is poorly suited to
the noise of per-RPC events. This commit restricts RLS usage of the
logger to no more frequent than cache entry events. This may still be
too frequent, but should substantially improve the signal-to-noise and
we can do further rework as needed.

Many of the log entries were poor because they lacked enough context.
They weren't even clear they were from RLS. The cache entry events now
regularly include the request key in the logs, allowing you to follow
events for specific keys. I would have preferred using the hash code,
but NumberFormat is annoying and toString() may be acceptable given its
convenience.

This commit reverts much of eba699a. Those logs have not proven to be
helpful as they produce more output than can be reasonably stored.
@ejona86 ejona86 requested a review from larry-safran November 26, 2024 19:49
@larry-safran larry-safran self-requested a review November 27, 2024 17:32
@ejona86 ejona86 merged commit 7f9c1f3 into grpc:master Nov 27, 2024
14 of 15 checks passed
@ejona86 ejona86 deleted the rls-logging branch November 27, 2024 19:37
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.

2 participants