Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-7740

Add metadata for telemetry into ConnectionInfo instead of loading it when connecting

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            kevin.mas@mongodb.com Kevin Mas Ruiz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: