Skip to content

Commit 0410f58

Browse files
committed
simplify example
1 parent 3175c20 commit 0410f58

File tree

1 file changed

+1
-1
lines changed
  • src/platform-includes/configuration/before-send-transaction

1 file changed

+1
-1
lines changed

src/platform-includes/configuration/before-send-transaction/go.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sentry.Init(sentry.ClientOptions{
55
Dsn: "___PUBLIC_DSN___",
66
// Called for transaction events
77
BeforeSendTransaction: func(event *sentry.Event, hint *sentry.EventHint) *sentry.Event {
8-
if strings.Contains(event.Message, "test-transaction") {
8+
if event.Message == "test-transaction" {
99
// Don't send the transaction to Sentry
1010
return nil
1111
}

0 commit comments

Comments
 (0)