Skip to content

Commit

Permalink
Merge pull request #149 from swim-io/ui/tunnel-sentry-via-cf-worker
Browse files Browse the repository at this point in the history
fix(ui): Circumvent ad blockers for Sentry
  • Loading branch information
wormat authored Jul 19, 2022
2 parents ce8a1ce + 0718b1c commit 025bf65
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/ui/src/errors/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ export const setupSentry = (): void => {
// We disable the default BrowserTracing because we set custom Swap/Add/Remove transaction types
// new Integrations.BrowserTracing(),
],

environment: process.env.REACT_APP_ENV,

// Circumvent ad-blockers
// Tunnel Sentry requests via Cloudflare Worker
tunnel: "https://tunnel.swim.io/",

// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
Expand Down

0 comments on commit 025bf65

Please sign in to comment.