-
-
Couldn't load subscription status.
- Fork 1.7k
[Session Replay] Next JS. How to disable console.logs in the Session Replay tab? #7137
-
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
Beta Was this translation helpful? Give feedback.
All reactions
Answered by
AbhiPrasad
Feb 10, 2023
Hey, this seems to be addressed with #7138, so closing and locking this discussion!
Replies: 1 comment
-
Hey, this seems to be addressed with #7138, so closing and locking this discussion!
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Answer selected by
smeubank
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment