Skip to content

Conversation

@kraenhansen
Copy link
Collaborator

Description

Add ability to run commands to determine server name.

Open Questions

Checklist

@kraenhansen kraenhansen self-assigned this Oct 24, 2025
@kraenhansen kraenhansen added the enhancement New feature or request label Oct 24, 2025
@kraenhansen kraenhansen marked this pull request as ready for review October 24, 2025 13:35
@kraenhansen kraenhansen requested a review from addaleax October 24, 2025 20:25
@kraenhansen kraenhansen force-pushed the kh/build-info-identify-server-name branch from d68cd4a to 73f6e71 Compare October 27, 2025 10:28
}

try {
await adminCommand({ getParameter: 'foo' });
Copy link
Collaborator

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()

@kraenhansen kraenhansen force-pushed the kh/build-info-identify-server-name branch from 73f6e71 to 6adc59d Compare October 27, 2025 11:06
@kraenhansen kraenhansen requested a review from addaleax October 27, 2025 11:15
@kraenhansen kraenhansen merged commit be43714 into main Oct 27, 2025
33 checks passed
@kraenhansen kraenhansen deleted the kh/build-info-identify-server-name branch October 27, 2025 12:12
connectionString,
adminCommand,
}: IdentifyServerNameOptions): Promise<string> {
try {
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants