Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

telemetry.ts: send telemetry only if aiKey is not empty #3091

Merged
merged 1 commit into from
Mar 11, 2020

Conversation

hyangah
Copy link
Contributor

@hyangah hyangah commented Mar 6, 2020

Change-Id: I7157be16784884cb2b6f5ad1a4f82846cba642c6

Change-Id: I7157be16784884cb2b6f5ad1a4f82846cba642c6
@hyangah
Copy link
Contributor Author

hyangah commented Mar 6, 2020

@stamblerre

@stamblerre stamblerre self-requested a review March 6, 2020 17:04
@stamblerre
Copy link
Contributor

LGTM - thanks!

@@ -183,6 +183,9 @@ function sendTelemetryEvent(
properties?: { [key: string]: string },
measures?: { [key: string]: number }
): void {
if (!aiKey) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The aiKey is initialized in line 12 and is a constant.
Therefore, in its current state, the extension will not reach a state where this will be empty..

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ramya-rao-a ramya-rao-a merged commit 330f08c into microsoft:master Mar 11, 2020
hyangah added a commit to hyangah/vscode-go-old that referenced this pull request Mar 19, 2020
Sync @ 7da5077

* master:
  Address mismatch on path separators in debug config (microsoft#2010) (microsoft#3108)
  Include the link to release note/package overview in the update prompt, and update gopls default version (microsoft#3041)
  bug_report.md: Fix "architecture" typo. (microsoft#3095)
  telemetry.ts: send telemetry only if aiKey is not an empty  string(microsoft#3091)
gopherbot referenced this pull request in golang/vscode-go Mar 20, 2020
 Merge 'microsoft/vscode-go/master' into 'golang/vscode-go/master'

    Sync @ 7da5077

    * master:
      Address mismatch on path separators in debug config (#2010) (#3108)
      Include the link to release note/package overview in the update prompt, and update gopls default version (#3041)
      bug_report.md: Fix "architecture" typo. (#3095)
      telemetry.ts: send telemetry only if aiKey is not an empty  string(#3091)

Change-Id: I727ef0ed3b8d1ad926e26831534c153b06070e64
GitHub-Last-Rev: d11e342
GitHub-Pull-Request: #11
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/224239
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
hyangah added a commit to hyangah/vscode-go-old that referenced this pull request Mar 20, 2020
* master:
  goLanguageServer: set completion follow up command from middleware (microsoft#3084)
  Add stacktrace dump and better error messages on EXC_BAD_ACCESS panics (microsoft#2904)
  Address mismatch on path separators in debug config (microsoft#2010) (microsoft#3108)
  Include the link to release note/package overview in the update prompt, and update gopls default version (microsoft#3041)
  bug_report.md: Fix "architecture" typo. (microsoft#3095)
  telemetry.ts: send telemetry only if aiKey is not an empty  string(microsoft#3091)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants