-
Notifications
You must be signed in to change notification settings - Fork 532
RUBY-2458 Link heartbeat succeeded/failed to started events #2147
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
Conversation
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.
Just a few nits - doesn't look like the Evergreen failures are directly related to this PR so LGTM after those 2 comments.
lib/mongo/monitoring.rb
Outdated
@@ -328,14 +328,20 @@ def publish_heartbeat(server, awaited: false) | |||
rescue => exc | |||
if monitoring? | |||
event = Event::ServerHeartbeatFailed.new( | |||
server.address, Time.now-start_time, exc, awaited: awaited) | |||
server.address, Time.now-start_time, exc, |
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.
Bit of a nit but I would expect all parameters do be on new lines or not - not a combination of them.
lib/mongo/monitoring.rb
Outdated
failed(SERVER_HEARTBEAT, event) | ||
end | ||
raise | ||
else | ||
if monitoring? | ||
event = Event::ServerHeartbeatSucceeded.new( | ||
server.address, Time.now-start_time, awaited: awaited) | ||
server.address, Time.now-start_time, |
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.
Same as above with parameters.
All of the positional parameters were on the same line but I made each of them take up their own line as you requested. |
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.
LGTM
* master: RUBY-2459 Include connection purpose in platform metadata (mongodb#2148) RUBY-2458 Link heartbeat succeeded/failed to started events (mongodb#2147) RUBY-2446 Fix intermittent SDAM test failures (mongodb#2145)
No description provided.