File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -26,16 +26,17 @@ func SetupSentry(dsn string) error {
26
26
return nil
27
27
}
28
28
29
- var SentryErrorHandler = func (res * http.Response , uri string ) error {
29
+ var SentryErrorHandler = func (res * http.Response , url string ) error {
30
30
statusCode := res .StatusCode
31
31
//Improve ways to identify if worth logging the error
32
32
if statusCode != http .StatusOK && statusCode != http .StatusNotFound {
33
33
log .WithFields (log.Fields {
34
34
"tags" : raven.Tags {
35
35
{Key : "status_code" , Value : strconv .Itoa (res .StatusCode )},
36
36
{Key : "host" , Value : res .Request .URL .Host },
37
- {Key : "url " , Value : uri },
37
+ {Key : "path " , Value : res . Request . URL . Path },
38
38
},
39
+ "url" : url ,
39
40
"fingerprint" : []string {"client_errors" },
40
41
}).Error ("Client Errors" )
41
42
}
You can’t perform that action at this time.
0 commit comments