Add telemetry to client-side secret detection

What

We would like to gather some insights to potentially improve the client-side secret detection mechanism.

Proposal

We can utilize frontend tracking for this purpose.

Potential list of things to track

  1. Track the number of times the warning has been shown, which is the number of times a secret has been detected.
  2. Track the location (an issue or MR description/comment)
  3. Track the type of secret detected
  4. Whether the secret was being added to a public or private project
Edited by Sara Meadzinger