From 0410f588021cd237078ef2e39c7e4ce6ecd9b1df Mon Sep 17 00:00:00 2001 From: Anton Ovchinnikov Date: Wed, 11 Jan 2023 16:47:40 +0100 Subject: [PATCH] simplify example --- .../configuration/before-send-transaction/go.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform-includes/configuration/before-send-transaction/go.mdx b/src/platform-includes/configuration/before-send-transaction/go.mdx index c56ef075a984e..a2c5d8db830dd 100644 --- a/src/platform-includes/configuration/before-send-transaction/go.mdx +++ b/src/platform-includes/configuration/before-send-transaction/go.mdx @@ -5,7 +5,7 @@ sentry.Init(sentry.ClientOptions{ Dsn: "___PUBLIC_DSN___", // Called for transaction events BeforeSendTransaction: func(event *sentry.Event, hint *sentry.EventHint) *sentry.Event { - if strings.Contains(event.Message, "test-transaction") { + if event.Message == "test-transaction" { // Don't send the transaction to Sentry return nil }