Skip to content

Commit

Permalink
Turned off sending machine name in telemetry.
Browse files Browse the repository at this point in the history
  • Loading branch information
tig committed Mar 26, 2020
1 parent e4dff7f commit 046c5c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Services/TelemetryService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public void Start(string appName, IDictionary<string, string> startProperties =
h.Initialize();
h.ComputeHash(Encoding.UTF8.GetBytes($"{Environment.UserName}/{Environment.MachineName}"));
_telemetry.Context.User.Id = Convert.ToBase64String(h.Hash);
// See: https://stackoverflow.com/questions/42861344/how-to-overwrite-or-ignore-cloud-roleinstance-with-application-insights
_telemetry.Context.Cloud.RoleInstance = _telemetry.Context.User.Id;

if (startProperties == null)
startProperties = new Dictionary<string, string>();
Expand Down

0 comments on commit 046c5c3

Please sign in to comment.