Skip to content

Commit 36b858f

Browse files
authored
Go 0.16.0 (#5910)
1 parent f9af318 commit 36b858f

File tree

10 files changed

+16
-12
lines changed

10 files changed

+16
-12
lines changed

src/includes/sampling-supported-sdks.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
- Ruby: 5.5.0 or later
1111
- Java: 6.5.0 or later
1212
- .NET: 3.22.0 or later
13+
- Go: 0.16.0 or later

src/platform-includes/getting-started-config/go.mdx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,10 @@ import (
1010

1111
func main() {
1212
err := sentry.Init(sentry.ClientOptions{
13-
// Either set your DSN here or set the SENTRY_DSN environment variable.
1413
Dsn: "___PUBLIC_DSN___",
15-
// Either set environment and release here or set the SENTRY_ENVIRONMENT
16-
// and SENTRY_RELEASE environment variables.
17-
Environment: "",
18-
Release: "[email protected]",
1914
// Enable printing of SDK debug messages.
2015
// Useful when getting started or trying to figure something out.
2116
Debug: true,
22-
// Set TracesSampleRate to 1.0 to capture 100%
23-
// of transactions for performance monitoring.
24-
// We recommend adjusting this value in production,
25-
TracesSampleRate: 1.0,
2617
})
2718
if err != nil {
2819
log.Fatalf("sentry.Init: %s", err)

src/platform-includes/performance/configure-sample-rate/go.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ func main() {
55
err := sentry.Init(sentry.ClientOptions{
66
// ...
77

8+
EnableTracing: true,
89
// Specify a fixed sample rate:
910
// We recommend adjusting this value in production
1011
TracesSampleRate: 1.0,

src/platforms/go/common/configuration/options.mdx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,22 @@ initialized.
1414
```go
1515
// ClientOptions that configures a SDK Client
1616
type ClientOptions struct {
17-
// The DSN to use. If the DSN is not set, the client is effectively disabled.
17+
// The DSN to use. If the DSN is not set, the client is effectively
18+
// disabled.
1819
Dsn string
19-
// In debug mode, the debug information is printed to stdout to help you understand what sentry is doing.
20+
// In debug mode, the debug information is printed to stdout to help you
21+
// understand what sentry is doing.
2022
Debug bool
21-
// Configures whether SDK should generate and attach stacktraces to pure capture message calls.
23+
// Configures whether SDK should generate and attach stacktraces to pure
24+
// capture message calls.
2225
AttachStacktrace bool
2326
// The sample rate for event submission in the range [0.0, 1.0]. By default,
2427
// all events are sent. Thus, as a historical special case, the sample rate
2528
// 0.0 is treated as if it was 1.0. To drop all events, set the DSN to the
2629
// empty string.
2730
SampleRate float64
31+
// Enable performance tracing.
32+
EnableTracing bool
2833
// The sample rate for sampling traces in the range [0.0, 1.0].
2934
TracesSampleRate float64
3035
// Used to customize the sampling of traces, overrides TracesSampleRate.

src/platforms/go/guides/fasthttp/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import (
3636
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
3737
if err := sentry.Init(sentry.ClientOptions{
3838
Dsn: "___PUBLIC_DSN___",
39+
EnableTracing: true,
3940
// Set TracesSampleRate to 1.0 to capture 100%
4041
// of transactions for performance monitoring.
4142
// We recommend adjusting this value in production,

src/platforms/go/guides/gin/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import (
3636
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
3737
if err := sentry.Init(sentry.ClientOptions{
3838
Dsn: "___PUBLIC_DSN___",
39+
EnableTracing: true,
3940
// Set TracesSampleRate to 1.0 to capture 100%
4041
// of transactions for performance monitoring.
4142
// We recommend adjusting this value in production,

src/platforms/go/guides/http/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import (
3737
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
3838
if err := sentry.Init(sentry.ClientOptions{
3939
Dsn: "___PUBLIC_DSN___",
40+
EnableTracing: true,
4041
// Set TracesSampleRate to 1.0 to capture 100%
4142
// of transactions for performance monitoring.
4243
// We recommend adjusting this value in production,

src/platforms/go/guides/iris/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import (
3535
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
3636
if err := sentry.Init(sentry.ClientOptions{
3737
Dsn: "___PUBLIC_DSN___",
38+
EnableTracing: true,
3839
// Set TracesSampleRate to 1.0 to capture 100%
3940
// of transactions for performance monitoring.
4041
// We recommend adjusting this value in production,

src/platforms/go/guides/martini/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import (
3535
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
3636
if err := sentry.Init(sentry.ClientOptions{
3737
Dsn: "___PUBLIC_DSN___",
38+
EnableTracing: true,
3839
// Set TracesSampleRate to 1.0 to capture 100%
3940
// of transactions for performance monitoring.
4041
// We recommend adjusting this value in production,

src/platforms/go/guides/negroni/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import (
3636
// To initialize Sentry's handler, you need to initialize Sentry itself beforehand
3737
if err := sentry.Init(sentry.ClientOptions{
3838
Dsn: "___PUBLIC_DSN___",
39+
EnableTracing: true,
3940
// Set TracesSampleRate to 1.0 to capture 100%
4041
// of transactions for performance monitoring.
4142
// We recommend adjusting this value in production,

0 commit comments

Comments
 (0)