Java (Java Agent, Installation, JVM, and Controller Installation)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to ignore exception messages based on URL

Highlighted

How to ignore exception messages based on URL

Hello Team

 

We would like to ignore error messages based on URL detected in the controller page.

 

Please find the list of error messages below which we would like to ignore in AppDynamics controller page.

 

  • /ccm2/resource/itemName/com.ibm.team.workitem.WorkItem/53
  • /rm1/linkConstraints
  • /rm1/locks/
  • /rm1/views

We are not able to find the class names on the error messages, so we want to ignore error /exception messages from controller page based on the URLs.

 

Thanks in advance.

Regards,

BalaMurugan S

How to ignore exception messages based on URL
2 REPLIES 2
Highlighted
Moderator

Re: How to ignore exception messages based on URL

I'm afraid it is not possible to selectively ignore exceptions based on the BT context at this time.



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Explorer

Re: How to ignore exception messages based on URL

you can ignore errors by type in configuration (newrelic.config in C:\ProgramData\New Relic.NET Agent) but there currently isn't any more granular control available through configuration. You could use the .NET API call IgnoreTransaction() which would suppress the error but also ignore the entire transaction as a whole, which is sometimes undesirable. A third option would be to handle all errors before the .NET agent notices them and then either rethrow the ones you want to notice or use NoticeError() to capture the exception manually. It sounds like that last option won't be very easy to implement in this case.

Digital printing services uk