Skip to content
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

Merged
merged 3 commits into from
Apr 26, 2018
Merged

Conversation

singhsarab
Copy link
Contributor

Adding the telemetry points for

  • Testsettings usage
  • Elements inside LegacySettings

}
catch(Exception ex)
{
EqtTrace.Error("Error while trying to read legacy settings. Message:", ex.Message);
Copy link
Contributor

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))
Copy link
Contributor

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");
Copy link
Contributor

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";
Copy link
Contributor

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.

@smadala
Copy link
Contributor

smadala commented Apr 26, 2018

Add link to user story.

@singhsarab singhsarab merged commit a3d8893 into microsoft:master Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants