Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
02-02-2021 01:27 AM - last edited on 02-02-2021 10:30 AM by Ryan.Paredez
My front end use jsnlog.logger to catch all unhandled exceptions in js code and call a handler in the .Net backend to post the exception details. I have verified this and it is working fine. However in AppD business transactions, this is being shown as an error, not sure what to do with this.. this error is just polluting the whole reporting..
Found the below link, it is talking about something related to overwriting window.onerror event, not sure if this is the cause: https://docs.appdynamics.com/display/PRO21/Handle+the+window.onerror+Event
Below screenshots shows what I see on my AppD reporting:
So I am not clear on why it is being considered an error here.
Any help would be highly appreciated here.
^ Edited by @Ryan.Paredez for an improved title and minor readability.
02-02-2021 09:49 PM
Hi
What would you like AppDynamics to do with this?
You can either exclude the transaction, which will remove it from being monitored at all, and you won't see it in the UI anymore.
Or you can use the Error Detection component to ignore certain messages like this, to keep the business transaction there, but not report as an error.
Ciao
02-02-2021 10:53 PM
Thanks for your response.
What I am trying to understand is why is AppD treating this as error in first place? Though there was no error in that call. If it is confirmed as issue from AppD, I would go ahead and change my error detection settings as you have said.. Let me know if you have any thoughts.
02-02-2021 11:18 PM
Hi Sujith
AppDynamics is working as expected, remember AppD catches Errors which occurs within a Business Transaction context, as well as exceptions. And this also includes logging errors that are thrown.
You state yourself that you are catching exceptions this way, so AppD will alert that it's picking up exceptions.
AppD won't know that you don't want to classify the exceptions as errors.
All you need to do is in the error detection add an ignore rule, to exclude this from setting your Business Transaction as an error.
Hope I made sense:)
Ciao
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form