Skip to content

Commit 5af55c2

Browse files
authored
DYN-7312 AppVersion assignment (#15466)
1 parent 12eae52 commit 5af55c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DynamoCore/Logging/DynamoAnalyticsClient.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ public DynamoAnalyticsClient(HostAnalyticsInfo hostAnalyticsInfo)
124124
Session.Start();
125125

126126
var hostName = string.IsNullOrEmpty(hostAnalyticsInfo.HostName) ? Configurations.DynamoAsString : hostAnalyticsInfo.HostName;
127+
var appversion = hostAnalyticsInfo.HostVersion != null ? hostAnalyticsInfo.HostVersion.ToString() : string.Empty;
127128

128129
hostInfo = new HostContextInfo() { ParentId = hostAnalyticsInfo.ParentId, SessionId = hostAnalyticsInfo.SessionId };
129130

@@ -133,7 +134,7 @@ public DynamoAnalyticsClient(HostAnalyticsInfo hostAnalyticsInfo)
133134
buildId = $"{version.Major}.{version.Minor}.{version.Build}"; // BuildId has the following format major.minor.build, ex: 2.5.1
134135
releaseId = $"{version.Major}.{version.Minor}.0"; // ReleaseId has the following format: major.minor.0; ex: 2.5.0
135136
}
136-
product = new ProductInfo() { Id = "DYN", Name = hostName, VersionString = "", AppVersion = "", BuildId = buildId, ReleaseId = releaseId };
137+
product = new ProductInfo() { Id = "DYN", Name = hostName, VersionString = "", AppVersion = appversion, BuildId = buildId, ReleaseId = releaseId };
137138
}
138139

139140
private void RegisterADPTracker(Service service)

0 commit comments

Comments
 (0)