Sitelet https://github.com/Microsoft/ApplicationInsights-aspnetcore/issues/754
Skip to content
This repository was archived by the owner on Jun 10, 2020. It is now read-only.
This repository was archived by the owner on Jun 10, 2020. It is now read-only.

Log exception.Data properties #754

Description

@briandunnington

Exceptions have a .Data property (https://docs.microsoft.com/en-us/dotnet/api/system.exception.data?view=netcore-2.1) that "gets a collection of key/value pairs that provide additional user-defined information about the exception."

It would be nice if these additional properties were logged. In https://github.com/Microsoft/ApplicationInsights-aspnetcore/blob/develop/src/Microsoft.ApplicationInsights.AspNetCore/Logging/Implementation/ApplicationInsightsLogger.cs, I see that the telemetry is populated with the stateProperties, but it would be good to also add the exception.Data to the telemetry.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions