Reducing Telemetry performance delay

Added telemetry timeout
Added SHA256 hashed arguments
Added Continous Integration flag
Added variable rate sampling
Removed ExitCode from telemetry
This commit is contained in:
Adam Gorman 2016-04-27 17:28:44 -07:00
parent 4f1dbeba0e
commit 4b905ae2bd
2 changed files with 95 additions and 37 deletions

View file

@ -132,6 +132,8 @@ namespace Microsoft.DotNet.Cli
command = "help";
}
telemetryClient.TrackEvent(command, null, null);
int exitCode;
Func<string[], int> builtIn;
if (s_builtIns.TryGetValue(command, out builtIn))
@ -147,13 +149,6 @@ namespace Microsoft.DotNet.Cli
exitCode = result.ExitCode;
}
telemetryClient.TrackEvent(
command,
null,
new Dictionary<string, double>
{
["ExitCode"] = exitCode
});
return exitCode;