- List of NuGet packages and version that you are using:
- Microsoft.ApplicationInsights.AspNetCore 3.0.0
- Runtime version (e.g. net461, net48, netcoreapp2.1, netcoreapp3.1, etc. You can find this information from the
*.csproj file):
- Hosting environment (e.g. Azure Web App, App Service on Linux, Windows, Ubuntu, etc.):
Describe the bug
In v3, the value set on ApplicationInsightsServiceOptions.ApplicationVersion is ignored and not sent with telemetry.
To Reproduce
Just do services.AddApplicationInsightsTelemetry(). This should be typically sending "1.0.0" with the telemetry.
|
public string ApplicationVersion { get; set; } = Assembly.GetEntryAssembly()?.GetName().Version.ToString(); |
The version is not sent. This can be verified in the Azure Portal.
*.csprojfile):Describe the bug
In v3, the value set on
ApplicationInsightsServiceOptions.ApplicationVersionis ignored and not sent with telemetry.To Reproduce
Just do
services.AddApplicationInsightsTelemetry(). This should be typically sending "1.0.0" with the telemetry.ApplicationInsights-dotnet/NETCORE/src/Shared/Extensions/ApplicationInsightsServiceOptions.cs
Line 48 in 3845c40
The version is not sent. This can be verified in the Azure Portal.