Skip to content

Commit 51d0482

Browse files
authored
docs: Replace Go config with formattable placeholder (#1507)
1 parent 8d2b9d7 commit 51d0482

File tree

9 files changed

+16
-16
lines changed

9 files changed

+16
-16
lines changed

src/collections/_documentation/platforms/go/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ import (
8080
)
8181

8282
sentryClientOptions := sentry.ClientOptions{
83-
Dsn: "https://[email protected]/1",
83+
Dsn: "___PUBLIC_DSN___",
8484
}
8585

8686
rootCAs, err := gocertifi.CACerts()

src/collections/_documentation/platforms/go/echo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727

2828
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
2929
if err := sentry.Init(sentry.ClientOptions{
30-
Dsn: "your-public-dsn",
30+
Dsn: "___PUBLIC_DSN___",
3131
}); err != nil {
3232
fmt.Printf("Sentry initialization failed: %v\n", err)
3333
}
@@ -118,7 +118,7 @@ app.Logger.Fatal(app.Start(":3000"))
118118

119119
```go
120120
sentry.Init(sentry.ClientOptions{
121-
Dsn: "your-public-dsn",
121+
Dsn: "___PUBLIC_DSN___",
122122
BeforeSend: func(event *sentry.Event, hint *sentry.EventHint) *sentry.Event {
123123
if hint.Context != nil {
124124
if req, ok := hint.Context.Value(sentry.RequestContextKey).(*http.Request); ok {

src/collections/_documentation/platforms/go/fasthttp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525

2626
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
2727
if err := sentry.Init(sentry.ClientOptions{
28-
Dsn: "your-public-dsn",
28+
Dsn: "___PUBLIC_DSN___",
2929
}); err != nil {
3030
fmt.Printf("Sentry initialization failed: %v\n", err)
3131
}
@@ -122,7 +122,7 @@ if err := fasthttp.ListenAndServe(":3000", sentryHandler.Handle(fastHTTPHandler)
122122

123123
```go
124124
sentry.Init(sentry.ClientOptions{
125-
Dsn: "your-public-dsn",
125+
Dsn: "___PUBLIC_DSN___",
126126
BeforeSend: func(event *sentry.Event, hint *sentry.EventHint) *sentry.Event {
127127
if hint.Context != nil {
128128
if ctx, ok := hint.Context.Value(sentry.RequestContextKey).(*fasthttp.RequestCtx); ok {

src/collections/_documentation/platforms/go/gin.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626

2727
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
2828
if err := sentry.Init(sentry.ClientOptions{
29-
Dsn: "your-public-dsn",
29+
Dsn: "___PUBLIC_DSN___",
3030
}); err != nil {
3131
fmt.Printf("Sentry initialization failed: %v\n", err)
3232
}
@@ -109,7 +109,7 @@ app.Run(":3000")
109109

110110
```go
111111
sentry.Init(sentry.ClientOptions{
112-
Dsn: "your-public-dsn",
112+
Dsn: "___PUBLIC_DSN___",
113113
BeforeSend: func(event *sentry.Event, hint *sentry.EventHint) *sentry.Event {
114114
if hint.Context != nil {
115115
if req, ok := hint.Context.Value(sentry.RequestContextKey).(*http.Request); ok {

src/collections/_documentation/platforms/go/http.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525

2626
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
2727
if err := sentry.Init(sentry.ClientOptions{
28-
Dsn: "your-public-dsn",
28+
Dsn: "___PUBLIC_DSN___",
2929
}); err != nil {
3030
fmt.Printf("Sentry initialization failed: %v\n", err)
3131
}
@@ -118,7 +118,7 @@ if err := http.ListenAndServe(":3000", nil); err != nil {
118118

119119
```go
120120
sentry.Init(sentry.ClientOptions{
121-
Dsn: "your-public-dsn",
121+
Dsn: "___PUBLIC_DSN___",
122122
BeforeSend: func(event *sentry.Event, hint *sentry.EventHint) *sentry.Event {
123123
if hint.Context != nil {
124124
if req, ok := hint.Context.Value(sentry.RequestContextKey).(*http.Request); ok {

src/collections/_documentation/platforms/go/iris.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525

2626
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
2727
if err := sentry.Init(sentry.ClientOptions{
28-
Dsn: "your-public-dsn",
28+
Dsn: "___PUBLIC_DSN___",
2929
}); err != nil {
3030
fmt.Printf("Sentry initialization failed: %v\n", err)
3131
}
@@ -107,7 +107,7 @@ app.Run(iris.Addr(":3000"))
107107

108108
```go
109109
sentry.Init(sentry.ClientOptions{
110-
Dsn: "your-public-dsn",
110+
Dsn: "___PUBLIC_DSN___",
111111
BeforeSend: func(event *sentry.Event, hint *sentry.EventHint) *sentry.Event {
112112
if hint.Context != nil {
113113
if req, ok := hint.Context.Value(sentry.RequestContextKey).(*http.Request); ok {

src/collections/_documentation/platforms/go/martini.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525

2626
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
2727
if err := sentry.Init(sentry.ClientOptions{
28-
Dsn: "your-public-dsn",
28+
Dsn: "___PUBLIC_DSN___",
2929
}); err != nil {
3030
fmt.Printf("Sentry initialization failed: %v\n", err)
3131
}
@@ -105,7 +105,7 @@ app.Run()
105105

106106
```go
107107
sentry.Init(sentry.ClientOptions{
108-
Dsn: "your-public-dsn",
108+
Dsn: "___PUBLIC_DSN___",
109109
BeforeSend: func(event *sentry.Event, hint *sentry.EventHint) *sentry.Event {
110110
if hint.Context != nil {
111111
if req, ok := hint.Context.Value(sentry.RequestContextKey).(*http.Request); ok {

src/collections/_documentation/platforms/go/negroni.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626

2727
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
2828
if err := sentry.Init(sentry.ClientOptions{
29-
Dsn: "your-public-dsn",
29+
Dsn: "___PUBLIC_DSN___",
3030
}); err != nil {
3131
fmt.Printf("Sentry initialization failed: %v\n", err)
3232
}
@@ -115,7 +115,7 @@ http.ListenAndServe(":3000", app)
115115

116116
```go
117117
sentry.Init(sentry.ClientOptions{
118-
Dsn: "your-public-dsn",
118+
Dsn: "___PUBLIC_DSN___",
119119
BeforeSend: func(event *sentry.Event, hint *sentry.EventHint) *sentry.Event {
120120
if hint.Context != nil {
121121
if req, ok := hint.Context.Value(sentry.RequestContextKey).(*http.Request); ok {

src/collections/_documentation/platforms/go/panics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func main() {
5454
sentrySyncTransport.Timeout = time.Second * 3
5555

5656
sentry.Init(sentry.ClientOptions{
57-
Dsn: "https://[email protected]/297378",
57+
Dsn: "___PUBLIC_DSN___",
5858
Transport: sentrySyncTransport,
5959
BeforeSend: func(event *sentry.Event, hint *sentry.EventHint) *sentry.Event {
6060
if hint.Context != nil {

0 commit comments

Comments
 (0)