Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add rationale
Browse files Browse the repository at this point in the history
W-A-James committed Jan 5, 2024

Verified

This commit was signed with the committer’s verified signature.
kanadgupta Kanad Gupta
1 parent 879e676 commit fd946d2
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -694,6 +694,17 @@ Tests

See the `README <https://github.com/mongodb/specifications/server-discovery-and-monitoring/tests/monitoring/README.rst>`_.

---------
Rationale
---------

Why is the ``ServerHeartbeatStartedEvent`` emitted before monitor connection establishment?
-------------------------------------------------------------------------------------------

In the event that a driver fails to create a connection, this would result in the emission of the
``ServerHeartbeatFailedEvent``, implying that the creation of the monitor connection is a part the
initial heartbeat and so should be accounted for in the ``duration`` field of the
``ServerHeartbeatFailedEvent`` and ``ServerHeartbeatSucceededEvent``.

Changelog
=========

0 comments on commit fd946d2

Please sign in to comment.