From eecc5522a31733c3a688b21637be35e71fa08013 Mon Sep 17 00:00:00 2001 From: Leo Antunes Date: Wed, 10 Jul 2024 16:48:32 +0200 Subject: [PATCH] chore: fork This is a fork based on this branch: https://github.com/getsentry/sentry-go/pull/679 --- _examples/basic/main.go | 2 +- _examples/crons/main.go | 2 +- _examples/echo/main.go | 4 +- _examples/fasthttp/main.go | 4 +- _examples/feature-showcase/main.go | 2 +- _examples/fiber/main.go | 4 +- _examples/flush/main.go | 2 +- _examples/gin/main.go | 4 +- _examples/http/main.go | 4 +- _examples/iris/main.go | 4 +- _examples/logrus/main.go | 4 +- _examples/martini/main.go | 4 +- _examples/multiclient/main.go | 2 +- _examples/negroni/main.go | 4 +- _examples/profiling/main.go | 2 +- _examples/recover-repanic/main.go | 2 +- _examples/recover/main.go | 2 +- _examples/synctransport/main.go | 2 +- _examples/with_extra/main.go | 2 +- client.go | 2 +- dynamic_sampling_context.go | 2 +- dynamic_sampling_context_test.go | 2 +- echo/example_test.go | 4 +- echo/sentryecho.go | 2 +- echo/sentryecho_test.go | 6 +-- example_transportwithhooks_test.go | 2 +- fasthttp/sentryfasthttp.go | 2 +- fasthttp/sentryfasthttp_test.go | 6 +-- fiber/sentryfiber.go | 2 +- fiber/sentryfiber_test.go | 6 +-- gin/sentrygin.go | 2 +- gin/sentrygin_test.go | 6 +-- go.mod | 2 +- helpers_test.go | 2 +- http/example_test.go | 4 +- http/sentryhttp.go | 2 +- http/sentryhttp_test.go | 6 +-- integrations_test.go | 16 +++--- internal/otel/baggage/baggage.go | 2 +- internal/otel/baggage/baggage_test.go | 2 +- internal/testutils/asserts.go | 2 +- internal/traceparser/parser_test.go | 64 +++++++++++------------ iris/example_test.go | 4 +- iris/sentryiris.go | 2 +- iris/sentryiris_test.go | 6 +-- logrus/logrusentry.go | 2 +- logrus/logrusentry_test.go | 4 +- martini/sentrymartini.go | 2 +- negroni/sentrynegroni.go | 2 +- negroni/sentrynegroni_test.go | 6 +-- otel/event_processor.go | 2 +- otel/event_processor_test.go | 2 +- otel/go.mod | 6 +-- otel/helpers_test.go | 6 +-- otel/internal/utils/mapotelstatus.go | 2 +- otel/internal/utils/mapotelstatus_test.go | 9 ++-- otel/internal/utils/sentryrequest.go | 2 +- otel/internal/utils/spanattributes.go | 2 +- otel/propagator.go | 4 +- otel/propagator_test.go | 4 +- otel/span_map.go | 2 +- otel/span_processor.go | 4 +- otel/span_processor_test.go | 4 +- profiler.go | 2 +- profiler_test.go | 4 +- scope_concurrency_test.go | 2 +- stacktrace.go | 2 +- stacktrace_below_go1.20_test.go | 2 +- stacktrace_external_test.go | 28 +++++----- stacktrace_test.go | 28 +++++----- transport.go | 2 +- transport_test.go | 2 +- util_test.go | 4 +- 73 files changed, 178 insertions(+), 177 deletions(-) diff --git a/_examples/basic/main.go b/_examples/basic/main.go index bb1c51da6..d8c4845eb 100644 --- a/_examples/basic/main.go +++ b/_examples/basic/main.go @@ -19,7 +19,7 @@ import ( "os" "time" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" ) // release is the release of this program that will be reported to Sentry. diff --git a/_examples/crons/main.go b/_examples/crons/main.go index 9fbda32bc..dff429843 100644 --- a/_examples/crons/main.go +++ b/_examples/crons/main.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" ) func runTask(monitorSlug string, duration time.Duration, shouldFail bool) { diff --git a/_examples/echo/main.go b/_examples/echo/main.go index 77de46888..1ff1c1998 100644 --- a/_examples/echo/main.go +++ b/_examples/echo/main.go @@ -5,8 +5,8 @@ import ( "fmt" "net/http" - "github.com/getsentry/sentry-go" - sentryecho "github.com/getsentry/sentry-go/echo" + "github.com/exaring/sentry-go" + sentryecho "github.com/exaring/sentry-go/echo" "github.com/labstack/echo/v4" "github.com/labstack/echo/v4/middleware" ) diff --git a/_examples/fasthttp/main.go b/_examples/fasthttp/main.go index 827048bb8..d97623a74 100644 --- a/_examples/fasthttp/main.go +++ b/_examples/fasthttp/main.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/getsentry/sentry-go" - sentryfasthttp "github.com/getsentry/sentry-go/fasthttp" + "github.com/exaring/sentry-go" + sentryfasthttp "github.com/exaring/sentry-go/fasthttp" "github.com/valyala/fasthttp" ) diff --git a/_examples/feature-showcase/main.go b/_examples/feature-showcase/main.go index 42f75d264..730ce8ce3 100644 --- a/_examples/feature-showcase/main.go +++ b/_examples/feature-showcase/main.go @@ -7,7 +7,7 @@ import ( "strconv" "time" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" ) func prettyPrint(v interface{}) string { diff --git a/_examples/fiber/main.go b/_examples/fiber/main.go index c2a3664f2..f357287a4 100644 --- a/_examples/fiber/main.go +++ b/_examples/fiber/main.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/getsentry/sentry-go" - sentryfiber "github.com/getsentry/sentry-go/fiber" + "github.com/exaring/sentry-go" + sentryfiber "github.com/exaring/sentry-go/fiber" "github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2/utils" ) diff --git a/_examples/flush/main.go b/_examples/flush/main.go index 44442ac79..185b73f0e 100644 --- a/_examples/flush/main.go +++ b/_examples/flush/main.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" ) func main() { diff --git a/_examples/gin/main.go b/_examples/gin/main.go index c08e6e81b..7ee570540 100644 --- a/_examples/gin/main.go +++ b/_examples/gin/main.go @@ -4,8 +4,8 @@ import ( "fmt" "net/http" - "github.com/getsentry/sentry-go" - sentrygin "github.com/getsentry/sentry-go/gin" + "github.com/exaring/sentry-go" + sentrygin "github.com/exaring/sentry-go/gin" "github.com/gin-gonic/gin" ) diff --git a/_examples/http/main.go b/_examples/http/main.go index 9c22f66b7..3eb5f1ec8 100644 --- a/_examples/http/main.go +++ b/_examples/http/main.go @@ -24,8 +24,8 @@ import ( "sync" "time" - "github.com/getsentry/sentry-go" - sentryhttp "github.com/getsentry/sentry-go/http" + "github.com/exaring/sentry-go" + sentryhttp "github.com/exaring/sentry-go/http" ) var addr = flag.String("addr", "127.0.0.1:3000", "bind address") diff --git a/_examples/iris/main.go b/_examples/iris/main.go index b1f17957d..fa27c6ae3 100644 --- a/_examples/iris/main.go +++ b/_examples/iris/main.go @@ -8,8 +8,8 @@ import ( "fmt" "net/http" - "github.com/getsentry/sentry-go" - sentryiris "github.com/getsentry/sentry-go/iris" + "github.com/exaring/sentry-go" + sentryiris "github.com/exaring/sentry-go/iris" "github.com/kataras/iris/v12" ) diff --git a/_examples/logrus/main.go b/_examples/logrus/main.go index d28b93a29..d685b5669 100644 --- a/_examples/logrus/main.go +++ b/_examples/logrus/main.go @@ -8,8 +8,8 @@ import ( "github.com/sirupsen/logrus" - "github.com/getsentry/sentry-go" - sentrylogrus "github.com/getsentry/sentry-go/logrus" + "github.com/exaring/sentry-go" + sentrylogrus "github.com/exaring/sentry-go/logrus" ) func main() { diff --git a/_examples/martini/main.go b/_examples/martini/main.go index 2deb9151f..8da577a5d 100644 --- a/_examples/martini/main.go +++ b/_examples/martini/main.go @@ -4,9 +4,9 @@ import ( "fmt" "net/http" - sentrymartini "github.com/getsentry/sentry-go/martini" + sentrymartini "github.com/exaring/sentry-go/martini" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" "github.com/go-martini/martini" ) diff --git a/_examples/multiclient/main.go b/_examples/multiclient/main.go index 55b00f6ab..6c34093f4 100644 --- a/_examples/multiclient/main.go +++ b/_examples/multiclient/main.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" ) type pickleIntegration struct{} diff --git a/_examples/negroni/main.go b/_examples/negroni/main.go index c478224f7..ed8562a4b 100644 --- a/_examples/negroni/main.go +++ b/_examples/negroni/main.go @@ -4,9 +4,9 @@ import ( "fmt" "net/http" - sentrynegroni "github.com/getsentry/sentry-go/negroni" + sentrynegroni "github.com/exaring/sentry-go/negroni" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" "github.com/urfave/negroni" ) diff --git a/_examples/profiling/main.go b/_examples/profiling/main.go index 5f33ce9c3..ba94a7d16 100644 --- a/_examples/profiling/main.go +++ b/_examples/profiling/main.go @@ -13,7 +13,7 @@ import ( "sync" "time" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" ) func main() { diff --git a/_examples/recover-repanic/main.go b/_examples/recover-repanic/main.go index a35bc7482..c24da815e 100644 --- a/_examples/recover-repanic/main.go +++ b/_examples/recover-repanic/main.go @@ -20,7 +20,7 @@ import ( "sync" "time" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" ) func main() { diff --git a/_examples/recover/main.go b/_examples/recover/main.go index 5caff7e0c..dd4c2ccbd 100644 --- a/_examples/recover/main.go +++ b/_examples/recover/main.go @@ -6,7 +6,7 @@ import ( "fmt" "time" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" ) func prettyPrint(v interface{}) string { diff --git a/_examples/synctransport/main.go b/_examples/synctransport/main.go index 81b9d8b2d..6c3b1e193 100644 --- a/_examples/synctransport/main.go +++ b/_examples/synctransport/main.go @@ -4,7 +4,7 @@ import ( "log" "time" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" ) func main() { diff --git a/_examples/with_extra/main.go b/_examples/with_extra/main.go index 4dee8f816..601a7da61 100644 --- a/_examples/with_extra/main.go +++ b/_examples/with_extra/main.go @@ -5,7 +5,7 @@ import ( "fmt" "time" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" ) func prettyPrint(v interface{}) string { diff --git a/client.go b/client.go index 5b4e8c5a6..9bf6ed540 100644 --- a/client.go +++ b/client.go @@ -14,7 +14,7 @@ import ( "sync" "time" - "github.com/getsentry/sentry-go/internal/debug" + "github.com/exaring/sentry-go/internal/debug" ) // The identifier of the SDK. diff --git a/dynamic_sampling_context.go b/dynamic_sampling_context.go index 365072607..6cf2f541f 100644 --- a/dynamic_sampling_context.go +++ b/dynamic_sampling_context.go @@ -4,7 +4,7 @@ import ( "strconv" "strings" - "github.com/getsentry/sentry-go/internal/otel/baggage" + "github.com/exaring/sentry-go/internal/otel/baggage" ) const ( diff --git a/dynamic_sampling_context_test.go b/dynamic_sampling_context_test.go index a6604ee18..d473ba1ba 100644 --- a/dynamic_sampling_context_test.go +++ b/dynamic_sampling_context_test.go @@ -4,7 +4,7 @@ import ( "context" "testing" - "github.com/getsentry/sentry-go/internal/testutils" + "github.com/exaring/sentry-go/internal/testutils" ) func TestDynamicSamplingContextFromHeader(t *testing.T) { diff --git a/echo/example_test.go b/echo/example_test.go index e5a94c200..f672247dd 100644 --- a/echo/example_test.go +++ b/echo/example_test.go @@ -4,8 +4,8 @@ import ( "context" "net/http" - "github.com/getsentry/sentry-go" - sentryecho "github.com/getsentry/sentry-go/echo" + "github.com/exaring/sentry-go" + sentryecho "github.com/exaring/sentry-go/echo" "github.com/labstack/echo/v4" ) diff --git a/echo/sentryecho.go b/echo/sentryecho.go index 26972d9f3..34d4196aa 100644 --- a/echo/sentryecho.go +++ b/echo/sentryecho.go @@ -6,7 +6,7 @@ import ( "net/http" "time" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" "github.com/labstack/echo/v4" ) diff --git a/echo/sentryecho_test.go b/echo/sentryecho_test.go index 663847445..9879b5d0d 100644 --- a/echo/sentryecho_test.go +++ b/echo/sentryecho_test.go @@ -10,9 +10,9 @@ import ( "testing" "time" - "github.com/getsentry/sentry-go" - sentryecho "github.com/getsentry/sentry-go/echo" - "github.com/getsentry/sentry-go/internal/testutils" + "github.com/exaring/sentry-go" + sentryecho "github.com/exaring/sentry-go/echo" + "github.com/exaring/sentry-go/internal/testutils" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/labstack/echo/v4" diff --git a/example_transportwithhooks_test.go b/example_transportwithhooks_test.go index 1318a3807..fffd4d46c 100644 --- a/example_transportwithhooks_test.go +++ b/example_transportwithhooks_test.go @@ -7,7 +7,7 @@ import ( "os" "time" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" ) // TransportWithHooks is an http.RoundTripper that wraps an existing diff --git a/fasthttp/sentryfasthttp.go b/fasthttp/sentryfasthttp.go index f8a5bf5c4..a45a6ed26 100644 --- a/fasthttp/sentryfasthttp.go +++ b/fasthttp/sentryfasthttp.go @@ -9,7 +9,7 @@ import ( "net/url" "time" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" "github.com/valyala/fasthttp" ) diff --git a/fasthttp/sentryfasthttp_test.go b/fasthttp/sentryfasthttp_test.go index bea895f1f..72ab51937 100644 --- a/fasthttp/sentryfasthttp_test.go +++ b/fasthttp/sentryfasthttp_test.go @@ -10,9 +10,9 @@ import ( "testing" "time" - "github.com/getsentry/sentry-go" - sentryfasthttp "github.com/getsentry/sentry-go/fasthttp" - "github.com/getsentry/sentry-go/internal/testutils" + "github.com/exaring/sentry-go" + sentryfasthttp "github.com/exaring/sentry-go/fasthttp" + "github.com/exaring/sentry-go/internal/testutils" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/valyala/fasthttp" diff --git a/fiber/sentryfiber.go b/fiber/sentryfiber.go index 25460c62b..9b4e9d484 100644 --- a/fiber/sentryfiber.go +++ b/fiber/sentryfiber.go @@ -12,7 +12,7 @@ import ( "github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2/utils" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" ) const ( diff --git a/fiber/sentryfiber_test.go b/fiber/sentryfiber_test.go index 15736a6a2..609a6ce2d 100644 --- a/fiber/sentryfiber_test.go +++ b/fiber/sentryfiber_test.go @@ -13,9 +13,9 @@ import ( "github.com/gofiber/fiber/v2" - "github.com/getsentry/sentry-go" - sentryfiber "github.com/getsentry/sentry-go/fiber" - "github.com/getsentry/sentry-go/internal/testutils" + "github.com/exaring/sentry-go" + sentryfiber "github.com/exaring/sentry-go/fiber" + "github.com/exaring/sentry-go/internal/testutils" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" ) diff --git a/gin/sentrygin.go b/gin/sentrygin.go index cc2179eda..0136ddc4f 100644 --- a/gin/sentrygin.go +++ b/gin/sentrygin.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" "github.com/gin-gonic/gin" ) diff --git a/gin/sentrygin_test.go b/gin/sentrygin_test.go index 44dc8bd43..99f3ec453 100644 --- a/gin/sentrygin_test.go +++ b/gin/sentrygin_test.go @@ -10,9 +10,9 @@ import ( "testing" "time" - "github.com/getsentry/sentry-go" - sentrygin "github.com/getsentry/sentry-go/gin" - "github.com/getsentry/sentry-go/internal/testutils" + "github.com/exaring/sentry-go" + sentrygin "github.com/exaring/sentry-go/gin" + "github.com/exaring/sentry-go/internal/testutils" "github.com/gin-gonic/gin" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/go.mod b/go.mod index 14f6134b0..3e565ab69 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/getsentry/sentry-go +module github.com/exaring/sentry-go go 1.18 diff --git a/helpers_test.go b/helpers_test.go index 5821f5b46..9c6bcf59e 100644 --- a/helpers_test.go +++ b/helpers_test.go @@ -1,7 +1,7 @@ package sentry import ( - "github.com/getsentry/sentry-go/internal/testutils" + "github.com/exaring/sentry-go/internal/testutils" ) var assertEqual = testutils.AssertEqual diff --git a/http/example_test.go b/http/example_test.go index 957ee3dfa..e57714cc5 100644 --- a/http/example_test.go +++ b/http/example_test.go @@ -4,8 +4,8 @@ import ( "net/http" "time" - "github.com/getsentry/sentry-go" - sentryhttp "github.com/getsentry/sentry-go/http" + "github.com/exaring/sentry-go" + sentryhttp "github.com/exaring/sentry-go/http" ) // For a longer and executable example, see diff --git a/http/sentryhttp.go b/http/sentryhttp.go index d8ab57be0..049c00f00 100644 --- a/http/sentryhttp.go +++ b/http/sentryhttp.go @@ -8,7 +8,7 @@ import ( "net/http" "time" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" ) // The identifier of the HTTP SDK. diff --git a/http/sentryhttp_test.go b/http/sentryhttp_test.go index e5424b363..f7f0cf434 100644 --- a/http/sentryhttp_test.go +++ b/http/sentryhttp_test.go @@ -9,9 +9,9 @@ import ( "testing" "time" - "github.com/getsentry/sentry-go" - sentryhttp "github.com/getsentry/sentry-go/http" - "github.com/getsentry/sentry-go/internal/testutils" + "github.com/exaring/sentry-go" + sentryhttp "github.com/exaring/sentry-go/http" + "github.com/exaring/sentry-go/internal/testutils" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/stretchr/testify/assert" diff --git a/integrations_test.go b/integrations_test.go index c43cea53f..c5a54764f 100644 --- a/integrations_test.go +++ b/integrations_test.go @@ -241,7 +241,7 @@ func TestContextifyFrames(t *testing.T) { frames := cfi.contextify([]Frame{{ Function: "Trace", - Module: "github.com/getsentry/sentry-go", + Module: "github.com/exaring/sentry-go", Filename: filename, AbsPath: abspath, Lineno: 12, @@ -325,7 +325,7 @@ func TestExtractModules(t *testing.T) { }, Deps: []*debug.Module{ { - Path: "github.com/getsentry/sentry-go", + Path: "github.com/exaring/sentry-go", Version: "v0.5.1", }, { @@ -335,9 +335,9 @@ func TestExtractModules(t *testing.T) { }, }, want: map[string]string{ - "my/module": "(devel)", - "github.com/getsentry/sentry-go": "v0.5.1", - "github.com/gin-gonic/gin": "v1.4.0", + "my/module": "(devel)", + "github.com/exaring/sentry-go": "v0.5.1", + "github.com/gin-gonic/gin": "v1.4.0", }, }, { @@ -349,7 +349,7 @@ func TestExtractModules(t *testing.T) { }, Deps: []*debug.Module{ { - Path: "github.com/getsentry/sentry-go", + Path: "github.com/exaring/sentry-go", Version: "v0.5.1", Replace: &debug.Module{ Path: "pkg/sentry", @@ -358,8 +358,8 @@ func TestExtractModules(t *testing.T) { }, }, want: map[string]string{ - "my/module": "(devel)", - "github.com/getsentry/sentry-go": "v0.5.1 => pkg/sentry", + "my/module": "(devel)", + "github.com/exaring/sentry-go": "v0.5.1 => pkg/sentry", }, }, { diff --git a/internal/otel/baggage/baggage.go b/internal/otel/baggage/baggage.go index 180655506..7a3b6937b 100644 --- a/internal/otel/baggage/baggage.go +++ b/internal/otel/baggage/baggage.go @@ -24,7 +24,7 @@ import ( "strings" "unicode/utf8" - "github.com/getsentry/sentry-go/internal/otel/baggage/internal/baggage" + "github.com/exaring/sentry-go/internal/otel/baggage/internal/baggage" ) const ( diff --git a/internal/otel/baggage/baggage_test.go b/internal/otel/baggage/baggage_test.go index a900c91db..8134b5df1 100644 --- a/internal/otel/baggage/baggage_test.go +++ b/internal/otel/baggage/baggage_test.go @@ -26,7 +26,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/getsentry/sentry-go/internal/otel/baggage/internal/baggage" + "github.com/exaring/sentry-go/internal/otel/baggage/internal/baggage" ) var rng *rand.Rand diff --git a/internal/testutils/asserts.go b/internal/testutils/asserts.go index 5d8be7120..03e4447be 100644 --- a/internal/testutils/asserts.go +++ b/internal/testutils/asserts.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - "github.com/getsentry/sentry-go/internal/otel/baggage" + "github.com/exaring/sentry-go/internal/otel/baggage" "github.com/google/go-cmp/cmp" ) diff --git a/internal/traceparser/parser_test.go b/internal/traceparser/parser_test.go index 7393517ae..519c3710b 100644 --- a/internal/traceparser/parser_test.go +++ b/internal/traceparser/parser_test.go @@ -45,9 +45,9 @@ func TestParseEmpty(t *testing.T) { var tracetext = []byte(` goroutine 7 [running]: -github.com/getsentry/sentry-go/internal/traceparser.TestGenerateTrace.func1() +github.com/exaring/sentry-go/internal/traceparser.TestGenerateTrace.func1() c:/dev/sentry-go/internal/traceparser/parser_test.go:23 +0x6c -created by github.com/getsentry/sentry-go/internal/traceparser.TestGenerateTrace in goroutine 6 +created by github.com/exaring/sentry-go/internal/traceparser.TestGenerateTrace in goroutine 6 c:/dev/sentry-go/internal/traceparser/parser_test.go:17 +0x7f goroutine 1 [chan receive]: @@ -65,9 +65,9 @@ main.main() _testmain.go:465 +0x1aa goroutine 6 [chan send]: -github.com/getsentry/sentry-go.startProfiling.func3() +github.com/exaring/sentry-go.startProfiling.func3() c:/dev/sentry-go/profiler.go:46 +0x2b -github.com/getsentry/sentry-go.TestStart(0x0?) +github.com/exaring/sentry-go.TestStart(0x0?) c:/dev/sentry-go/profiler_test.go:13 +0x3e testing.tRunner(0xc00006f860, 0x6b5f98) C:/Users/name/scoop/apps/go/current/src/testing/testing.go:1576 +0x10b @@ -77,15 +77,15 @@ created by testing.(*T).Run goroutine 7 [stopping the world]: runtime.Stack({0xc000200000, 0x100000, 0x100000}, 0x1) C:/Users/name/scoop/apps/go/current/src/runtime/mprof.go:1193 +0x4d -github.com/getsentry/sentry-go.(*profileRecorder).Collect(0xc00008a820) +github.com/exaring/sentry-go.(*profileRecorder).Collect(0xc00008a820) c:/dev/sentry-go/profiler.go:73 +0x3b -github.com/getsentry/sentry-go.startProfiling.func2() +github.com/exaring/sentry-go.startProfiling.func2() c:/dev/sentry-go/profiler.go:38 +0xb1 -created by github.com/getsentry/sentry-go.startProfiling +created by github.com/exaring/sentry-go.startProfiling c:/dev/sentry-go/profiler.go:31 +0x36c goroutine 19 [chan send]: -github.com/getsentry/sentry-go.startProfiling.func1() +github.com/exaring/sentry-go.startProfiling.func1() c:/dev/sentry-go/profiler.go:29 +0x25 ...additional frames elided... created by time.goFunc @@ -105,9 +105,9 @@ func TestParse(t *testing.T) { i++ } - checkTrace(7, `github.com/getsentry/sentry-go/internal/traceparser.TestGenerateTrace.func1() + checkTrace(7, `github.com/exaring/sentry-go/internal/traceparser.TestGenerateTrace.func1() c:/dev/sentry-go/internal/traceparser/parser_test.go:23 +0x6c -created by github.com/getsentry/sentry-go/internal/traceparser.TestGenerateTrace in goroutine 6 +created by github.com/exaring/sentry-go/internal/traceparser.TestGenerateTrace in goroutine 6 c:/dev/sentry-go/internal/traceparser/parser_test.go:17 +0x7f`) checkTrace(1, `testing.(*T).Run(0xc00006f6c0, {0x672288?, 0x180fd3?}, 0x6b5f98) @@ -123,9 +123,9 @@ testing.(*M).Run(0xc000035ea0) main.main() _testmain.go:465 +0x1aa`) - checkTrace(6, `github.com/getsentry/sentry-go.startProfiling.func3() + checkTrace(6, `github.com/exaring/sentry-go.startProfiling.func3() c:/dev/sentry-go/profiler.go:46 +0x2b -github.com/getsentry/sentry-go.TestStart(0x0?) +github.com/exaring/sentry-go.TestStart(0x0?) c:/dev/sentry-go/profiler_test.go:13 +0x3e testing.tRunner(0xc00006f860, 0x6b5f98) C:/Users/name/scoop/apps/go/current/src/testing/testing.go:1576 +0x10b @@ -134,14 +134,14 @@ created by testing.(*T).Run checkTrace(7, `runtime.Stack({0xc000200000, 0x100000, 0x100000}, 0x1) C:/Users/name/scoop/apps/go/current/src/runtime/mprof.go:1193 +0x4d -github.com/getsentry/sentry-go.(*profileRecorder).Collect(0xc00008a820) +github.com/exaring/sentry-go.(*profileRecorder).Collect(0xc00008a820) c:/dev/sentry-go/profiler.go:73 +0x3b -github.com/getsentry/sentry-go.startProfiling.func2() +github.com/exaring/sentry-go.startProfiling.func2() c:/dev/sentry-go/profiler.go:38 +0xb1 -created by github.com/getsentry/sentry-go.startProfiling +created by github.com/exaring/sentry-go.startProfiling c:/dev/sentry-go/profiler.go:31 +0x36c`) - checkTrace(19, `github.com/getsentry/sentry-go.startProfiling.func1() + checkTrace(19, `github.com/exaring/sentry-go.startProfiling.func1() c:/dev/sentry-go/profiler.go:29 +0x25 ...additional frames elided... created by time.goFunc @@ -172,10 +172,10 @@ func TestFrames(t *testing.T) { var expected = strings.Split(strings.TrimLeft(` Trace 0: goroutine 7 with at most 2 frames - Func = github.com/getsentry/sentry-go/internal/traceparser.TestGenerateTrace.func1 + Func = github.com/exaring/sentry-go/internal/traceparser.TestGenerateTrace.func1 File = c:/dev/sentry-go/internal/traceparser/parser_test.go Line = 23 - Func = github.com/getsentry/sentry-go/internal/traceparser.TestGenerateTrace + Func = github.com/exaring/sentry-go/internal/traceparser.TestGenerateTrace File = c:/dev/sentry-go/internal/traceparser/parser_test.go Line = 17 Trace 1: goroutine 1 with at most 6 frames @@ -198,10 +198,10 @@ Trace 1: goroutine 1 with at most 6 frames File = _testmain.go Line = 465 Trace 2: goroutine 6 with at most 4 frames - Func = github.com/getsentry/sentry-go.startProfiling.func3 + Func = github.com/exaring/sentry-go.startProfiling.func3 File = c:/dev/sentry-go/profiler.go Line = 46 - Func = github.com/getsentry/sentry-go.TestStart + Func = github.com/exaring/sentry-go.TestStart File = c:/dev/sentry-go/profiler_test.go Line = 13 Func = testing.tRunner @@ -214,17 +214,17 @@ Trace 3: goroutine 7 with at most 4 frames Func = runtime.Stack File = C:/Users/name/scoop/apps/go/current/src/runtime/mprof.go Line = 1193 - Func = github.com/getsentry/sentry-go.(*profileRecorder).Collect + Func = github.com/exaring/sentry-go.(*profileRecorder).Collect File = c:/dev/sentry-go/profiler.go Line = 73 - Func = github.com/getsentry/sentry-go.startProfiling.func2 + Func = github.com/exaring/sentry-go.startProfiling.func2 File = c:/dev/sentry-go/profiler.go Line = 38 - Func = github.com/getsentry/sentry-go.startProfiling + Func = github.com/exaring/sentry-go.startProfiling File = c:/dev/sentry-go/profiler.go Line = 31 Trace 4: goroutine 19 with at most 2 frames - Func = github.com/getsentry/sentry-go.startProfiling.func1 + Func = github.com/exaring/sentry-go.startProfiling.func1 File = c:/dev/sentry-go/profiler.go Line = 29 Func = time.goFunc @@ -256,10 +256,10 @@ func TestFramesReversed(t *testing.T) { var expected = strings.Split(strings.TrimLeft(` Trace 0: goroutine 7 with at most 2 frames - Func = github.com/getsentry/sentry-go/internal/traceparser.TestGenerateTrace + Func = github.com/exaring/sentry-go/internal/traceparser.TestGenerateTrace File = c:/dev/sentry-go/internal/traceparser/parser_test.go Line = 17 - Func = github.com/getsentry/sentry-go/internal/traceparser.TestGenerateTrace.func1 + Func = github.com/exaring/sentry-go/internal/traceparser.TestGenerateTrace.func1 File = c:/dev/sentry-go/internal/traceparser/parser_test.go Line = 23 Trace 1: goroutine 1 with at most 6 frames @@ -288,20 +288,20 @@ Trace 2: goroutine 6 with at most 4 frames Func = testing.tRunner File = C:/Users/name/scoop/apps/go/current/src/testing/testing.go Line = 1576 - Func = github.com/getsentry/sentry-go.TestStart + Func = github.com/exaring/sentry-go.TestStart File = c:/dev/sentry-go/profiler_test.go Line = 13 - Func = github.com/getsentry/sentry-go.startProfiling.func3 + Func = github.com/exaring/sentry-go.startProfiling.func3 File = c:/dev/sentry-go/profiler.go Line = 46 Trace 3: goroutine 7 with at most 4 frames - Func = github.com/getsentry/sentry-go.startProfiling + Func = github.com/exaring/sentry-go.startProfiling File = c:/dev/sentry-go/profiler.go Line = 31 - Func = github.com/getsentry/sentry-go.startProfiling.func2 + Func = github.com/exaring/sentry-go.startProfiling.func2 File = c:/dev/sentry-go/profiler.go Line = 38 - Func = github.com/getsentry/sentry-go.(*profileRecorder).Collect + Func = github.com/exaring/sentry-go.(*profileRecorder).Collect File = c:/dev/sentry-go/profiler.go Line = 73 Func = runtime.Stack @@ -311,7 +311,7 @@ Trace 4: goroutine 19 with at most 2 frames Func = time.goFunc File = C:/Users/name/scoop/apps/go/current/src/time/sleep.go Line = 176 - Func = github.com/getsentry/sentry-go.startProfiling.func1 + Func = github.com/exaring/sentry-go.startProfiling.func1 File = c:/dev/sentry-go/profiler.go Line = 29 `, "\n"), "\n") diff --git a/iris/example_test.go b/iris/example_test.go index b5a8420f7..2bce70b69 100644 --- a/iris/example_test.go +++ b/iris/example_test.go @@ -4,8 +4,8 @@ import ( "context" "net/http" - "github.com/getsentry/sentry-go" - sentryiris "github.com/getsentry/sentry-go/iris" + "github.com/exaring/sentry-go" + sentryiris "github.com/exaring/sentry-go/iris" "github.com/kataras/iris/v12" ) diff --git a/iris/sentryiris.go b/iris/sentryiris.go index 86d0d03bc..8c4a99623 100644 --- a/iris/sentryiris.go +++ b/iris/sentryiris.go @@ -9,7 +9,7 @@ import ( "net/http" "time" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" "github.com/kataras/iris/v12" ) diff --git a/iris/sentryiris_test.go b/iris/sentryiris_test.go index 35ddd6741..30a84abad 100644 --- a/iris/sentryiris_test.go +++ b/iris/sentryiris_test.go @@ -8,9 +8,9 @@ import ( "strings" "testing" - "github.com/getsentry/sentry-go" - "github.com/getsentry/sentry-go/internal/testutils" - sentryiris "github.com/getsentry/sentry-go/iris" + "github.com/exaring/sentry-go" + "github.com/exaring/sentry-go/internal/testutils" + sentryiris "github.com/exaring/sentry-go/iris" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/kataras/iris/v12" diff --git a/logrus/logrusentry.go b/logrus/logrusentry.go index f9d921651..247eaadcb 100644 --- a/logrus/logrusentry.go +++ b/logrus/logrusentry.go @@ -8,7 +8,7 @@ import ( "github.com/sirupsen/logrus" - sentry "github.com/getsentry/sentry-go" + sentry "github.com/exaring/sentry-go" ) // The identifier of the Logrus SDK. diff --git a/logrus/logrusentry_test.go b/logrus/logrusentry_test.go index ee208ab52..95b7e785c 100644 --- a/logrus/logrusentry_test.go +++ b/logrus/logrusentry_test.go @@ -13,8 +13,8 @@ import ( pkgerr "github.com/pkg/errors" "github.com/sirupsen/logrus" - "github.com/getsentry/sentry-go" - "github.com/getsentry/sentry-go/internal/testutils" + "github.com/exaring/sentry-go" + "github.com/exaring/sentry-go/internal/testutils" ) func TestNew(t *testing.T) { diff --git a/martini/sentrymartini.go b/martini/sentrymartini.go index 5db83345c..1b30ecf66 100644 --- a/martini/sentrymartini.go +++ b/martini/sentrymartini.go @@ -5,7 +5,7 @@ import ( "net/http" "time" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" "github.com/go-martini/martini" ) diff --git a/negroni/sentrynegroni.go b/negroni/sentrynegroni.go index 82d476a1f..7daab3f51 100644 --- a/negroni/sentrynegroni.go +++ b/negroni/sentrynegroni.go @@ -6,7 +6,7 @@ import ( "net/http" "time" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" "github.com/urfave/negroni" ) diff --git a/negroni/sentrynegroni_test.go b/negroni/sentrynegroni_test.go index 0d4f03848..cc57e8b5d 100644 --- a/negroni/sentrynegroni_test.go +++ b/negroni/sentrynegroni_test.go @@ -9,9 +9,9 @@ import ( "testing" "time" - "github.com/getsentry/sentry-go" - "github.com/getsentry/sentry-go/internal/testutils" - sentrynegroni "github.com/getsentry/sentry-go/negroni" + "github.com/exaring/sentry-go" + "github.com/exaring/sentry-go/internal/testutils" + sentrynegroni "github.com/exaring/sentry-go/negroni" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/urfave/negroni" diff --git a/otel/event_processor.go b/otel/event_processor.go index d171b7d6b..bd59bbbb8 100644 --- a/otel/event_processor.go +++ b/otel/event_processor.go @@ -3,7 +3,7 @@ package sentryotel import ( - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" "go.opentelemetry.io/otel/trace" ) diff --git a/otel/event_processor_test.go b/otel/event_processor_test.go index 692f462fd..2511ef75f 100644 --- a/otel/event_processor_test.go +++ b/otel/event_processor_test.go @@ -7,7 +7,7 @@ import ( "fmt" "testing" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" ) func TestLinkTraceContextToErrorEventSetsContext(t *testing.T) { diff --git a/otel/go.mod b/otel/go.mod index b31a7aa4a..89e52321e 100644 --- a/otel/go.mod +++ b/otel/go.mod @@ -1,16 +1,16 @@ -module github.com/getsentry/sentry-go/otel +module github.com/exaring/sentry-go/otel go 1.18 require ( - github.com/getsentry/sentry-go v0.28.1 + github.com/exaring/sentry-go v0.28.1 github.com/google/go-cmp v0.5.9 go.opentelemetry.io/otel v1.11.0 go.opentelemetry.io/otel/sdk v1.11.0 go.opentelemetry.io/otel/trace v1.11.0 ) -replace github.com/getsentry/sentry-go => ../ +replace github.com/exaring/sentry-go => ../ require ( github.com/go-logr/logr v1.2.3 // indirect diff --git a/otel/helpers_test.go b/otel/helpers_test.go index e06274578..da4ab2eda 100644 --- a/otel/helpers_test.go +++ b/otel/helpers_test.go @@ -9,9 +9,9 @@ import ( "testing" "time" - "github.com/getsentry/sentry-go" - "github.com/getsentry/sentry-go/internal/otel/baggage" - "github.com/getsentry/sentry-go/internal/testutils" + "github.com/exaring/sentry-go" + "github.com/exaring/sentry-go/internal/otel/baggage" + "github.com/exaring/sentry-go/internal/testutils" "github.com/google/go-cmp/cmp" "go.opentelemetry.io/otel/propagation" "go.opentelemetry.io/otel/trace" diff --git a/otel/internal/utils/mapotelstatus.go b/otel/internal/utils/mapotelstatus.go index 2d4614869..6e30c6941 100644 --- a/otel/internal/utils/mapotelstatus.go +++ b/otel/internal/utils/mapotelstatus.go @@ -3,7 +3,7 @@ package utils import ( - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" "go.opentelemetry.io/otel/codes" "go.opentelemetry.io/otel/sdk/trace" semconv "go.opentelemetry.io/otel/semconv/v1.12.0" diff --git a/otel/internal/utils/mapotelstatus_test.go b/otel/internal/utils/mapotelstatus_test.go index 7629403e8..9b40147b2 100644 --- a/otel/internal/utils/mapotelstatus_test.go +++ b/otel/internal/utils/mapotelstatus_test.go @@ -2,14 +2,15 @@ package utils_test import ( "fmt" - "github.com/getsentry/sentry-go" - "github.com/getsentry/sentry-go/otel/internal/utils" + "strconv" + "testing" + + "github.com/exaring/sentry-go" + "github.com/exaring/sentry-go/otel/internal/utils" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" "go.opentelemetry.io/otel/sdk/trace" semconv "go.opentelemetry.io/otel/semconv/v1.12.0" - "strconv" - "testing" ) type mockReadOnlySpan struct { diff --git a/otel/internal/utils/sentryrequest.go b/otel/internal/utils/sentryrequest.go index 8b078d5ee..f7aa301ee 100644 --- a/otel/internal/utils/sentryrequest.go +++ b/otel/internal/utils/sentryrequest.go @@ -6,7 +6,7 @@ import ( "context" "strings" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" "go.opentelemetry.io/otel/sdk/trace" semconv "go.opentelemetry.io/otel/semconv/v1.12.0" ) diff --git a/otel/internal/utils/spanattributes.go b/otel/internal/utils/spanattributes.go index 0571d23d3..5a59aee66 100644 --- a/otel/internal/utils/spanattributes.go +++ b/otel/internal/utils/spanattributes.go @@ -6,7 +6,7 @@ import ( "fmt" "net/url" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" otelSdkTrace "go.opentelemetry.io/otel/sdk/trace" semconv "go.opentelemetry.io/otel/semconv/v1.12.0" otelTrace "go.opentelemetry.io/otel/trace" diff --git a/otel/propagator.go b/otel/propagator.go index 8a5d3e626..034e33af1 100644 --- a/otel/propagator.go +++ b/otel/propagator.go @@ -5,8 +5,8 @@ package sentryotel import ( "context" - "github.com/getsentry/sentry-go" - "github.com/getsentry/sentry-go/internal/otel/baggage" + "github.com/exaring/sentry-go" + "github.com/exaring/sentry-go/internal/otel/baggage" "go.opentelemetry.io/otel/propagation" "go.opentelemetry.io/otel/trace" ) diff --git a/otel/propagator_test.go b/otel/propagator_test.go index 0941aa3bd..06cb2a6e7 100644 --- a/otel/propagator_test.go +++ b/otel/propagator_test.go @@ -6,8 +6,8 @@ import ( "context" "testing" - "github.com/getsentry/sentry-go" - "github.com/getsentry/sentry-go/internal/otel/baggage" + "github.com/exaring/sentry-go" + "github.com/exaring/sentry-go/internal/otel/baggage" "go.opentelemetry.io/otel/propagation" "go.opentelemetry.io/otel/trace" ) diff --git a/otel/span_map.go b/otel/span_map.go index 9390a8a74..3b2fa3223 100644 --- a/otel/span_map.go +++ b/otel/span_map.go @@ -5,7 +5,7 @@ package sentryotel import ( "sync" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" otelTrace "go.opentelemetry.io/otel/trace" ) diff --git a/otel/span_processor.go b/otel/span_processor.go index 97a712056..e495ab7a3 100644 --- a/otel/span_processor.go +++ b/otel/span_processor.go @@ -6,8 +6,8 @@ import ( "context" "time" - "github.com/getsentry/sentry-go" - "github.com/getsentry/sentry-go/otel/internal/utils" + "github.com/exaring/sentry-go" + "github.com/exaring/sentry-go/otel/internal/utils" "go.opentelemetry.io/otel/attribute" otelSdkTrace "go.opentelemetry.io/otel/sdk/trace" ) diff --git a/otel/span_processor_test.go b/otel/span_processor_test.go index 1d90c6840..54886ed52 100644 --- a/otel/span_processor_test.go +++ b/otel/span_processor_test.go @@ -7,8 +7,8 @@ import ( "log" "testing" - "github.com/getsentry/sentry-go" - "github.com/getsentry/sentry-go/internal/testutils" + "github.com/exaring/sentry-go" + "github.com/exaring/sentry-go/internal/testutils" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/sdk/resource" otelSdkTrace "go.opentelemetry.io/otel/sdk/trace" diff --git a/profiler.go b/profiler.go index c0b858cc1..e4ae861f0 100644 --- a/profiler.go +++ b/profiler.go @@ -9,7 +9,7 @@ import ( "sync/atomic" "time" - "github.com/getsentry/sentry-go/internal/traceparser" + "github.com/exaring/sentry-go/internal/traceparser" ) // Start a profiler that collects samples continuously, with a buffer of up to 30 seconds. diff --git a/profiler_test.go b/profiler_test.go index 8d6f2284a..310a349ed 100644 --- a/profiler_test.go +++ b/profiler_test.go @@ -13,7 +13,7 @@ import ( "testing" "time" - "github.com/getsentry/sentry-go/internal/testutils" + "github.com/exaring/sentry-go/internal/testutils" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -207,7 +207,7 @@ func TestProfilerStackTrace(t *testing.T) { // Note: we can't check the exact stack trace because the profiler runs its own goroutine // And this test goroutine may be interrupted at multiple points. require.True(strings.HasSuffix(actual, ` -github.com/getsentry/sentry-go TestProfilerStackTrace +github.com/exaring/sentry-go TestProfilerStackTrace testing tRunner testing (*T).Run`)) } diff --git a/scope_concurrency_test.go b/scope_concurrency_test.go index ec9a313d6..ebc749019 100644 --- a/scope_concurrency_test.go +++ b/scope_concurrency_test.go @@ -6,7 +6,7 @@ import ( "sync" "testing" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" ) func TestConcurrentScopeUsage(_ *testing.T) { diff --git a/stacktrace.go b/stacktrace.go index 2f8933ea9..7ce9bd9f6 100644 --- a/stacktrace.go +++ b/stacktrace.go @@ -321,7 +321,7 @@ func shouldSkipFrame(module string) bool { } // Skip Sentry internal frames, except for frames in _test packages (for testing). - if strings.HasPrefix(module, "github.com/getsentry/sentry-go") && + if strings.HasPrefix(module, "github.com/exaring/sentry-go") && !strings.HasSuffix(module, "_test") { return true } diff --git a/stacktrace_below_go1.20_test.go b/stacktrace_below_go1.20_test.go index 2f350e3c8..ffafda8bd 100644 --- a/stacktrace_below_go1.20_test.go +++ b/stacktrace_below_go1.20_test.go @@ -18,7 +18,7 @@ func TestFilterCompilerGeneratedSymbols(t *testing.T) { {"type..eq.runtime._panic", ""}, {"type..hash.struct { runtime.gList; runtime.n int32 }", ""}, {"go.(*struct { sync.Mutex; math/big.table [64]math/big", ""}, - {"github.com/getsentry/sentry-go.Test.func2.1.1", "github.com/getsentry/sentry-go"}, + {"github.com/exaring/sentry-go.Test.func2.1.1", "github.com/exaring/sentry-go"}, } for _, tt := range tests { diff --git a/stacktrace_external_test.go b/stacktrace_external_test.go index 4b609a8b5..aa55183a0 100644 --- a/stacktrace_external_test.go +++ b/stacktrace_external_test.go @@ -11,7 +11,7 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" - "github.com/getsentry/sentry-go" + "github.com/exaring/sentry-go" ) func f1() *sentry.Stacktrace { @@ -59,7 +59,7 @@ func TestNewStacktrace(t *testing.T) { Frames: []sentry.Frame{ { Function: "f1", - Module: "github.com/getsentry/sentry-go_test", + Module: "github.com/exaring/sentry-go_test", Lineno: 18, InApp: true, }, @@ -69,13 +69,13 @@ func TestNewStacktrace(t *testing.T) { Frames: []sentry.Frame{ { Function: "f2", - Module: "github.com/getsentry/sentry-go_test", + Module: "github.com/exaring/sentry-go_test", Lineno: 22, InApp: true, }, { Function: "f1", - Module: "github.com/getsentry/sentry-go_test", + Module: "github.com/exaring/sentry-go_test", Lineno: 18, InApp: true, }, @@ -90,7 +90,7 @@ func TestNewStacktrace(t *testing.T) { Frames: []sentry.Frame{ { Function: "f3", - Module: "github.com/getsentry/sentry-go_test", + Module: "github.com/exaring/sentry-go_test", Lineno: 25, InApp: true, }, @@ -119,13 +119,13 @@ func TestExtractStacktrace(t *testing.T) { Frames: []sentry.Frame{ { Function: "RedPkgErrorsRanger", - Module: "github.com/getsentry/sentry-go_test", + Module: "github.com/exaring/sentry-go_test", Lineno: 29, InApp: true, }, { Function: "BluePkgErrorsRanger", - Module: "github.com/getsentry/sentry-go_test", + Module: "github.com/exaring/sentry-go_test", Lineno: 33, InApp: true, }, @@ -136,13 +136,13 @@ func TestExtractStacktrace(t *testing.T) { Frames: []sentry.Frame{ { Function: "RedPingcapErrorsRanger", - Module: "github.com/getsentry/sentry-go_test", + Module: "github.com/exaring/sentry-go_test", Lineno: 37, InApp: true, }, { Function: "BluePingcapErrorsRanger", - Module: "github.com/getsentry/sentry-go_test", + Module: "github.com/exaring/sentry-go_test", Lineno: 41, InApp: true, }, @@ -153,13 +153,13 @@ func TestExtractStacktrace(t *testing.T) { Frames: []sentry.Frame{ { Function: "RedGoErrorsRanger", - Module: "github.com/getsentry/sentry-go_test", + Module: "github.com/exaring/sentry-go_test", Lineno: 45, InApp: true, }, { Function: "BlueGoErrorsRanger", - Module: "github.com/getsentry/sentry-go_test", + Module: "github.com/exaring/sentry-go_test", Lineno: 49, InApp: true, }, @@ -184,7 +184,7 @@ func TestExtractStacktrace(t *testing.T) { // Frames: []sentry.Frame{ // { // Function: "TestExtractStacktrace.func1", - // Module: "github.com/getsentry/sentry-go_test", + // Module: "github.com/exaring/sentry-go_test", // Lineno: 178, // InApp: true, // }, @@ -204,7 +204,7 @@ func TestExtractStacktrace(t *testing.T) { // Frames: []sentry.Frame{ // { // Function: "TestExtractStacktrace.func2", - // Module: "github.com/getsentry/sentry-go_test", + // Module: "github.com/exaring/sentry-go_test", // Lineno: 198, // InApp: true, // }, @@ -224,7 +224,7 @@ func TestExtractStacktrace(t *testing.T) { // Frames: []sentry.Frame{ // { // Function: "TestExtractStacktrace.func3", - // Module: "github.com/getsentry/sentry-go_test", + // Module: "github.com/exaring/sentry-go_test", // Lineno: 218, // InApp: true, // }, diff --git a/stacktrace_test.go b/stacktrace_test.go index 96d682801..4ba0a7e33 100644 --- a/stacktrace_test.go +++ b/stacktrace_test.go @@ -36,23 +36,23 @@ func TestSplitQualifiedFunctionName(t *testing.T) { {"runtime.Callers", "runtime", "Callers"}, {"main.main.func1", "main", "main.func1"}, { - "github.com/getsentry/sentry-go.Init", - "github.com/getsentry/sentry-go", + "github.com/exaring/sentry-go.Init", + "github.com/exaring/sentry-go", "Init", }, { - "github.com/getsentry/sentry-go.(*Hub).Flush", - "github.com/getsentry/sentry-go", + "github.com/exaring/sentry-go.(*Hub).Flush", + "github.com/exaring/sentry-go", "(*Hub).Flush", }, { - "github.com/getsentry/sentry-go.Test.func2.1.1", - "github.com/getsentry/sentry-go", + "github.com/exaring/sentry-go.Test.func2.1.1", + "github.com/exaring/sentry-go", "Test.func2.1.1", }, { - "github.com/getsentry/confusing%2epkg%2ewith%2edots.Test.func1", - "github.com/getsentry/confusing%2epkg%2ewith%2edots", + "github.com/exaring/confusing%2epkg%2ewith%2edots.Test.func1", + "github.com/exaring/confusing%2epkg%2ewith%2edots", "Test.func1", }, } @@ -90,22 +90,22 @@ func TestCreateFrames(t *testing.T) { File: "/goroot/src/testing/testing.go", }, { - Function: "github.com/getsentry/sentry-go_test.TestNewStacktrace.func1", + Function: "github.com/exaring/sentry-go_test.TestNewStacktrace.func1", File: "/somewhere/sentry/sentry-go/stacktrace_external_test.go", }, { - Function: "github.com/getsentry/sentry-go.StacktraceTestHelper.NewStacktrace", + Function: "github.com/exaring/sentry-go.StacktraceTestHelper.NewStacktrace", File: "/somewhere/sentry/sentry-go/stacktrace_test.go", }, { - Function: "github.com/getsentry/sentry-go.NewStacktrace", + Function: "github.com/exaring/sentry-go.NewStacktrace", File: "/somewhere/sentry/sentry-go/stacktrace.go", }, }, out: []Frame{ { Function: "TestNewStacktrace.func1", - Module: "github.com/getsentry/sentry-go_test", + Module: "github.com/exaring/sentry-go_test", AbsPath: "/somewhere/sentry/sentry-go/stacktrace_external_test.go", InApp: true, }, @@ -115,11 +115,11 @@ func TestCreateFrames(t *testing.T) { { in: []runtime.Frame{ { - Function: "github.com/getsentry/sentry-go/http/integration.Example.Integration", + Function: "github.com/exaring/sentry-go/http/integration.Example.Integration", File: "/somewhere/sentry/sentry-go/http/integration/integration.go", }, { - Function: "github.com/getsentry/sentry-go/http.(*Handler).Handle", + Function: "github.com/exaring/sentry-go/http.(*Handler).Handle", File: "/somewhere/sentry/sentry-go/http/sentryhttp.go", }, { diff --git a/transport.go b/transport.go index 20f69941f..7721c1ca5 100644 --- a/transport.go +++ b/transport.go @@ -13,7 +13,7 @@ import ( "sync" "time" - "github.com/getsentry/sentry-go/internal/ratelimit" + "github.com/exaring/sentry-go/internal/ratelimit" ) const defaultBufferSize = 30 diff --git a/transport_test.go b/transport_test.go index 9d70db2f7..5a13e2518 100644 --- a/transport_test.go +++ b/transport_test.go @@ -15,7 +15,7 @@ import ( "testing" "time" - "github.com/getsentry/sentry-go/internal/testutils" + "github.com/exaring/sentry-go/internal/testutils" "github.com/google/go-cmp/cmp" ) diff --git a/util_test.go b/util_test.go index 48d663985..c9e593132 100644 --- a/util_test.go +++ b/util_test.go @@ -54,7 +54,7 @@ func TestRevisionFromBuildInfo(t *testing.T) { }, Deps: []*debug.Module{ { - Path: "github.com/getsentry/sentry-go", + Path: "github.com/exaring/sentry-go", Version: "v0.23.1", Replace: &debug.Module{ Path: "pkg/sentry", @@ -80,7 +80,7 @@ func TestRevisionFromBuildInfoNoVcsInformation(t *testing.T) { }, Deps: []*debug.Module{ { - Path: "github.com/getsentry/sentry-go", + Path: "github.com/exaring/sentry-go", Version: "v0.23.1", Replace: &debug.Module{ Path: "pkg/sentry",