Skip to content

Commit 4a6dd86

Browse files
committed
feat: update sentry config
1 parent c63d143 commit 4a6dd86

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

sentry.client.config.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ if (process.env.NODE_ENV === "production") {
77
tracesSampleRate: 0.2,
88
debug: false,
99
release: `${process.env.SENTRY_RELEASE || "production"}`,
10-
allowUrls: ["https://jsoncrack.com/editor"],
11-
replaysOnErrorSampleRate: 1.0,
12-
replaysSessionSampleRate: 0.1,
10+
allowUrls: [/^https:\/\/jsoncrack\.com/],
11+
replaysOnErrorSampleRate: 0,
12+
replaysSessionSampleRate: 0,
1313
integrations: [
14-
new Sentry.BrowserTracing(),
15-
new Sentry.Replay({
16-
maskAllText: true,
14+
Sentry.browserTracingIntegration(),
15+
Sentry.replayIntegration({
16+
maskAllText: false, // [.sentry-mask] added to the text editor
1717
blockAllMedia: true,
1818
}),
1919
],

src/features/editor/TextEditor.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ const TextEditor = () => {
7777
<StyledEditorWrapper>
7878
<StyledWrapper>
7979
<Editor
80+
className="sentry-mask"
81+
data-sentry-mask="true"
8082
height="100%"
8183
language={fileType}
8284
theme={theme}

0 commit comments

Comments
 (0)