-
Notifications
You must be signed in to change notification settings - Fork 27
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
feat(read_handler): log when max hearbeat missed #151
Conversation
This can be useful when debugging if the limit was reached, otherwise there is no easy way to tell.
I'm also wondering if maybe we should change error!("missing heartbeat from server for {}", self.amqp_connection); to a warn instead? |
@RoloEdits two missed heartbeats (and it's usually two or zero, very rarely just one) per AMQP 0-9-1 spec require the client (or server) to close the connection. So both a warning and an error can be appropriate assuming that right before closing the connection, this client will log a relevant error of sorts. |
Yeah, currently when its just one miss, which isn't the end of the world, its logged as an error, which when filtering can make things pretty noisy depending on the sink you are using. A warn makes more sense to me in this case. The actual error would be the connection closing due to the misses. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #151 +/- ##
=======================================
Coverage 86.47% 86.48%
=======================================
Files 40 40
Lines 6619 6620 +1
=======================================
+ Hits 5724 5725 +1
Misses 895 895 ☔ View full report in Codecov by Sentry. |
This is in compliance with the spec.
Co-authored-by: gftea <[email protected]>
@RoloEdits thanks! |
This can be useful when debugging if the limit was reached, otherwise there is no easy way to tell.
Also fixed some typos.