Skip to content

Commit

Permalink
Do not track roleinstance and rolename
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKert committed Apr 27, 2019
1 parent b8ee8a5 commit a38259f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/BuildVision.Common/ApplicationInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Diagnostics;
using System.Reflection;

namespace BuildVision.Common
{
Expand All @@ -17,5 +18,11 @@ public static string GetPackageVersion(object package)
var versionInfo = FileVersionInfo.GetVersionInfo(package.GetType().Assembly.Location);
return versionInfo.ProductVersion;
}

public static string GetProductVersion()
{
var versionInfo = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location);
return versionInfo.ProductVersion;
}
}
}
2 changes: 2 additions & 0 deletions src/BuildVision.Common/Diagnostics/SessionTelemetry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ public void Initialize(ITelemetry telemetry)

telemetry.Context.Session.Id = _session;
telemetry.Context.Device.OperatingSystem = _operatingSystem;
telemetry.Context.Cloud.RoleInstance = "";
telemetry.Context.Cloud.RoleName = "";
telemetry.Context.Device.Model = _vsVersion;
telemetry.Context.Device.Type = _dteEdition;
}
Expand Down
3 changes: 2 additions & 1 deletion src/BuildVision/Core/BuildVisionPane.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Windows;
using System.Windows.Controls;
using System.Windows.Markup;
using BuildVision.Common;
using BuildVision.Common.Diagnostics;
using BuildVision.Core;
using BuildVision.Exports.Providers;
Expand Down Expand Up @@ -48,7 +49,7 @@ public FrameworkElement View
public BuildVisionPane()
: base(null)
{
Caption = Resources.ToolWindowTitle;
Caption = string.Format("{0} - {1}", Resources.ToolWindowTitle, ApplicationInfo.GetProductVersion());
BitmapResourceID = 301;
BitmapIndex = 1;

Expand Down

0 comments on commit a38259f

Please sign in to comment.