chore: Enable parameterized route profiling

This commit is contained in:
Tom Moor
2021-01-22 23:02:12 -08:00
parent 7b87fea4f4
commit b3cd78c833
4 changed files with 18 additions and 3 deletions

View File

@ -0,0 +1,12 @@
// @flow
import * as Sentry from "@sentry/react";
import { Route } from "react-router-dom";
import env from "env";
let Component = Route;
if (env.SENTRY_DSN) {
Component = Sentry.withSentryRouting(Route);
}
export default Component;