How do you use Sentry?
Self-hosted / on-premises
SDK version
v0.41.0
Go version
go version go1.25.4 linux/amd64
Are you using Go Modules?
yes
Steps to reproduce
New version of echo failed test TestIntegration. Here is the patch the you can apply to reproduce the issue
diff --git a/echo/go.mod b/echo/go.mod
index 607dfd5..d6c8d58 100644
--- a/echo/go.mod
+++ b/echo/go.mod
@@ -1,23 +1,23 @@
module github.com/getsentry/sentry-go/echo
-go 1.23.0
+go 1.24.0
replace github.com/getsentry/sentry-go => ../
require (
github.com/getsentry/sentry-go v0.41.0
github.com/google/go-cmp v0.5.9
- github.com/labstack/echo/v4 v4.10.0
+ github.com/labstack/echo/v4 v4.15.0
)
require (
github.com/labstack/gommon v0.4.2 // indirect
- github.com/mattn/go-colorable v0.1.13 // indirect
+ github.com/mattn/go-colorable v0.1.14 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
- golang.org/x/crypto v0.36.0 // indirect
- golang.org/x/net v0.38.0 // indirect
- golang.org/x/sys v0.31.0 // indirect
- golang.org/x/text v0.23.0 // indirect
+ golang.org/x/crypto v0.46.0 // indirect
+ golang.org/x/net v0.48.0 // indirect
+ golang.org/x/sys v0.39.0 // indirect
+ golang.org/x/text v0.32.0 // indirect
)
diff --git a/echo/go.sum b/echo/go.sum
index fa1326b..70eec5c 100644
--- a/echo/go.sum
+++ b/echo/go.sum
@@ -6,10 +6,14 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/labstack/echo/v4 v4.10.0 h1:5CiyngihEO4HXsz3vVsJn7f8xAlWwRr3aY6Ih280ZKA=
github.com/labstack/echo/v4 v4.10.0/go.mod h1:S/T/5fy/GigaXnHTkh0ZGe4LpkkQysvRjFMSUTkDRNQ=
+github.com/labstack/echo/v4 v4.15.0 h1:hoRTKWcnR5STXZFe9BmYun9AMTNeSbjHi2vtDuADJ24=
+github.com/labstack/echo/v4 v4.15.0/go.mod h1:xmw1clThob0BSVRX1CRQkGQ/vjwcpOMjQZSZa9fKA/c=
github.com/labstack/gommon v0.4.2 h1:F8qTUNXgG1+6WQmqoUWnz8WiEU60mXVVw0P4ht1WRA0=
github.com/labstack/gommon v0.4.2/go.mod h1:QlUFxVM+SNXhDL/Z7YhocGIBYOiwB0mXm1+1bAPHPyU=
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
+github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE=
+github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
@@ -29,13 +33,21 @@ go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34=
golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc=
+golang.org/x/crypto v0.46.0 h1:cKRW/pmt1pKAfetfu+RCEvjvZkA9RimPbh7bhFjGVBU=
+golang.org/x/crypto v0.46.0/go.mod h1:Evb/oLKmMraqjZ2iQTwDwvCtJkczlDuTmdJXoZVzqU0=
golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8=
golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8=
+golang.org/x/net v0.48.0 h1:zyQRTTrjc33Lhh0fBgT/H3oZq9WuvRR5gPC70xpDiQU=
+golang.org/x/net v0.48.0/go.mod h1:+ndRgGjkh8FGtu1w1FGbEC31if4VrNVMuKTgcAAnQRY=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
+golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk=
+golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY=
golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4=
+golang.org/x/text v0.32.0 h1:ZD01bjUt1FQ9WJ0ClOL5vxgxOI/sVCNgX1YtKwcY0mU=
+golang.org/x/text v0.32.0/go.mod h1:o/rUWzghvpD5TXrTIBuJU77MTaN0ljMWE47kxGJQ7jY=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
Expected result
Test should pass
Actual result
/workspaces/sentry-go/echo (master) $ go test ./...
--- FAIL: TestIntegration (0.01s)
sentryecho_test.go:482: Transaction mismatch (-want +got):
[]*sentry.Event{
&{Contexts: {"trace": {"data": map[string]any{"http.request.method": string("GET"), "http.response.status_code": int(200)}, "op": string("http.server"), "status": s"ok", ...}, ...}, Level: "info", Transaction: "GET /panic/:id", Request: &{URL: "http://127.0.0.1:43897/panic/1", Method: "GET", Headers: {"Accept-Encoding": "gzip", "Host": "127.0.0.1:43897", "User-Agent": "Go-http-client/1.1"}}, ...},
&{
... // 9 ignored and 18 identical fields
- TransactionInfo: &sentry.TransactionInfo{Source: "route"},
+ TransactionInfo: &sentry.TransactionInfo{Source: "url"},
CheckIn: nil,
MonitorConfig: nil,
... // 1 ignored and 1 identical fields
},
&{Contexts: {"trace": {"data": map[string]any{"http.request.method": string("POST"), "http.response.status_code": int(200)}, "op": string("http.server"), "status": s"ok", ...}, ...}, Level: "info", Transaction: "POST /post", Request: &{URL: "http://127.0.0.1:43897/post", Method: "POST", Data: "payload", Headers: {"Accept-Encoding": "gzip", "Content-Length": "7", "Host": "127.0.0.1:43897", "User-Agent": "Go-http-client/1.1"}, ...}, ...},
&{Contexts: {"trace": {"data": map[string]any{"http.request.method": string("GET"), "http.response.status_code": int(200)}, "op": string("http.server"), "status": s"ok", ...}, ...}, Level: "info", Transaction: "GET /get", Request: &{URL: "http://127.0.0.1:43897/get", Method: "GET", Headers: {"Accept-Encoding": "gzip", "Host": "127.0.0.1:43897", "User-Agent": "Go-http-client/1.1"}}, ...},
... // 3 identical elements
}
FAIL
FAIL github.com/getsentry/sentry-go/echo 0.048s
FAIL
How do you use Sentry?
Self-hosted / on-premises
SDK version
v0.41.0
Go version
go version go1.25.4 linux/amd64
Are you using Go Modules?
yes
Steps to reproduce
New version of echo failed test TestIntegration. Here is the patch the you can apply to reproduce the issue
Expected result
Test should pass
Actual result