diff --git a/docs/platforms/go/guides/echo/index.mdx b/docs/platforms/go/guides/echo/index.mdx
index 7740fefdea4ac6..a210da1475ab5b 100644
--- a/docs/platforms/go/guides/echo/index.mdx
+++ b/docs/platforms/go/guides/echo/index.mdx
@@ -29,7 +29,7 @@ go get github.com/getsentry/sentry-go/echo
-```go {"onboardingOptions": {"performance": "14-17"}}
+```go
import (
"fmt"
"net/http"
@@ -43,13 +43,15 @@ import (
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
if err := sentry.Init(sentry.ClientOptions{
Dsn: "___PUBLIC_DSN___",
+ // ___PRODUCT_OPTION_START___ performance
// Set TracesSampleRate to 1.0 to capture 100%
// of transactions for tracing.
// We recommend adjusting this value in production,
TracesSampleRate: 1.0,
- // Adds request headers and IP for users,
- // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
- SendDefaultPII: true,
+ // ___PRODUCT_OPTION_END___ performance
+ // Adds request headers and IP for users,
+ // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
+ SendDefaultPII: true,
}); err != nil {
fmt.Printf("Sentry initialization failed: %v\n", err)
}
diff --git a/docs/platforms/go/guides/fasthttp/index.mdx b/docs/platforms/go/guides/fasthttp/index.mdx
index 5a340ab08b0c33..1e6f9231ab2c4f 100644
--- a/docs/platforms/go/guides/fasthttp/index.mdx
+++ b/docs/platforms/go/guides/fasthttp/index.mdx
@@ -29,7 +29,7 @@ go get github.com/getsentry/sentry-go/fasthttp
-```go {"onboardingOptions": {"performance": "12-16"}}
+```go
import (
"fmt"
"net/http"
@@ -41,14 +41,16 @@ import (
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
if err := sentry.Init(sentry.ClientOptions{
Dsn: "___PUBLIC_DSN___",
+ // ___PRODUCT_OPTION_START___ performance
EnableTracing: true,
// Set TracesSampleRate to 1.0 to capture 100%
// of transactions for tracing.
// We recommend adjusting this value in production,
TracesSampleRate: 1.0,
- // Adds request headers and IP for users,
- // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
- SendDefaultPII: true,
+ // ___PRODUCT_OPTION_END___ performance
+ // Adds request headers and IP for users,
+ // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
+ SendDefaultPII: true,
}); err != nil {
fmt.Printf("Sentry initialization failed: %v\n", err)
}
diff --git a/docs/platforms/go/guides/fiber/index.mdx b/docs/platforms/go/guides/fiber/index.mdx
index 247d9e43ec9c3c..afea6ab5bca7b3 100644
--- a/docs/platforms/go/guides/fiber/index.mdx
+++ b/docs/platforms/go/guides/fiber/index.mdx
@@ -12,6 +12,13 @@ documentation](https://godoc.org/github.com/getsentry/sentry-go/fiber).
## Install
+
+
```shell
go get github.com/getsentry/sentry-go/fiber
```
@@ -30,14 +37,16 @@ import (
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
if err := sentry.Init(sentry.ClientOptions{
Dsn: "___PUBLIC_DSN___",
+ // ___PRODUCT_OPTION_START___ performance
EnableTracing: true,
// Set TracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production,
TracesSampleRate: 1.0,
- // Adds request headers and IP for users,
- // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
- SendDefaultPII: true,
+ // ___PRODUCT_OPTION_END___ performance
+ // Adds request headers and IP for users,
+ // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
+ SendDefaultPII: true,
}); err != nil {
fmt.Printf("Sentry initialization failed: %v\n", err)
}
diff --git a/docs/platforms/go/guides/gin/index.mdx b/docs/platforms/go/guides/gin/index.mdx
index 2528835c4a546b..2031baf9b78b5d 100644
--- a/docs/platforms/go/guides/gin/index.mdx
+++ b/docs/platforms/go/guides/gin/index.mdx
@@ -29,7 +29,7 @@ go get github.com/getsentry/sentry-go/gin
-```go {"onboardingOptions": {"performance": "13-17"}}
+```go
import (
"fmt"
"net/http"
@@ -42,14 +42,16 @@ import (
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
if err := sentry.Init(sentry.ClientOptions{
Dsn: "___PUBLIC_DSN___",
+ // ___PRODUCT_OPTION_START___ performance
EnableTracing: true,
// Set TracesSampleRate to 1.0 to capture 100%
// of transactions for tracing.
// We recommend adjusting this value in production,
TracesSampleRate: 1.0,
- // Adds request headers and IP for users,
- // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
- SendDefaultPII: true,
+ // ___PRODUCT_OPTION_END___ performance
+ // Adds request headers and IP for users,
+ // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
+ SendDefaultPII: true,
}); err != nil {
fmt.Printf("Sentry initialization failed: %v\n", err)
}
diff --git a/docs/platforms/go/guides/http/index.mdx b/docs/platforms/go/guides/http/index.mdx
index 42d8ff3a2d4c4e..2a76d03f495c5e 100644
--- a/docs/platforms/go/guides/http/index.mdx
+++ b/docs/platforms/go/guides/http/index.mdx
@@ -29,7 +29,7 @@ go get github.com/getsentry/sentry-go/http
-```go {"onboardingOptions": {"performance": "12-16"}}
+```go
import (
"fmt"
"net/http"
@@ -41,14 +41,16 @@ import (
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
if err := sentry.Init(sentry.ClientOptions{
Dsn: "___PUBLIC_DSN___",
+ // ___PRODUCT_OPTION_START___ performance
EnableTracing: true,
// Set TracesSampleRate to 1.0 to capture 100%
// of transactions for tracing.
// We recommend adjusting this value in production,
TracesSampleRate: 1.0,
- // Adds request headers and IP for users,
- // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
- SendDefaultPII: true,
+ // ___PRODUCT_OPTION_END___ performance
+ // Adds request headers and IP for users,
+ // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
+ SendDefaultPII: true,
}); err != nil {
fmt.Printf("Sentry initialization failed: %v\n", err)
}
diff --git a/docs/platforms/go/guides/iris/index.mdx b/docs/platforms/go/guides/iris/index.mdx
index 03326cfa6ea865..4559e3a746cc8d 100644
--- a/docs/platforms/go/guides/iris/index.mdx
+++ b/docs/platforms/go/guides/iris/index.mdx
@@ -29,7 +29,7 @@ go get github.com/getsentry/sentry-go/iris
-```go {"onboardingOptions": {"performance": "12-16"}}
+```go
import (
"fmt"
@@ -41,14 +41,16 @@ import (
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
if err := sentry.Init(sentry.ClientOptions{
Dsn: "___PUBLIC_DSN___",
+ // ___PRODUCT_OPTION_START___ performance
EnableTracing: true,
// Set TracesSampleRate to 1.0 to capture 100%
// of transactions for tracing.
// We recommend adjusting this value in production,
TracesSampleRate: 1.0,
- // Adds request headers and IP for users,
- // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
- SendDefaultPII: true,
+ // ___PRODUCT_OPTION_END___ performance
+ // Adds request headers and IP for users,
+ // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
+ SendDefaultPII: true,
}); err != nil {
fmt.Printf("Sentry initialization failed: %v\n", err)
}
diff --git a/docs/platforms/go/guides/logrus/index.mdx b/docs/platforms/go/guides/logrus/index.mdx
index b80f504ead0fec..1a05e4879ee1f5 100644
--- a/docs/platforms/go/guides/logrus/index.mdx
+++ b/docs/platforms/go/guides/logrus/index.mdx
@@ -9,12 +9,6 @@ Go API documentation for the [`sentrylogrus` package](https://pkg.go.dev/github.
## Install
-
-
```bash
go get github.com/getsentry/sentry-go/logrus
```
@@ -23,7 +17,7 @@ go get github.com/getsentry/sentry-go/logrus
-```go {"onboardingOptions": {"performance": "14-17"}}
+```go
import (
"fmt"
"net/http"
@@ -89,4 +83,3 @@ import (
## Usage
Use `logrus` as you normally would, and it will automatically send logs at or above the specified levels to Sentry.
-
diff --git a/docs/platforms/go/guides/negroni/index.mdx b/docs/platforms/go/guides/negroni/index.mdx
index e0e45eddd63e07..6b3f3076def159 100644
--- a/docs/platforms/go/guides/negroni/index.mdx
+++ b/docs/platforms/go/guides/negroni/index.mdx
@@ -29,7 +29,7 @@ go get github.com/getsentry/sentry-go/negroni
-```go {"onboardingOptions": {"performance": "13-17"}}
+```go
import (
"fmt"
"net/http"
@@ -42,14 +42,16 @@ import (
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
if err := sentry.Init(sentry.ClientOptions{
Dsn: "___PUBLIC_DSN___",
+ // ___PRODUCT_OPTION_START___ performance
EnableTracing: true,
// Set TracesSampleRate to 1.0 to capture 100%
// of transactions for tracing.
// We recommend adjusting this value in production,
TracesSampleRate: 1.0,
+ // ___PRODUCT_OPTION_END___ performance
// Adds request headers and IP for users,
- // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
- SendDefaultPII: true,
+ // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
+ SendDefaultPII: true,
}); err != nil {
fmt.Printf("Sentry initialization failed: %v\n", err)
}
diff --git a/docs/platforms/go/guides/slog/index.mdx b/docs/platforms/go/guides/slog/index.mdx
index fdb47e5bd70783..ba1bf1aef5158d 100644
--- a/docs/platforms/go/guides/slog/index.mdx
+++ b/docs/platforms/go/guides/slog/index.mdx
@@ -9,12 +9,6 @@ Go API documentation for the [`sentryslog` package](https://pkg.go.dev/github.co
## Install
-
-
```bash
go get github.com/getsentry/sentry-go/slog
```
@@ -43,8 +37,8 @@ func main() {
Dsn: "___PUBLIC_DSN___",
EnableTracing: false,
// Adds request headers and IP for users,
- // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
- SendDefaultPII: true,
+ // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
+ SendDefaultPII: true,
})
if err != nil {
log.Fatal(err)
diff --git a/docs/platforms/go/guides/zerolog/index.mdx b/docs/platforms/go/guides/zerolog/index.mdx
index c05cc58d927c97..32696e70eba014 100644
--- a/docs/platforms/go/guides/zerolog/index.mdx
+++ b/docs/platforms/go/guides/zerolog/index.mdx
@@ -9,12 +9,6 @@ For a complete example, visit the [Go SDK source code repository](https://github
## Install
-
-
```bash
go get github.com/getsentry/sentry-go/zerolog
```
@@ -26,7 +20,7 @@ go get github.com/getsentry/sentry-go/zerolog
To integrate Sentry with Zerolog, you need to set up a custom writer that sends logs to Sentry based on the configured levels.
-```go {"onboardingOptions": {"performance": "12-16"}}
+```go
import (
"errors"
"time"
@@ -43,8 +37,8 @@ func main() {
err := sentry.Init(sentry.ClientOptions{
Dsn: "___PUBLIC_DSN___",
// Adds request headers and IP for users,
- // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
- SendDefaultPII: true,
+ // visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
+ SendDefaultPII: true,
BeforeSend: func(event *sentry.Event, hint *sentry.EventHint) *sentry.Event {
// Modify or filter events before sending them to Sentry
return event