Error type should ignore URLs
notheotherben opened this issue · 0 comments
notheotherben commented
Problem Statement
When processing an error which includes a URL like https://google.com
this library will mark the scheme (and any preceding text) as the error type.
Expected Behaviour
Errors like not found: we could not find the item you were looking for
should have their type extracted correctly (not found
) while errors containing URLs should ignore the URL for the purpose of extracting the error type.
Environment
Tell us about the environment you are using
- Go Version:
go version go1.13.2 windows/amd64
(go version
) - Sentry Version:
latest
- Updated
sentry-go.v2
(go get -u gopkg.in/SierraSoftworks/sentry-go.v2
)
Reproduction Code
package main
import (
"fmt"
"os"
"gopkg.in/SierraSoftworks/sentry-go.v1"
)
func main() {
cl := sentry.NewClient(
sentry.Release(fmt.Sprintf("#%s", os.Getenv("ISSUE_ID"))),
)
cl.Capture(
sentry.ExceptionForError(fmt.Errorf("GET https://google.com: 404 not found")),
)
}