-
Notifications
You must be signed in to change notification settings - Fork 10.3k
HeartbeatSlow warning missing context #12760
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
Comments
Sounds like a good idea. We wouldn't be able to go below 1s of precision though since we're using the cached system clock that has a maximum precision of 1s. |
Basically just a matter of comparing |
Hello, I would like to take this issue as my first, if possible. Methods that I found:
|
That @zHaytam. I agree that it makes sense change the signature of the (I)KestrelTrace.HeartBeatSlow methods and Action to take another argument representing duration. I'd probably make the argument a TimeSpan but just print out TimeSpan.TotalSeconds in the log message. |
I have another question:
Then wouldn't calculating the difference between |
After thinking about it some more, if the timer runs every Maybe we could add another event inside the finally block where it's fired if the difference between |
The warning outputs
It would be good it it included in the message how long it took, rather than just the threshold.
e.g. was it 1ms over, 1sec over, 1min over, 1hr over etc; they are all very different magnitudes
/cc @halter73
The text was updated successfully, but these errors were encountered: