Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Session Replay] Next JS. How to disable console.logs in the Session Replay tab? #7137

Locked Answered by AbhiPrasad
stefanpruna asked this question in Q&A
Discussion options

Problem: I have set up my breadcrumbs in a way that console.logs that are level info or debug would not create automatic breadcrumbs.
My current sentry integration configuration is the following:

`beforeBreadcrumb(breadcrumb) {
 if (
 (breadcrumb.level === "info" || breadcrumb.level === "debug") &&
 breadcrumb.category === "console"
 ) {
 return null;
 }
 return breadcrumb;
 },
integrations: [
 new CaptureConsoleIntegration({
 // array of methods that should be captured
 levels: ["warn", "error", "assert"],
 }),
 new Sentry.Replay({
 // masking all text fields by default.
 maskAllText: true,
 blockAllMedia: true,
 }),
 ],`

Session replay records all logs in the console tab of Session Replay. What configuration do I need in order to either fully disable the console.logs in session replay, or allow only certain levels to be sent to Sentry

You must be logged in to vote

Hey, this seems to be addressed with #7138, so closing and locking this discussion!

Replies: 1 comment

Comment options

Hey, this seems to be addressed with #7138, so closing and locking this discussion!

You must be logged in to vote
0 replies
Answer selected by smeubank
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /