-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:
-
Developer Tools
-
3
Right now, when we connect, we query some internal Node.js APIs (transitively, the `dns` module) to gather some non-critical data for telemetry.
Basically, the modules 'resolve-mongodb-srv' and 'mongodb-cloud-info' that are only used in `packages/compass-connections/src/modules/telemetry.ts` in the `trackNewConnectionEvent` are not browser compatible because they need `dns`.
This information should be resolved when loading the ConnectionInfo from the ConnectionStorage. This way, only the relevant information is loaded for Compass and Data Explorer, and we can use the provided APIs of each environment to load this data if necessary.