From da1ddb874f64cb21da109dc01be458bd2eaaa5d1 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Tue, 30 Jan 2024 16:58:11 -0800 Subject: [PATCH 1/3] Change tracing targets. --- client/src/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/src/index.js b/client/src/index.js index 155356b24..c94644d3b 100644 --- a/client/src/index.js +++ b/client/src/index.js @@ -34,7 +34,12 @@ Sentry.init({ 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, From c155d340b50d8b6efdd5ab481af334194a89ceb1 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 31 Jan 2024 10:44:22 -0800 Subject: [PATCH 2/3] CI update. --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 596d65894..555825f34 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,6 +3,7 @@ orbs: #snyk: snyk/snyk@0.0.8 #cypress: cypress-io/cypress@1.23.0 aws-s3: circleci/aws-s3@4.0.0 + aws-cli: circleci/aws-cli@4.0 eb: circleci/aws-elastic-beanstalk@2.0.1 jobs: api-deploy: From 0455e03bfd808652e118d7984e1d1de01c9c7b3f Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 31 Jan 2024 10:44:52 -0800 Subject: [PATCH 3/3] Remove apollo sentry error. --- client/src/graphql/apollo-error-handling.js | 2 -- 1 file changed, 2 deletions(-) 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)