Skip to content

Commit

Permalink
simplify example
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyo committed Jan 11, 2023
1 parent 3175c20 commit 3ceec7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3ceec7f

Please sign in to comment.