-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Package: replayIssues related to the Sentry Replay SDKIssues related to the Sentry Replay SDKType: Improvement
Description
Problem Statement
Hello. 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. Is there a configuration to either fully disable the console.logs in session replay, or allow only certain levels to be sent to Sentry.
Solution Brainstorm
I think the Sentry.Replay integration could use the CaptureConsoleIntegration object from the integrations array, or another config field could be added inside Sentry.Replay{}.
Console:Disable
Metadata
Metadata
Assignees
Labels
Package: replayIssues related to the Sentry Replay SDKIssues related to the Sentry Replay SDKType: Improvement