-
Notifications
You must be signed in to change notification settings - Fork 578
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
Log HTTP/RPC message processing stats #10141
base: master
Are you sure you want to change the base?
Conversation
b1c480b
to
f166915
Compare
f166915
to
8e7a3d1
Compare
8e7a3d1
to
c8832b5
Compare
c8832b5
to
c63f842
Compare
c63f842
to
ec79ae6
Compare
Didn't change anything, just rebased! |
For completeness, as there is no actual cross-reference between these two PRs yet: #10140 is a soft dependency of this PR. The purpose of this PR is to provide logging for all places where |
Are you planning (@yhabteab) / expecting (@Al2Klimov) further changes to this PR regarding the unresolved conversations? I saw that there was a bit of interaction in #10167 but does that mean you want to use it here? |
Honestly, I have concerns about this approach; it appears rather random. Once #9990 is merged, it could become even more chaotic. If you, @julianbrost, believe we should use #10167, we can proceed with it, but I think it's unnecessary since we don't require that level of precision to determine whether it has blocked for a long time.
I've just rephrased the log message with the diagnostic error messages. |
ec79ae6
to
444323d
Compare
444323d
to
2bd789e
Compare
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.
@julianbrost To answer your question:
If you merge while Yonas is still absent, I'd just rebase my PR(s).
There were a few things I didn't like regarding the changes in
The current state of my playing around can be seen in commit 5de11a4. The main change is that there are now three distinct places where log messages can be generated. While this duplicates some code2, it doesn't even make the code longer overall. Apart from that, this commit also contains a few other minor tweak. Please have a look at this and let me know what you think. Footnotes
|
How does it make any difference when the
And why exactly do we need this separation? Especially, why do you need to produce a different log entry based on the used log severity? |
Example of a log message from the existing code:
Example of a log message that your PR would generate:
Did you change the log message because you think it's an improvement to the log message or because it allowed you to combine the different log messages into basically the same with just minor differences for the different situations?
I think it's just nicer if the relevant part gets mentioned first. And in case of an error happening, that's that, not how long the processing took.
They are logged in the same context, but the situation that's warned about is different, so different messages for "an error happened" and "this was surprisingly slow" don't sound like a bad idea to me. We don't need this but we might want better log messages and I tried to make a suggestion in that direction. |
You are going to see either one of those at a time, the debug or the warning message, but never both entries at the same time, so separating them makes little sense to me. Apart from that, it shouldn't make any difference in the end result whether you prefix the message with |
No, not as an improvement, but I just wanted to perform one such thing rather than x times that are actually not different from one another. |
2bd789e
to
27c580c
Compare
27c580c
to
fa1bff2
Compare
Co-Authored-By: Julian Brost <julian.brost@icinga.com>
fa1bff2
to
ef2277f
Compare
This PR provides an alternative implementation of #10083, but without having to introduce a new log class, and with much more contextual log details.
closes #10083