Skip to content

ApplicationVersion is ignored in v3 #3111

@ArturDorochowicz

Description

@ArturDorochowicz
  • 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):
    • net10.0
  • Hosting environment (e.g. Azure Web App, App Service on Linux, Windows, Ubuntu, etc.):
    • Windows

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions