-
Notifications
You must be signed in to change notification settings - Fork 367
/
sentry.client.config.js
67 lines (51 loc) · 1.61 KB
/
sentry.client.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// This file configures the initialization of Sentry on the browser.
// The config you add here will be used whenever a page is visited.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
import * as Sentry from '@sentry/nextjs'
import { beforeSend } from './config/sentry-filter'
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 0,
beforeSend: beforeSend,
denyUrls: [
// reCAPTCHA flakiness
/gstatic\.com\/recaptcha\/releases/i,
// Bing UET tracking flakiness
/bat\.bing\.com\/bat\.js/i,
// Local user files
/file:\/\//i,
// Trustpilot scripts
/widget\.trustpilot\.com/i,
// Hubspot scripts
/js\.hs-banner\.com/i,
/js\.hs-analytics\.net/i,
/js\.hs-scripts\.com/i,
/js\.hsadspixel\.net/i,
// Sentry scripts
/browser\.sentry-cdn\.com/i,
// Chrome extensions
/extensions\//i,
/^chrome:\/\//i,
// Safari extensions
/safari-extension:\/\//i,
// Facebook scripts
/graph\.facebook\.com/i,
/connect\.facebook\.net\/en_US\/all\.js/i,
// Microsoft Clarity
/clarity\.ms/i,
// Twitter ads
/ads-twitter\.com/i,
// Google scripts
/googletagmanager\.com/i,
/google-analytics\.com/i,
// LinkedIn scripts
/snap\.licdn\.com/i,
// Quora scripts
/a\.quora\.com/i
]
// ...
// Note: if you want to override the automatic release value, do not set a
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
// that it will also get attached to your source maps
})