ASP.NET integration captures HttpException with 404 status code #718
Labels
area:automatic-instrumentation
Automatic instrumentation managed C# code (Datadog.Trace.ClrProfiler.Managed)
type:bug
Milestone
Describe the bug
It is quite common in ASP.NET code to throw an HttpException(404, "Not Found") when buried deep in code when you decide a page should not exist, which then gets handled by the system wide 404 handler. However with DataDog, since the ASP.NET exception handler always logs all exceptions, those all end up in our traces which is quite annoying.
To Reproduce
Just add
anywhere in a controller, and you will notice it gets logged in the traces. Makes the trace look like it errored out, but a 404 is NOT an error.
Expected behavior
404 errors should be ignored
The text was updated successfully, but these errors were encountered: