-
Notifications
You must be signed in to change notification settings - Fork 8
feat(build-info): identify server name COMPASS-9930 #585
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
d68cd4a to
73f6e71
Compare
| } | ||
|
|
||
| try { | ||
| await adminCommand({ getParameter: 'foo' }); |
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.
We're sensitive about startup times in some products (e.g. mongosh) so I'd suggest running the commands in parallel and awaiting with Promise.all()
… only adminCommand
73f6e71 to
6adc59d
Compare
| connectionString, | ||
| adminCommand, | ||
| }: IdentifyServerNameOptions): Promise<string> { | ||
| try { |
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.
Can we short-circuit on mongodb.net hosts here to make sure we're not wasting time running these commands in web?
Description
Add ability to run commands to determine server name.
Open Questions
Checklist