diff --git a/src/platform-includes/configuration/before-send-transaction/go.mdx b/src/platform-includes/configuration/before-send-transaction/go.mdx index ae21e0dd3061d..4819881a02f69 100644 --- a/src/platform-includes/configuration/before-send-transaction/go.mdx +++ b/src/platform-includes/configuration/before-send-transaction/go.mdx @@ -12,4 +12,5 @@ sentry.Init(sentry.ClientOptions{ event.Message += " [example]" return event }, +}) ``` diff --git a/src/platform-includes/configuration/ignore-errors/go.mdx b/src/platform-includes/configuration/ignore-errors/go.mdx new file mode 100644 index 0000000000000..a4cdf095aa672 --- /dev/null +++ b/src/platform-includes/configuration/ignore-errors/go.mdx @@ -0,0 +1,6 @@ +```go +sentry.Init(sentry.ClientOptions{ + // ... + IgnoreErrors: []string{"my-error", "error-*"}, +}) +``` diff --git a/src/platform-includes/configuration/ignore-transactions/go.mdx b/src/platform-includes/configuration/ignore-transactions/go.mdx new file mode 100644 index 0000000000000..8941b39a48c97 --- /dev/null +++ b/src/platform-includes/configuration/ignore-transactions/go.mdx @@ -0,0 +1,6 @@ +```go +sentry.Init(sentry.ClientOptions{ + // ... + IgnoreTransactions: []string{"/home", "/check-*"}, +}) +``` diff --git a/src/platform-includes/performance/traces-sampler-as-filter/go.mdx b/src/platform-includes/performance/traces-sampler-as-filter/go.mdx index fd9cfb80b3212..78fb2e7f00392 100644 --- a/src/platform-includes/performance/traces-sampler-as-filter/go.mdx +++ b/src/platform-includes/performance/traces-sampler-as-filter/go.mdx @@ -1,5 +1,5 @@ ```go -err := sentry.Init(sentry.ClientOptions{ +sentry.Init(sentry.ClientOptions{ // ... TracesSampler: sentry.TracesSampler(func(ctx sentry.SamplingContext) float64 { if condition { diff --git a/src/platforms/common/configuration/filtering.mdx b/src/platforms/common/configuration/filtering.mdx index 22cc95c081523..a7d261f7f4849 100644 --- a/src/platforms/common/configuration/filtering.mdx +++ b/src/platforms/common/configuration/filtering.mdx @@ -75,7 +75,7 @@ In this example, the fingerprint is forced to a common value if an exception of - + ### Using @@ -120,7 +120,7 @@ Learn more about configuring the sam - + ### Using diff --git a/src/platforms/go/common/configuration/options.mdx b/src/platforms/go/common/configuration/options.mdx index 27a709e4c0b16..187557ac3dfc6 100644 --- a/src/platforms/go/common/configuration/options.mdx +++ b/src/platforms/go/common/configuration/options.mdx @@ -34,10 +34,16 @@ type ClientOptions struct { TracesSampleRate float64 // Used to customize the sampling of traces, overrides TracesSampleRate. TracesSampler TracesSampler + // The sample rate for profiling traces in the range [0.0, 1.0]. + // This is relative to TracesSampleRate - it is a ratio of profiled traces out of all sampled traces. + ProfilesSampleRate float64 // List of regexp strings that will be used to match against event's message // and if applicable, caught errors type and value. // If the match is found, then a whole event will be dropped. IgnoreErrors []string + // List of regexp strings that will be used to match against a transaction's + // name. If a match is found, then the transaction will be dropped. + IgnoreTransactions []string // If this flag is enabled, certain personally identifiable information (PII) is added by active integrations. // By default, no such data is sent. SendDefaultPII bool