Skip to content

TrackException is bleeding a console or trace value into test output #1113

@RickStrahl

Description

@RickStrahl

Repro Steps

When calling AppInsights.TrackException() a single numeric value bleeds out into the the output console when testing and also during debug sessions. This is likely a debug value, but still it's not cool to see this value bleed through in debugging and test sessions since it has no context.

Actual Behavior

image

I'm demonstrating with the Console.WriteLine() calls to wrapper the test output around the call to TracException. I also see this in the debug window and I've been wondering in the past where this errant value in my debug output was coming from and it turns out it's AInsights.

Expected Behavior

No bleeding of output. This odd value shows up in trace output while debugging.

Version Info

SDK Version :
.NET Version : 4.6.2
How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) :
OS : Windows 10 (latest stable)
Hosting Info (IIS/Azure WebApps/ etc) : Desktop app

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions