Skip to content

Commit 8ddcb2d

Browse files
Add tracesSampleRate to the main initialize RN SDK code snippet (#6640)
1 parent 9c26fa3 commit 8ddcb2d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/platform-includes/getting-started-config/react-native.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ import * as Sentry from "@sentry/react-native";
77

88
Sentry.init({
99
dsn: "___PUBLIC_DSN___",
10+
11+
// Set tracesSampleRate to 1.0 to capture 100%
12+
// of transactions for performance monitoring.
13+
// We recommend adjusting this value in production
14+
tracesSampleRate: 1.0,
1015
});
1116
```
1217

0 commit comments

Comments
 (0)