You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the following to your application's entry point (typically `index.js`, `main.js`, or `App.js`) or to the file before you use any other Sentry method:
31
+
To import and initialize Sentry, create a file in your project's root directory, for example, `instrument.js`, and add the following code:
logger.warn(logger.fmt`Rate limit exceeded for user: ${userId}`);
176
176
```
177
177
178
-
<Break />
179
-
180
-
## (Optional) Customizing Replays
178
+
## Customizing Replays (Optional)
181
179
182
180
[Replays](/product/explore/session-replay/web/getting-started/) allow you to see video-like reproductions of user sessions.
183
181
@@ -209,9 +207,7 @@ Sentry.init({
209
207
<span data-safe-to-show>Safe user data: {username}</span>
210
208
```
211
209
212
-
213
-
214
-
## (Optional) Custom Traces with Attributes
210
+
## Custom Traces with Attributes (Optional)
215
211
216
212
[Tracing](/platforms/javascript/guides/react/tracing/) allows you to monitor interactions between multiple services or applications. Create custom spans to measure specific operations and add meaningful attributes. This helps you understand performance bottlenecks and debug issues with detailed context.
217
213
@@ -263,9 +259,7 @@ if (span) {
263
259
}
264
260
```
265
261
266
-
267
-
268
-
## Step 7: Avoid Ad Blockers With Tunneling (Optional)
0 commit comments