-
Notifications
You must be signed in to change notification settings - Fork 417
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
HTTP 4xx errors are treated as errors #11635
Comments
@d33kayyy In your screenshot, is that issue occurring with the span name/operation name |
@wantsui yes it is |
@d33kayyy Thanks for confirming! Unfortunately, I wasn't able to reproduce this with 2.16.1 with the details that you provided (see my attempt under What I tried). My 404s are correctly marked as "OK" by default. I can think of a few things that could differentiate your application from my attempt, like:
Is there anything in your application that might be doing anything like that? Note: In case there are details about the application that you may not want to write out in a public thread, you can also open a support ticket with us through any of these options listed here: https://docs.datadoghq.com/help/ . If you reference this Github issue, the support engineer will be able to associate this Github issue with the support ticket and we can keep troubleshooting from there too. What I tried When I send a request to an endpoint that doesn't exist, my 404 request correctly shows up under the And in debug mode, I can see that the error is marked as 0 (for an "OK" status)
|
Hi, I recently upgraded my Python application from Python 3.10 to 3.12, hence I had to upgrade
ddtrace
from1.20.19
to2.16.1
.I noticed that now responses with HTTP 4xx are also considered as errors. I checked the documentation and found
DD_TRACE_HTTP_SERVER_ERROR_STATUSES
. However, I'm not setting it in my project that it should use the default, which must be status between 500-599.Libraries' versions
Running with
The text was updated successfully, but these errors were encountered: