-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix(NODE-5818): Add feature flagging to server selection logging #3974
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
Perf Analysis ResultsEvergreen Trends Here is the Spreadsheet Link. |
The PR is approved by the team, but blocked by DEVPROD-4523 and can be merged only when the waterfall is fixed. |
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.
I think we just need to rebase now, remove the willLog
checks, and then make all calls to the mongologger use topology.client.mongoLogger?.debug()
now.
@durran what is your reasoning for removing the |
72195b1
Sinon stub issue with testing, almost ready for review added test, ready for review Removed extranous changes from other PR lint fix made all mongoLogger accesses in topology.ts be conditional
72195b1
to
0751030
Compare
@aditi-khare-mongoDB The logger instantiation PR refactored the |
@durran The focus of this PR is so that a |
Ah ok, thanks for clarifying that. Then I think we can proceed here. |
Description
Add feature flagging to server selection logging, so that event instances are only created when
willLog
returnstrue
for the logging configuration.EVG Perf Analysis Results
Upon comparing the perf results of NODE-5818's changes to the commit before server selection logging was merged (b93d405, there are no significant regressions through this commit.
Both commits were rerun at the same time to ensure no ci changes influence the results.
Here is the Spreadsheet Link.
What is changing?
Same as above.
Is there new documentation needed for these changes?
No.
What is the motivation for this change?
Before: (Due to server selection logging merge NODE-4687)
findOne - 6% throughput reduction
runCommand - 9% throughput reduction
smallDocInsertOne - 6.5% throughput reduction
Double check the following
npm run check:lint
scripttype(NODE-xxxx)[!]: description
feat(NODE-1234)!: rewriting everything in coffeescript