We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0b3082 commit 53d7fedCopy full SHA for 53d7fed
internal/http/handlers.go
@@ -30,7 +30,12 @@ import (
30
const perPage = 12
31
32
// captureError reports a non-panic error to Sentry with the request's hub.
33
+// It silently ignores context cancellation errors (timeouts, client disconnects)
34
+// since these are expected during normal operation.
35
func captureError(r *http.Request, err error) {
36
+ if r.Context().Err() != nil {
37
+ return
38
+ }
39
if hub := sentry.GetHubFromContext(r.Context()); hub != nil {
40
hub.CaptureException(err)
41
} else {
0 commit comments