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 }