Skip to content

Defer machine ID resolution #122

Closed
Closed
@gagik

Description

@gagik

We're using getMachineIdSync in the global scope which blocks the entire thread at startup regardless of us using telemetry of not. native-machine-id is very quick (developed by a great team 😉) but we'd likely want to refactor our telemetry setup to instead asynchronously wait for the device ID to be resolved and cache events until then.

Similar to https://github.com/mongodb-js/mongosh/pull/2411/files#diff-d717df5f752b4b9552410572829eab7bda35a181aeff5d57eab9f07a657f25d9

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions