From 470654e4d71417994b2c101c3c167f3898ba4703 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Wed, 29 May 2024 18:47:02 -0400 Subject: [PATCH] Fix sentry browser tracing --- app/entry.client.tsx | 3 +- package-lock.json | 114 +++++++++++++++++++++---------------------- package.json | 2 +- 3 files changed, 60 insertions(+), 59 deletions(-) diff --git a/app/entry.client.tsx b/app/entry.client.tsx index f2f167f..bf01344 100644 --- a/app/entry.client.tsx +++ b/app/entry.client.tsx @@ -10,7 +10,8 @@ Sentry.init({ dsn: document.querySelector("meta[name='dsn']")?.getAttribute("content") ?? undefined, - integrations: [new Sentry.BrowserTracing()], + // @ts-expect-error + integrations: [Sentry.browserTracingIntegration()], tracesSampleRate: 0.1, }); diff --git a/package-lock.json b/package-lock.json index ed8d47f..0a566cb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "@remix-run/cloudflare": "^2.9.2", "@remix-run/cloudflare-pages": "^2.9.2", "@remix-run/react": "^2.9.2", - "@sentry/react": "^8.5.0", + "@sentry/react": "^8.7.0", "aws4fetch": "^1.0.18", "framer-motion": "^11.2.6", "react": "^18.3.1", @@ -3093,97 +3093,97 @@ "peer": true }, "node_modules/@sentry-internal/browser-utils": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/@sentry-internal/browser-utils/-/browser-utils-8.5.0.tgz", - "integrity": "sha512-R2h4JssvmY/mnq3iW49Oxas9BJ8CPR7yP88lCHiCHtwH/gHxemgCtq/NY1ptA0t45Eae+4ILU0ppOsJcDg9VBw==", + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/@sentry-internal/browser-utils/-/browser-utils-8.7.0.tgz", + "integrity": "sha512-RFBK1sYBwV5qGMEwWF0rjOTqQpp4/SvE+qHkOJNRUTVYmfjM+Y9lcxwn4B6lu3aboxePpBw/i1PlP6XwX4UnGA==", "dependencies": { - "@sentry/core": "8.5.0", - "@sentry/types": "8.5.0", - "@sentry/utils": "8.5.0" + "@sentry/core": "8.7.0", + "@sentry/types": "8.7.0", + "@sentry/utils": "8.7.0" }, "engines": { "node": ">=14.18" } }, "node_modules/@sentry-internal/feedback": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/@sentry-internal/feedback/-/feedback-8.5.0.tgz", - "integrity": "sha512-GTLIfRKx2Ye0pIxhVUSxxwPbQfiSNhXpQMnSrSYHDo1KHLgbgZ4MaX2Qnx+CZN6mXDVVrtk1sqTR83ytFCwRcw==", + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/@sentry-internal/feedback/-/feedback-8.7.0.tgz", + "integrity": "sha512-qcGtWCtRB4eP7NVQoxW936oPkU4qu9otMLYELPGmOJPnuAG0lujlJXW7BucaM7ADyJgJTE75hG849bHecfnbmQ==", "dependencies": { - "@sentry/core": "8.5.0", - "@sentry/types": "8.5.0", - "@sentry/utils": "8.5.0" + "@sentry/core": "8.7.0", + "@sentry/types": "8.7.0", + "@sentry/utils": "8.7.0" }, "engines": { "node": ">=14.18" } }, "node_modules/@sentry-internal/replay": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/@sentry-internal/replay/-/replay-8.5.0.tgz", - "integrity": "sha512-eluGqUjuSZKqe3dqqBvMkh3HJ9aPxXOT0i3ydUHoV9XWA7oeUfWk6gIqMm7WLTHagOGYp3v4KTOYdzu4QS6OMA==", + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/@sentry-internal/replay/-/replay-8.7.0.tgz", + "integrity": "sha512-bQzOkWplaWTe3u+aDBhxWY3Qy0aT7ss2A3VR8iC6N8ZIEP9PxqyJwTNoouhinfgmlnCguI7RDOO4f3r3e2M80Q==", "dependencies": { - "@sentry-internal/browser-utils": "8.5.0", - "@sentry/core": "8.5.0", - "@sentry/types": "8.5.0", - "@sentry/utils": "8.5.0" + "@sentry-internal/browser-utils": "8.7.0", + "@sentry/core": "8.7.0", + "@sentry/types": "8.7.0", + "@sentry/utils": "8.7.0" }, "engines": { "node": ">=14.18" } }, "node_modules/@sentry-internal/replay-canvas": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/@sentry-internal/replay-canvas/-/replay-canvas-8.5.0.tgz", - "integrity": "sha512-BOwoUjRHQ0OUsUwHiBhXtkvJXe+9LlB9cb8KmhcHdfqajp4L10aN+4OC8UTSbCX832Ph/K6nu5gelK4wAI9NVw==", + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/@sentry-internal/replay-canvas/-/replay-canvas-8.7.0.tgz", + "integrity": "sha512-FOnvBPbq6MJVHPduc0hcsdE3PeeovQ2z5WJnZDGhvp/Obehxqe+XgX7K/595vRIknv4EokRn/3Kw0mFwG8E+ZQ==", "dependencies": { - "@sentry-internal/replay": "8.5.0", - "@sentry/core": "8.5.0", - "@sentry/types": "8.5.0", - "@sentry/utils": "8.5.0" + "@sentry-internal/replay": "8.7.0", + "@sentry/core": "8.7.0", + "@sentry/types": "8.7.0", + "@sentry/utils": "8.7.0" }, "engines": { "node": ">=14.18" } }, "node_modules/@sentry/browser": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-8.5.0.tgz", - "integrity": "sha512-rxthVdwkkGqArQLM+/O8y0J4oe/J5MLE7WzzRkzSJWLdt6cJMrrb43sKGQf2IQSg6kf1se+qKmpRly5uEOf8OA==", + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-8.7.0.tgz", + "integrity": "sha512-4EEp+PlcktsMN0p+MdCPl/lghTkq7eOtZjQG9NGhWzfyWrJ3tuL1nsDr2SSivJ1V277F01KtKYo6BFwP2NtBZA==", "dependencies": { - "@sentry-internal/browser-utils": "8.5.0", - "@sentry-internal/feedback": "8.5.0", - "@sentry-internal/replay": "8.5.0", - "@sentry-internal/replay-canvas": "8.5.0", - "@sentry/core": "8.5.0", - "@sentry/types": "8.5.0", - "@sentry/utils": "8.5.0" + "@sentry-internal/browser-utils": "8.7.0", + "@sentry-internal/feedback": "8.7.0", + "@sentry-internal/replay": "8.7.0", + "@sentry-internal/replay-canvas": "8.7.0", + "@sentry/core": "8.7.0", + "@sentry/types": "8.7.0", + "@sentry/utils": "8.7.0" }, "engines": { "node": ">=14.18" } }, "node_modules/@sentry/core": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/@sentry/core/-/core-8.5.0.tgz", - "integrity": "sha512-SO3ddBzGdha+Oflp+IKwBxj+7ds1q69OAT3VsypTd+WUFQdI9DIhR92Bjf+QQZCIzUNOi79VWOh3aOi3f6hMnw==", + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-8.7.0.tgz", + "integrity": "sha512-Sq/46B+5nWmgnCD6dEMZ6HTkKbV/KAdgaSvT8oXDb9OWoPy1jJ/gbLrhLs62KbjuDQk4/vWnOgHiKQbcslSzMw==", "dependencies": { - "@sentry/types": "8.5.0", - "@sentry/utils": "8.5.0" + "@sentry/types": "8.7.0", + "@sentry/utils": "8.7.0" }, "engines": { "node": ">=14.18" } }, "node_modules/@sentry/react": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/@sentry/react/-/react-8.5.0.tgz", - "integrity": "sha512-0YdzA3ZvqZeP5uE7v9o95q7cBH9x1IV4uNPSyBr/AcK/RD8O1G1phbfphmkckf2F15zqH6Ala8bT3+J//nGKMA==", - "dependencies": { - "@sentry/browser": "8.5.0", - "@sentry/core": "8.5.0", - "@sentry/types": "8.5.0", - "@sentry/utils": "8.5.0", + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/@sentry/react/-/react-8.7.0.tgz", + "integrity": "sha512-JFo8QW8JB4eaFC8RdkOBO96JvlGgstywmyMZ39qWfFbD735vGl8PnOa0AnrC/5Auc86dZ98/I4OEPboqUE9q1w==", + "dependencies": { + "@sentry/browser": "8.7.0", + "@sentry/core": "8.7.0", + "@sentry/types": "8.7.0", + "@sentry/utils": "8.7.0", "hoist-non-react-statics": "^3.3.2" }, "engines": { @@ -3194,19 +3194,19 @@ } }, "node_modules/@sentry/types": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-8.5.0.tgz", - "integrity": "sha512-eDgkSmKI4+XL0QZm4H3j/n1RgnrbnjXZmjj+LsfccRZQwbPu9bWlc8q7Y7Ty1gOsoUpX+TecNLp2a8CRID4KHA==", + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/@sentry/types/-/types-8.7.0.tgz", + "integrity": "sha512-11KLOKumP6akugVGLvSoEig+JlP0ZEzW3nN9P+ppgdIx9HAxMIh6UvumbieG4/DWjAh2kh6NPNfUw3gk2Gfq1A==", "engines": { "node": ">=14.18" } }, "node_modules/@sentry/utils": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-8.5.0.tgz", - "integrity": "sha512-fdrCzo8SAYiw9JBhkJPqYqJkDXZ/wICzN7+zcXIuzKNhE1hdoFjeKcPnpUI3bKZCG6e3hT1PTYQXhVw7GIZV9w==", + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-8.7.0.tgz", + "integrity": "sha512-aWmcbSoOmrbzll/FkNQFJcCtLAuJLvTYbRKiCSkV3FScA7UaA742HkTZAPFiioALFIESWk/fcGZqtN0s4I281Q==", "dependencies": { - "@sentry/types": "8.5.0" + "@sentry/types": "8.7.0" }, "engines": { "node": ">=14.18" diff --git a/package.json b/package.json index 88daefa..2ef1dcb 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "@remix-run/cloudflare": "^2.9.2", "@remix-run/cloudflare-pages": "^2.9.2", "@remix-run/react": "^2.9.2", - "@sentry/react": "^8.5.0", + "@sentry/react": "^8.7.0", "aws4fetch": "^1.0.18", "framer-motion": "^11.2.6", "react": "^18.3.1",