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
Adding platform includes for capturing errors, consistent with manual setup. Adding links and descriptive text to features. Adding hidden LLM steering content for .md generation (restricting certain behaviors).
Now let's add structured logging to capture application insights. Logs are enabled in your configuration above.
185
+
[Structured logging](/platforms/javascript/guides/nextjs/logs/) lets users send text-based log information from their applications to Sentry. Once in Sentry, these logs can be viewed alongside relevant errors, searched by text-string, or searched using their individual attributes.
206
186
207
187
Use Sentry's logger to capture structured logs with meaningful attributes that help you debug issues and understand user behavior.
208
188
@@ -232,7 +212,9 @@ logger.warn(logger.fmt`Rate limit exceeded for user: ${123}`);
232
212
233
213
## Step 5: Customizing Replays
234
214
235
-
By default, Session Replay masks sensitive data for privacy. Customize this to show specific content that's safe to display by adjusting the client-side integration.
215
+
[Replays](/product/explore/session-replay/web/getting-started/) allow you to see video-like reproductions of user sessions.
216
+
217
+
By default, Session Replay masks sensitive data for privacy and to protect PII data. You can modify the replay configurations in your client-side Sentry initialization to show (unmask) specific content that's safe to display.
// This will show all text content in replays. Use with caution.
245
229
maskAllText:false,
230
+
// This will show all media content in replays. Use with caution.
246
231
blockAllMedia:false,
247
232
}),
248
233
],
234
+
// Only capture replays for 10% of sessions
249
235
replaysSessionSampleRate:0.1,
236
+
// Capture replays for 100% of sessions with an error
250
237
replaysOnErrorSampleRate:1.0,
251
238
});
252
239
```
@@ -260,7 +247,7 @@ Sentry.init({
260
247
261
248
## Step 6: Custom Traces with Attributes
262
249
263
-
Create custom spans to measure specific operations and add meaningful attributes. This helps you understand performance bottlenecks and debug issues with detailed context.
250
+
[Tracing](/platforms/javascript/guides/nextjs/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.
0 commit comments