Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1652

Disable initial showCommands from telemetry

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • 2
    • Not Needed

      Scope

      Do not send telemetry for the show commands run on startup.

      We are currently running a few commands on the server so we can inform the user about the context of the cluster. These are automatic commands that always happen before the user can interact with the shell, so we don't need to track them.

      You can see the commands that we are issuing in the following link:

      https://github.com/mongodb-js/mongosh/blob/278696a2c2ffc5b725bcbd4e8673e70d055bb4c5/packages/cli-repl/src/mongosh-repl.ts#L426-L430

      We will add a new private method on the shell-api.ts called _untrackedShow that we will be using to show the startup information without any telemetry. We won't disable the telemetry on the show method as this method might be used elsewhere and we would like to track these usages.

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

              Created:
              Updated:
              Resolved: