Skip to content

Commit

Permalink
Rename module to BitBucket fork
Browse files Browse the repository at this point in the history
  • Loading branch information
GregBrimble committed Aug 31, 2023
1 parent 672fb81 commit 3fc8efe
Show file tree
Hide file tree
Showing 66 changed files with 161 additions and 160 deletions.
2 changes: 1 addition & 1 deletion _examples/basic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"os"
"time"

"github.com/getsentry/sentry-go"
"go.cfdata.org/~gbrimble/sentry-go"
)

// release is the release of this program that will be reported to Sentry.
Expand Down
2 changes: 1 addition & 1 deletion _examples/crons/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"time"

"github.com/getsentry/sentry-go"
"go.cfdata.org/~gbrimble/sentry-go"
)

func runTask(monitorSlug string, duration time.Duration, shouldFail bool) {
Expand Down
4 changes: 2 additions & 2 deletions _examples/echo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"net/http"

"github.com/getsentry/sentry-go"
sentryecho "github.com/getsentry/sentry-go/echo"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"go.cfdata.org/~gbrimble/sentry-go"
sentryecho "go.cfdata.org/~gbrimble/sentry-go/echo"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _examples/fasthttp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package main
import (
"fmt"

"github.com/getsentry/sentry-go"
sentryfasthttp "github.com/getsentry/sentry-go/fasthttp"
"github.com/valyala/fasthttp"
"go.cfdata.org/~gbrimble/sentry-go"
sentryfasthttp "go.cfdata.org/~gbrimble/sentry-go/fasthttp"
)

func enhanceSentryEvent(handler fasthttp.RequestHandler) fasthttp.RequestHandler {
Expand Down
2 changes: 1 addition & 1 deletion _examples/feature-showcase/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strconv"
"time"

"github.com/getsentry/sentry-go"
"go.cfdata.org/~gbrimble/sentry-go"
)

func prettyPrint(v interface{}) string {
Expand Down
2 changes: 1 addition & 1 deletion _examples/flush/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"time"

"github.com/getsentry/sentry-go"
"go.cfdata.org/~gbrimble/sentry-go"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _examples/gin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"net/http"

"github.com/getsentry/sentry-go"
sentrygin "github.com/getsentry/sentry-go/gin"
"github.com/gin-gonic/gin"
"go.cfdata.org/~gbrimble/sentry-go"
sentrygin "go.cfdata.org/~gbrimble/sentry-go/gin"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _examples/http/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"sync"
"time"

"github.com/getsentry/sentry-go"
sentryhttp "github.com/getsentry/sentry-go/http"
"go.cfdata.org/~gbrimble/sentry-go"
sentryhttp "go.cfdata.org/~gbrimble/sentry-go/http"
)

var addr = flag.String("addr", "127.0.0.1:3000", "bind address")
Expand Down
4 changes: 2 additions & 2 deletions _examples/iris/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"fmt"
"net/http"

"github.com/getsentry/sentry-go"
sentryiris "github.com/getsentry/sentry-go/iris"
"github.com/kataras/iris/v12"
"go.cfdata.org/~gbrimble/sentry-go"
sentryiris "go.cfdata.org/~gbrimble/sentry-go/iris"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _examples/logrus/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/sirupsen/logrus"

"github.com/getsentry/sentry-go"
sentrylogrus "github.com/getsentry/sentry-go/logrus"
"go.cfdata.org/~gbrimble/sentry-go"
sentrylogrus "go.cfdata.org/~gbrimble/sentry-go/logrus"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _examples/martini/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"net/http"

sentrymartini "github.com/getsentry/sentry-go/martini"
sentrymartini "go.cfdata.org/~gbrimble/sentry-go/martini"

"github.com/getsentry/sentry-go"
"github.com/go-martini/martini"
"go.cfdata.org/~gbrimble/sentry-go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _examples/multiclient/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"log"

"github.com/getsentry/sentry-go"
"go.cfdata.org/~gbrimble/sentry-go"
)

type pickleIntegration struct{}
Expand Down
4 changes: 2 additions & 2 deletions _examples/negroni/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"net/http"

sentrynegroni "github.com/getsentry/sentry-go/negroni"
sentrynegroni "go.cfdata.org/~gbrimble/sentry-go/negroni"

"github.com/getsentry/sentry-go"
"github.com/urfave/negroni"
"go.cfdata.org/~gbrimble/sentry-go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _examples/profiling/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"sync"
"time"

"github.com/getsentry/sentry-go"
"go.cfdata.org/~gbrimble/sentry-go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _examples/recover-repanic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"sync"
"time"

"github.com/getsentry/sentry-go"
"go.cfdata.org/~gbrimble/sentry-go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _examples/recover/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"time"

"github.com/getsentry/sentry-go"
"go.cfdata.org/~gbrimble/sentry-go"
)

func prettyPrint(v interface{}) string {
Expand Down
2 changes: 1 addition & 1 deletion _examples/synctransport/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"time"

"github.com/getsentry/sentry-go"
"go.cfdata.org/~gbrimble/sentry-go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _examples/with_extra/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"time"

"github.com/getsentry/sentry-go"
"go.cfdata.org/~gbrimble/sentry-go"
)

func prettyPrint(v interface{}) string {
Expand Down
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"sync"
"time"

"github.com/getsentry/sentry-go/internal/debug"
"go.cfdata.org/~gbrimble/sentry-go/internal/debug"
)

// The identifier of the SDK.
Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Package repository: https://github.com/getsentry/sentry-go/
Package repository: https://go.cfdata.org/~gbrimble/sentry-go/
For more information about Sentry and SDK features, please have a look at the official documentation site: https://docs.sentry.io/platforms/go/
*/
Expand Down
2 changes: 1 addition & 1 deletion dynamic_sampling_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strconv"
"strings"

"github.com/getsentry/sentry-go/internal/otel/baggage"
"go.cfdata.org/~gbrimble/sentry-go/internal/otel/baggage"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion dynamic_sampling_context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/getsentry/sentry-go/internal/testutils"
"go.cfdata.org/~gbrimble/sentry-go/internal/testutils"
)

func TestDynamicSamplingContextFromHeader(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion echo/sentryecho.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net/http"
"time"

"github.com/getsentry/sentry-go"
"github.com/labstack/echo/v4"
"go.cfdata.org/~gbrimble/sentry-go"
)

// The identifier of the Echo SDK.
Expand Down
2 changes: 1 addition & 1 deletion example_transportwithhooks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"time"

"github.com/getsentry/sentry-go"
"go.cfdata.org/~gbrimble/sentry-go"
)

// TransportWithHooks is an http.RoundTripper that wraps an existing
Expand Down
2 changes: 1 addition & 1 deletion fasthttp/sentryfasthttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"net/url"
"time"

"github.com/getsentry/sentry-go"
"github.com/valyala/fasthttp"
"go.cfdata.org/~gbrimble/sentry-go"
)

// The identifier of the FastHTTP SDK.
Expand Down
6 changes: 3 additions & 3 deletions fasthttp/sentryfasthttp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
"testing"
"time"

"github.com/getsentry/sentry-go"
sentryfasthttp "github.com/getsentry/sentry-go/fasthttp"
"github.com/getsentry/sentry-go/internal/testutils"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/valyala/fasthttp"
"github.com/valyala/fasthttp/fasthttputil"
"go.cfdata.org/~gbrimble/sentry-go"
sentryfasthttp "go.cfdata.org/~gbrimble/sentry-go/fasthttp"
"go.cfdata.org/~gbrimble/sentry-go/internal/testutils"
)

func TestIntegration(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion gin/sentrygin.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"strings"
"time"

"github.com/getsentry/sentry-go"
"github.com/gin-gonic/gin"
"go.cfdata.org/~gbrimble/sentry-go"
)

// The identifier of the Gin SDK.
Expand Down
6 changes: 3 additions & 3 deletions gin/sentrygin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (
"testing"
"time"

"github.com/getsentry/sentry-go"
sentrygin "github.com/getsentry/sentry-go/gin"
"github.com/getsentry/sentry-go/internal/testutils"
"github.com/gin-gonic/gin"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"go.cfdata.org/~gbrimble/sentry-go"
sentrygin "go.cfdata.org/~gbrimble/sentry-go/gin"
"go.cfdata.org/~gbrimble/sentry-go/internal/testutils"
)

func TestIntegration(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/getsentry/sentry-go
module go.cfdata.org/~gbrimble/sentry-go

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion helpers_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package sentry

import (
"github.com/getsentry/sentry-go/internal/testutils"
"go.cfdata.org/~gbrimble/sentry-go/internal/testutils"
)

var assertEqual = testutils.AssertEqual
Expand Down
6 changes: 3 additions & 3 deletions http/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"net/http"
"time"

"github.com/getsentry/sentry-go"
sentryhttp "github.com/getsentry/sentry-go/http"
"go.cfdata.org/~gbrimble/sentry-go"
sentryhttp "go.cfdata.org/~gbrimble/sentry-go/http"
)

// For a longer and executable example, see
// https://github.com/getsentry/sentry-go/tree/master/_examples/http.
// https://go.cfdata.org/~gbrimble/sentry-go/tree/master/_examples/http.
func Example() {
// Initialize the Sentry SDK once in the main function.
// sentry.Init(...)
Expand Down
2 changes: 1 addition & 1 deletion http/sentryhttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http"
"time"

"github.com/getsentry/sentry-go"
"go.cfdata.org/~gbrimble/sentry-go"
)

// The identifier of the Gin SDK.
Expand Down
6 changes: 3 additions & 3 deletions http/sentryhttp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"testing"
"time"

"github.com/getsentry/sentry-go"
sentryhttp "github.com/getsentry/sentry-go/http"
"github.com/getsentry/sentry-go/internal/testutils"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"go.cfdata.org/~gbrimble/sentry-go"
sentryhttp "go.cfdata.org/~gbrimble/sentry-go/http"
"go.cfdata.org/~gbrimble/sentry-go/internal/testutils"
)

func TestIntegration(t *testing.T) {
Expand Down
16 changes: 8 additions & 8 deletions integrations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func TestContextifyFrames(t *testing.T) {

frames := cfi.contextify([]Frame{{
Function: "Trace",
Module: "github.com/getsentry/sentry-go",
Module: "go.cfdata.org/~gbrimble/sentry-go",
Filename: filename,
AbsPath: abspath,
Lineno: 12,
Expand Down Expand Up @@ -271,7 +271,7 @@ func TestExtractModules(t *testing.T) {
},
Deps: []*debug.Module{
{
Path: "github.com/getsentry/sentry-go",
Path: "go.cfdata.org/~gbrimble/sentry-go",
Version: "v0.5.1",
},
{
Expand All @@ -281,9 +281,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)",
"go.cfdata.org/~gbrimble/sentry-go": "v0.5.1",
"github.com/gin-gonic/gin": "v1.4.0",
},
},
{
Expand All @@ -295,7 +295,7 @@ func TestExtractModules(t *testing.T) {
},
Deps: []*debug.Module{
{
Path: "github.com/getsentry/sentry-go",
Path: "go.cfdata.org/~gbrimble/sentry-go",
Version: "v0.5.1",
Replace: &debug.Module{
Path: "pkg/sentry",
Expand All @@ -304,8 +304,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)",
"go.cfdata.org/~gbrimble/sentry-go": "v0.5.1 => pkg/sentry",
},
},
{
Expand Down
Loading

0 comments on commit 3fc8efe

Please sign in to comment.