Compare commits

...

2 Commits

Author SHA1 Message Date
Patrick Fic
0455e03bfd Remove apollo sentry error. 2024-01-31 10:44:52 -08:00
Patrick Fic
da1ddb874f Change tracing targets. 2024-01-30 16:58:11 -08:00
2 changed files with 6 additions and 3 deletions

View File

@@ -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)

View File

@@ -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,