-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exceptions in static blocks blocks not caught/recorded #295
Comments
@amamounelsayed - Check if this happens in other languages. Also, check if this will be part of appInsights work. |
I just want to add, that (at least) when using |
When an exception occurs in a static initialization, it is not logged in AppInsights.
Investigative information
Please provide the following:
48d86a7c24b1354196e9c0c9b6ee7d19
Repro steps
Here's a sample function to reproduce:
And here's what AppInsights shows when queried for all exceptions and trace messages after invocation of that function:
Expected behavior
Provide a description of the expected behavior.
The exception thrown from the static block is recorded in App Insights.
Actual behavior
The exception thrown from the static block is not recorded in App Insights.
Known workarounds
Do not use any static code.
The text was updated successfully, but these errors were encountered: