From 914e4f84732c940b7ca6c14c2cd6a2e1883734fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ra=C4=8D=C3=A1k?= Date: Tue, 14 Jan 2025 10:10:33 +0100 Subject: [PATCH] Add button to test Sentry --- site/gdocs/pages/AboutPage.tsx | 8 ++++++++ site/instrument.ts | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/site/gdocs/pages/AboutPage.tsx b/site/gdocs/pages/AboutPage.tsx index dbe4f18e8b..88e86081d7 100644 --- a/site/gdocs/pages/AboutPage.tsx +++ b/site/gdocs/pages/AboutPage.tsx @@ -10,6 +10,14 @@ import Footnotes from "../components/Footnotes.js" export default function AboutPage({ content, slug }: OwidGdocAboutInterface) { return (
+

About

diff --git a/site/instrument.ts b/site/instrument.ts index b8a7f57709..5b2f5ede64 100644 --- a/site/instrument.ts +++ b/site/instrument.ts @@ -27,6 +27,11 @@ if (analyticsConsent && !isInIFrame()) { replaysOnErrorSampleRate: 0, } } +console.log("sentryOpts", sentryOpts) +console.log("process.env", process.env) +console.log("analyticsConsent", analyticsConsent) +console.log("isInIFrame()", isInIFrame()) +console.log("environment", environment) Sentry.init({ dsn: process.env.SENTRY_DSN, environment,