Skip to content
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

GODRIVER-2910 Add durations to connection pool events. #1590

Merged
merged 3 commits into from Apr 9, 2024

Conversation

matthewdale
Copy link
Collaborator

@matthewdale matthewdale commented Apr 3, 2024

GODRIVER-2910

Summary

  • Add a Duration field to event.PoolEvent.
  • Set the Duration on "ConnectionReady", "ConnectionCheckedOut", and "ConnectionCheckOutFailed" events.

Background & Motivation

Users have asked for the ability to measure the duration of some processes that the connection pool performs that can contribute to increased latency, increased errors, or other issues if not monitored and tuned correctly. Those requested measurements are:

  • The checkout duration.
  • The total amount of time a new connection took to establish (i.e. the time between requesting a new connection and the new connection being ready to send application operations on).

@mongodb-drivers-pr-bot mongodb-drivers-pr-bot bot added the priority-3-low Low Priority PR for Review label Apr 3, 2024
Copy link

API Change Report

./event

compatible changes

PoolEvent.Duration: added

@matthewdale matthewdale marked this pull request as ready for review April 5, 2024 00:10
@matthewdale matthewdale added priority-1-high High Priority PR for Review and removed priority-3-low Low Priority PR for Review labels Apr 5, 2024
qingyang-hu
qingyang-hu previously approved these changes Apr 5, 2024
Copy link
Collaborator

@qingyang-hu qingyang-hu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

prestonvasquez
prestonvasquez previously approved these changes Apr 5, 2024
@matthewdale matthewdale merged commit 94dfdff into mongodb:v1 Apr 9, 2024
27 of 33 checks passed
blink1073 pushed a commit to blink1073/mongo-go-driver that referenced this pull request Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-1-high High Priority PR for Review
Projects
None yet
3 participants