File tree 7 files changed +33
-19
lines changed
7 files changed +33
-19
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ go get github.com/getsentry/sentry-go/echo
29
29
<Break />
30
30
31
31
32
- ``` go {"onboardingOptions": {"performance": "14-17"}}
32
+ ``` go
33
33
import (
34
34
" fmt"
35
35
" net/http"
@@ -43,13 +43,15 @@ import (
43
43
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
44
44
if err := sentry.Init (sentry.ClientOptions {
45
45
Dsn : " ___PUBLIC_DSN___" ,
46
+ // ___PRODUCT_OPTION_START___ performance
46
47
// Set TracesSampleRate to 1.0 to capture 100%
47
48
// of transactions for tracing.
48
49
// We recommend adjusting this value in production,
49
50
TracesSampleRate : 1.0 ,
50
- // Adds request headers and IP for users,
51
- // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
52
- SendDefaultPII : true ,
51
+ // ___PRODUCT_OPTION_END___ performance
52
+ // Adds request headers and IP for users,
53
+ // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
54
+ SendDefaultPII : true ,
53
55
}); err != nil {
54
56
fmt.Printf (" Sentry initialization failed: %v \n " , err)
55
57
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ go get github.com/getsentry/sentry-go/fasthttp
29
29
<Break />
30
30
31
31
32
- ``` go {"onboardingOptions": {"performance": "12-16"}}
32
+ ``` go
33
33
import (
34
34
" fmt"
35
35
" net/http"
@@ -41,14 +41,16 @@ import (
41
41
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
42
42
if err := sentry.Init (sentry.ClientOptions {
43
43
Dsn : " ___PUBLIC_DSN___" ,
44
+ // ___PRODUCT_OPTION_START___ performance
44
45
EnableTracing : true ,
45
46
// Set TracesSampleRate to 1.0 to capture 100%
46
47
// of transactions for tracing.
47
48
// We recommend adjusting this value in production,
48
49
TracesSampleRate : 1.0 ,
49
- // Adds request headers and IP for users,
50
- // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
51
- SendDefaultPII : true ,
50
+ // ___PRODUCT_OPTION_END___ performance
51
+ // Adds request headers and IP for users,
52
+ // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
53
+ SendDefaultPII : true ,
52
54
}); err != nil {
53
55
fmt.Printf (" Sentry initialization failed: %v \n " , err)
54
56
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ go get github.com/getsentry/sentry-go/gin
29
29
<Break />
30
30
31
31
32
- ``` go {"onboardingOptions": {"performance": "13-17"}}
32
+ ``` go
33
33
import (
34
34
" fmt"
35
35
" net/http"
@@ -42,14 +42,16 @@ import (
42
42
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
43
43
if err := sentry.Init (sentry.ClientOptions {
44
44
Dsn : " ___PUBLIC_DSN___" ,
45
+ // ___PRODUCT_OPTION_START___ performance
45
46
EnableTracing : true ,
46
47
// Set TracesSampleRate to 1.0 to capture 100%
47
48
// of transactions for tracing.
48
49
// We recommend adjusting this value in production,
49
50
TracesSampleRate : 1.0 ,
50
- // Adds request headers and IP for users,
51
- // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
52
- SendDefaultPII : true ,
51
+ // ___PRODUCT_OPTION_END___ performance
52
+ // Adds request headers and IP for users,
53
+ // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
54
+ SendDefaultPII : true ,
53
55
}); err != nil {
54
56
fmt.Printf (" Sentry initialization failed: %v \n " , err)
55
57
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ go get github.com/getsentry/sentry-go/http
29
29
<Break />
30
30
31
31
32
- ``` go {"onboardingOptions": {"performance": "12-16"}}
32
+ ``` go
33
33
import (
34
34
" fmt"
35
35
" net/http"
@@ -41,14 +41,16 @@ import (
41
41
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
42
42
if err := sentry.Init (sentry.ClientOptions {
43
43
Dsn : " ___PUBLIC_DSN___" ,
44
+ // ___PRODUCT_OPTION_START___ performance
44
45
EnableTracing : true ,
45
46
// Set TracesSampleRate to 1.0 to capture 100%
46
47
// of transactions for tracing.
47
48
// We recommend adjusting this value in production,
48
49
TracesSampleRate : 1.0 ,
49
- // Adds request headers and IP for users,
50
- // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
51
- SendDefaultPII : true ,
50
+ // ___PRODUCT_OPTION_END___ performance
51
+ // Adds request headers and IP for users,
52
+ // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
53
+ SendDefaultPII : true ,
52
54
}); err != nil {
53
55
fmt.Printf (" Sentry initialization failed: %v \n " , err)
54
56
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ go get github.com/getsentry/sentry-go/iris
29
29
<Break />
30
30
31
31
32
- ``` go {"onboardingOptions": {"performance": "12-16"}}
32
+ ``` go
33
33
import (
34
34
" fmt"
35
35
@@ -41,11 +41,13 @@ import (
41
41
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
42
42
if err := sentry.Init (sentry.ClientOptions {
43
43
Dsn : " ___PUBLIC_DSN___" ,
44
+ // ___PRODUCT_OPTION_START___ performance
44
45
EnableTracing : true ,
45
46
// Set TracesSampleRate to 1.0 to capture 100%
46
47
// of transactions for tracing.
47
48
// We recommend adjusting this value in production,
48
49
TracesSampleRate : 1.0 ,
50
+ // ___PRODUCT_OPTION_END___ performance
49
51
// Adds request headers and IP for users,
50
52
// visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
51
53
SendDefaultPII : true ,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ go get github.com/getsentry/sentry-go/logrus
23
23
24
24
<SignInNote />
25
25
26
- ``` go {"onboardingOptions": {"performance": "14-17"}}
26
+ ``` go
27
27
import (
28
28
" fmt"
29
29
" net/http"
@@ -42,8 +42,10 @@ import (
42
42
logger.Level = logrus.DebugLevel
43
43
logger.Out = os.Stderr
44
44
45
+ // ___PRODUCT_OPTION_START___ performance
45
46
// Send only ERROR and higher level logs to Sentry
46
47
sentryLevels := []logrus.Level {logrus.ErrorLevel , logrus.FatalLevel , logrus.PanicLevel }
48
+ // ___PRODUCT_OPTION_END___ performance
47
49
48
50
// Initialize Sentry
49
51
sentryHook , err := sentrylogrus.New (sentryLevels, sentry.ClientOptions {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ go get github.com/getsentry/sentry-go/negroni
29
29
<Break />
30
30
31
31
32
- ``` go {"onboardingOptions": {"performance": "13-17"}}
32
+ ``` go
33
33
import (
34
34
" fmt"
35
35
" net/http"
@@ -42,11 +42,13 @@ import (
42
42
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
43
43
if err := sentry.Init (sentry.ClientOptions {
44
44
Dsn : " ___PUBLIC_DSN___" ,
45
+ // ___PRODUCT_OPTION_START___ performance
45
46
EnableTracing : true ,
46
47
// Set TracesSampleRate to 1.0 to capture 100%
47
48
// of transactions for tracing.
48
49
// We recommend adjusting this value in production,
49
50
TracesSampleRate : 1.0 ,
51
+ // ___PRODUCT_OPTION_END___ performance
50
52
// Adds request headers and IP for users,
51
53
// visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
52
54
SendDefaultPII : true ,
You can’t perform that action at this time.
0 commit comments