diff --git a/src/utils/api/helpers/index.ts b/src/utils/api/helpers/index.ts index bb160942..5f5999a0 100644 --- a/src/utils/api/helpers/index.ts +++ b/src/utils/api/helpers/index.ts @@ -27,9 +27,9 @@ const handleError = if (error?.response) { if (config?.captureResponse) { + Sentry.setTag('error_status', error.response.status) Sentry.setContext('Error response', { data: error.response.data, - status: error.response.status, headers: error.response.headers }) } diff --git a/src/utils/push/useConnect.ts b/src/utils/push/useConnect.ts index b3f83da3..d583c165 100644 --- a/src/utils/push/useConnect.ts +++ b/src/utils/push/useConnect.ts @@ -96,7 +96,7 @@ const pushUseConnect = () => { ) useEffect(() => { - Sentry.setContext('Push', { expoToken, pushEnabledCount }) + Sentry.setTags({ expoToken, pushEnabledCount }) if (expoToken && pushEnabledCount) { connectQuery.refetch()