Sitelet https://github.com/microsoft/ApplicationInsights-dotnet/issues/1969
Skip to content

AplicationInsightsLoggerProvider does not catch exceptions. #1969

Description

Describe the bug

AplicationInsightsLoggerProvider is not catching exceptions and letting them propagate to caller. This can cause applications to crash if an exception occurs inside ApplicationInsightsProvider. This is against the overall SDK principles of never throwing.
https://github.com/microsoft/ApplicationInsights-dotnet/blob/develop/LOGGING/src/ILogger/ApplicationInsightsLogger.cs#L79

Proposal : catch and log exception to EventSource.

Activity

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions