Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Log exception.Data properties #754

Closed
briandunnington opened this issue Sep 14, 2018 · 0 comments
Closed

Log exception.Data properties #754

briandunnington opened this issue Sep 14, 2018 · 0 comments
Milestone

Comments

@briandunnington
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants