Skip to content

Commit

Permalink
Improve Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
devformatters authored and Zeck Li committed Apr 26, 2019
1 parent b07516f commit b49bc26
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion common/utils/random.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
export const genSentryActionId = () =>
Math.random().toString(36).substr(2, 9)
Math.random()
.toString(36)
.substr(2, 9)
7 changes: 6 additions & 1 deletion common/utils/withApollo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ export default withApollo(({ ctx, headers, initialState }) => {
// setupPersistCache()

return new ApolloClient({
link: ApolloLink.from([errorLink, authLink, sentryLink, dataLink({ headers })]),
link: ApolloLink.from([
errorLink,
authLink,
sentryLink,
dataLink({ headers })
]),
cache: inMemoryCache
})
})

0 comments on commit b49bc26

Please sign in to comment.