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

Account the time to deliver connection pool events as part of the reported duration #1290

Merged
merged 2 commits into from Jan 5, 2024

Conversation

stIncMale
Copy link
Member

@stIncMale stIncMale commented Jan 3, 2024

@stIncMale stIncMale requested review from rozza and jyemin January 3, 2024 20:23
@stIncMale stIncMale self-assigned this Jan 3, 2024
Comment on lines 513 to 519
TimePoint tConnectionCreated = TimePoint.now();
logEventMessage("Connection created",
"Connection created: address={}:{}, driver-generated ID={}",
connectionId.getLocalValue());

connectionPoolListener.connectionCreated(new ConnectionCreatedEvent(connectionId));
return TimePoint.now();
return tConnectionCreated;
Copy link
Member Author

Choose a reason for hiding this comment

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

This change, and a similar change in the connectionCheckoutStarted method are the only behavioral changes in the PR.

@stIncMale stIncMale requested a review from jyemin January 4, 2024 21:43
@jyemin jyemin removed the request for review from rozza January 5, 2024 19:55
@jyemin
Copy link
Contributor

jyemin commented Jan 5, 2024

One reviewer is sufficient for this. Removed @rozza

@stIncMale stIncMale merged commit 42fdd3f into mongodb:master Jan 5, 2024
58 checks passed
@stIncMale stIncMale deleted the JAVA-5121 branch January 5, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants