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: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: None
    • Not Needed
    • Developer Tools

      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:
            sergey.petushkov@mongodb.com Sergey Petushkov
            Reporter:
            kevin.mas@mongodb.com Kevin Mas Ruiz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: