Skip to content

Commit

Permalink
use the device id as the host name
Browse files Browse the repository at this point in the history
  • Loading branch information
clairernovotny committed Apr 16, 2020
1 parent 4ef76e3 commit 36e41af
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ public void Initialize(ITelemetry telemetry)
telemetry.Context.Device.Id = reader.GetDeviceUniqueId();
#endif

// Overwrite capture of host name
telemetry.Context.Cloud.RoleInstance = telemetry.Context.Device.Id;
telemetry.Context.Cloud.RoleName = telemetry.Context.Device.Id;

telemetry.Context.GlobalProperties["Network type"] = reader.GetNetworkType();
telemetry.Context.GlobalProperties["Thread culture"] = reader.GetHostSystemLocale();
telemetry.Context.GlobalProperties["UI culture"] = reader.GetDisplayLanguage();
Expand Down

0 comments on commit 36e41af

Please sign in to comment.