contrib/gin-gonic/gin: incorrect 200 status upon panic recovery hides real problems #1903
Labels
ack
apm:ecosystem
contrib/* related feature requests or bugs
bug
unintended behavior that has to be fixed
I'm not sure that this issue is a bug report, a feature request or something else.
Anyway, I think the current behavior can be problematic under practical situations.
Indeed, I couldn't find failed requests when an incident happened.
dd-trace-go/contrib/internal/httptrace/httptrace.go
Lines 59 to 60 in 25044cf
Version of dd-trace-go
v1.49.1
Describe what happened:
Trace for a request that returns 500 error was recorded as 200.
Describe what you expected:
It is recorded as 500, or a special one like "unknown".
Steps to reproduce the issue:
dd-trace sees status code 0 and record it as 200.
Then, Recovery middleware sets status code 500.
Additional environment details (Version of Go, Operating System, etc.): N/A
History that I investigated
The text was updated successfully, but these errors were encountered: