Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCT-1524 Solve the problem of Sentry causing Piniata to return CORS to the app #125

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions client/src/sentry.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
// eslint-disable-next-line no-restricted-syntax
import * as Sentry from '@sentry/react';

import env from 'env';
// import env from 'env';

Sentry.init({
dsn: 'https://207392fdfee5b8348be75b27b53c0e82@o4506778713194496.ingest.sentry.io/4506778715881472',
integrations: [Sentry.browserTracingIntegration()],
// TODO OCT-1525 enable browserTracingIntegration or remove this TODO.
// integrations: [Sentry.browserTracingIntegration()],
// Capture 100% of the transactions
// Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled
tracePropagationTargets: [
env.serverEndpoint,
...env.ipfsGateways.split(','),
],
// tracePropagationTargets: [
// env.serverEndpoint,
// ...env.ipfsGateways.split(','),
// ],
// Performance Monitoring
tracesSampleRate: 1.0,
// tracesSampleRate: 1.0,
// Session Replay
});
Loading