Просмотр исходного кода

ref(ui): Better logging for routeNotFound (#69025)

This should help us track down missing slashes that we've introduced
Evan Purkhiser 11 месяцев назад
Родитель
Сommit
c549deaf78
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      static/app/views/routeNotFound.tsx

+ 2 - 0
static/app/views/routeNotFound.tsx

@@ -25,6 +25,8 @@ function RouteNotFound({router, location}: Props) {
 
     Sentry.withScope(scope => {
       scope.setFingerprint(['RouteNotFound']);
+      scope.setTag('isMissingSlash', isMissingSlash);
+      scope.setTag('pathname', pathname);
       Sentry.captureException(new Error('Route not found'));
     });
   }, [pathname, search, hash, isMissingSlash, router]);