-
-
Notifications
You must be signed in to change notification settings - Fork 435
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
fromHttpStatusCode in SpanStatus L79 does not handle 3xx #3841
Comments
Assigning to @getsentry/support for routing ⏲️ |
Routing to @getsentry/product-owners-performance for triage ⏲️ |
Hi, this might be related to your SDK setups, what Sentry SDK are you using? |
Most def, the line reference is for the java sdk. |
Thanks for the feedback, not sure why there's a gap in status codes, I'll try to find out and report back. |
Looks like the python SDK considers anything < 400 to be We can change the Java SDK to also do so. |
@adinauer One might argue that 301, 303 and 307 are responses that expect some kind of change, ie. it is not a successful request, but not sure if that level of detail is necessary. |
Thanks, I'll check with python SDK maintainers if they're aware of any complaints regarding those. |
We have just released |
Environment
SaaS (https://sentry.io/)
Steps to Reproduce
This is our relevant code:
transaction?.finish(fromHttpStatusCode(status ?: 500))
Expected Result
Would expect this to return an ok spanstatus or something of that order for a 3xx response, 304 f.ex is a very normal cache response, and 301 or 302 is not unusual either, f.ex. in auth apis.
Actual Result
It seems a null SpanStatus is returned which again marks this as a failed transaction. We have a lot of 304 so basically all our requests are tagged as failed giving us a >99 failure rate.
Product Area
APIs
Link
No response
DSN
No response
Version
No response
The text was updated successfully, but these errors were encountered: