-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Legacysettings telemetry #1564
Legacysettings telemetry #1564
Conversation
} | ||
catch(Exception ex) | ||
{ | ||
EqtTrace.Error("Error while trying to read legacy settings. Message:", ex.Message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add {0}
and print ex.ToString()
.
{ | ||
requestData.MetricsCollection.Add(TelemetryDataConstants.TestSettingsUsed, InferRunSettingsHelper.IsTestSettingsEnabled(runsettings)); | ||
|
||
if (InferRunSettingsHelper.TryGetLegacySettings(runsettings, out List<string> legacySettings)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Rename legacySettings
to legacySettingsElements
.
Assert.IsFalse((bool)testSettingsUsed); | ||
|
||
// Opt out the Telemetry | ||
Environment.SetEnvironmentVariable("VSTEST_TELEMETRY_OPTEDIN", "0"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do this in clean up.
@@ -17,6 +17,10 @@ public static class TelemetryDataConstants | |||
// Total time taken to complete one test run request | |||
public static string TimeTakenInSecForRun = "VS.TestRun.TimeTakenInSec"; | |||
|
|||
public static string TestSettingsUsed = "VS.TestRun.TestSettingsUsed"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Rename this to IsTestSettingsUsed
.
Add link to user story. |
Adding the telemetry points for