-
Notifications
You must be signed in to change notification settings - Fork 806
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
Add contextual information and query statistics to log #5604
Add contextual information and query statistics to log #5604
Conversation
1e4d111
to
8230bed
Compare
} | ||
ruleDetail := rules.FromOriginContext(ctx) | ||
logMessage = append(logMessage, | ||
"rule", ruleDetail.Name, | ||
"query", qs, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will be huge sometimes, and it will repetitive. We can add it for now. But later if we have log problems, we can remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this looks good. Just some small nits.
72da911
to
1d370f0
Compare
Merge on green |
Signed-off-by: Anand Rajagopal <[email protected]>
Head branch was pushed to by a user without write access
1d370f0
to
01d068b
Compare
What this PR does:
This PR adds some additional contextual information and query statistics to Ruler logs. This will be in effect only when query statistics is enabled
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]