-
Notifications
You must be signed in to change notification settings - Fork 242
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
[BUG] [Snippet] Unhandled exceptions are reported twice #2442
Comments
Ok, I've just tracked through your provided reproduction THANK YOU VERY MUCH, it was extremely helpful to identify this specific scenario. The issue lies around in the changes that we have made for "populating" (and exposing) the dynamic config (so this bug has now been here for quite a while 😦 ) and how the snippet "informs" the main SDK that it has already "hooked" the As we have just released the final (planned) release for this year (because we are just entering the holiday lock down period) and we are limited in our ability to promote SDK versions to production unless they are required for high priority issues, lets start with a way for you to avoid this issue that I have identified. Temporary WorkaroundAs a temporary work-around (until we can release a fixed version), you can add the following to the configuration that you pass to the snippet (SDK Loader) connectionString: " ... Removed ...",
extensionConfig: {
ApplicationInsightsAnalytics: {
autoExceptionInstrumented: true
}
} This will then populate the (internalish) flag that the snippet uses to inform the sdk that it has already hooked the onerror, into the location that the SDK is now looking at. I'll add some more "fix" notes in a follow up comment as I have to run to a meeting right now. |
As part of fixing this the core SDK needs to either
Or a combination of the above, there may also be other alternative solutions that I have not yet identified. |
Thanks for the reply and the workaround. |
Description/Screenshot
When using appInsights as a snippet, unhandled exceptions are reported twice.
Screenshot:
Steps to Reproduce
/track
and check the payloadExpected behavior
Only one unhandled exception is reported.
Additional context
The text was updated successfully, but these errors were encountered: