Skip to content

Lost many context fields in 2.5.0 #708

Closed

Description

I am having trouble tracking down the expected behavior, but in the latest version various important context fields such as Context.Component.Version are no longer being transmitted to the service and show as "Undefined" in my data. Upon examining the telemetry object, I see these tags are showing up under the "Sanitized" property. Is this expected behavior and how do I resolve? Thanks!

Repro Steps

            telemetry = new TelemetryClient();

            // Telemetry setup
            telemetry.InstrumentationKey = "<key>";
            telemetry.Context.User.Id = Environment.UserName;
            telemetry.Context.Session.Id = SessionId;
            telemetry.Context.Device.OperatingSystem = Environment.OSVersion.ToString();
            telemetry.Context.Device.Id = MachineId;
            telemetry.Context.Component.Version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() 

Actual Behavior

Version shows up in Azure portal as [undefined]

Expected Behavior

Version should show up correctly....

Version Info

SDK Version : 2.5.0
.NET Version : 4.5.2
How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) : c#/nuget
OS : Windows 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions