Error tracking

Суть

Які проблеми вирішує

  1. Бачимо нові помилки після реліза
  2. Фантомні помилки швидко стають помітними
  3. Можемо приймати рішення чи відкатувати деплой
  4. Бачимо які старі помилки були закриті
  5. Маємо історію (коли з'явились, коли зникли)
  6. Не має нічних фіксів
  7. Тримаємо прод в робочому стані

1. Відкинути непотрібні помилки

export const ignoreErrors = [
    // https://sentry.io/share/issue/ccb03eb5d49a4877ac32cd6eb72227b5/
    'Unexpected token <',
    'Unexpected token \'<\'',
    'Network Error',
    '{"details":{"code":0,"message":"Network Error"},"status":"error"}',
    'timeout of 45000ms exceeded',
    // a temporary solution to this error
    // https://sentry.io/share/issue/145652448c8c49e694571212be8dc2b1/
    'is not a function',
    // https://sentry.io/share/issue/ce1bc76bf8f74889852039c6b402777f/
    'The play() request was interrupted by a call to pause(). https://goo.gl/LdLk22',
    // https://sentry.io/share/issue/4519b769acc34176ac127bcba936091e/
    'play() failed because the user didn\'t interact with the document first. https://goo.gl/xX8pDD',
    // https://sentry.io/share/issue/84443e3930234734b314d277055c7d9c/
    '{"status":"error","details":{"message":"Rate limit exceeded.","code":429}}',
    // https://sentry.io/share/issue/c0aca34babc44496b1a18e3955c50893/
    'code":0}',
    'Out of stack space',
    '{"message":"","name":"NavigationDuplicated',
    'PromiseRejectionEvent',
    // https://sentry.io/organizations/socialtech-5h/issues/1134038615/?project=1454138
    'jivo_api is not defined',
    // https://sentry.io/organizations/socialtech-5h/issues/1176011777/?project=1454138
    '{"details":{"code":0,"message":"Request aborted"},"status":"error"}',
    // https://sentry.io/organizations/socialtech-5h/issues/1134043819/?project=1454138
    'The element has no supported sources.',
    // https://sentry.io/organizations/socialtech-5h/issues/1134038506/?project=1454138
    // third-party system error
    '$ is not defined',
    '{"details":{"code":400}}',
    // https://sentry.io/organizations/socialtech-5h/issues/1137808095/
    '{"details":{"code":502}}',
    // https://sentry.io/organizations/socialtech-5h/issues/1134039842/
    'io_upload is not defined',
    // https://sentry.io/organizations/socialtech-5h/issues/1210156067/
    '{"message":"","code":81}',
    // https://sentry.io/organizations/socialtech-5h/issues/1236775140/?project=1454138&query=is%3Aunresolved&statsPeriod=90d
    'Navigating to current location',
]

2. Налаштувати деплой

Все

Error traking

By Kolya Koval

Error traking

  • 378