diff --git a/client/src/graphql/apollo-error-handling.js b/client/src/graphql/apollo-error-handling.js index 1d3f4e857..aecd55321 100644 --- a/client/src/graphql/apollo-error-handling.js +++ b/client/src/graphql/apollo-error-handling.js @@ -1,6 +1,5 @@ import { onError } from "@apollo/client/link/error"; //https://stackoverflow.com/questions/57163454/refreshing-a-token-with-apollo-client-firebase-auth -import * as Sentry from "@sentry/react"; const errorLink = onError( ({ graphQLErrors, networkError, operation, forward }) => { @@ -9,7 +8,6 @@ const errorLink = onError( console.log( `[GraphQL error]: Message: ${message}, Location: ${locations}, Path: ${path}` ); - Sentry.captureException({ message, locations, path }); }); } if (networkError) diff --git a/client/src/index.js b/client/src/index.js index bc6f8e153..bca06d310 100644 --- a/client/src/index.js +++ b/client/src/index.js @@ -35,7 +35,12 @@ if (process.env.NODE_ENV !== "development") { maskAllText: false, blockAllMedia: true, }), - new Sentry.BrowserTracing(), + new Sentry.BrowserTracing({}), + ], + tracePropagationTargets: [ + "api.imex.online", + "api.test.imex.online", + "db.imex.online", ], tracesSampleRate: 1.0, replaysOnErrorSampleRate: 1.0,