From cc9114ff66f6173956e925ec3ab5ff681ec82bdc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 4 Jul 2025 08:30:29 +0000 Subject: [PATCH 1/3] Initial plan From f91435f291eabde37f0fc32020a4c80473af50d6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 4 Jul 2025 08:39:25 +0000 Subject: [PATCH 2/3] Add captureConsoleIntegration to Sentry configuration Co-authored-by: ben-z <5977478+ben-z@users.noreply.github.com> --- sentry.client.config.ts | 4 +++- sentry.edge.config.ts | 4 ++++ sentry.server.config.ts | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sentry.client.config.ts b/sentry.client.config.ts index 4805665..e7b036b 100644 --- a/sentry.client.config.ts +++ b/sentry.client.config.ts @@ -40,7 +40,9 @@ if (process.env.NODE_ENV === 'production') { tunnel: websiteConfig.sentry_tunnel, - integrations: [], + integrations: [ + Sentry.captureConsoleIntegration(), + ], }); // Lazy-load the Sentry Replay integration diff --git a/sentry.edge.config.ts b/sentry.edge.config.ts index c2e52c8..e00a00d 100644 --- a/sentry.edge.config.ts +++ b/sentry.edge.config.ts @@ -15,5 +15,9 @@ if (process.env.NODE_ENV === 'production') { // Setting this option to true will print useful information to the console while you're setting up Sentry. debug: false, + + integrations: [ + Sentry.captureConsoleIntegration(), + ], }); } \ No newline at end of file diff --git a/sentry.server.config.ts b/sentry.server.config.ts index df45cf6..a4eeee1 100644 --- a/sentry.server.config.ts +++ b/sentry.server.config.ts @@ -14,5 +14,9 @@ if (process.env.NODE_ENV === 'production') { // Setting this option to true will print useful information to the console while you're setting up Sentry. debug: false, + + integrations: [ + Sentry.captureConsoleIntegration(), + ], }); } \ No newline at end of file From 7960b41f4d27f7c04554a9bda687c874ad1632d2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 4 Jul 2025 08:43:03 +0000 Subject: [PATCH 3/3] Fix Sentry Console integration implementation Co-authored-by: ben-z <5977478+ben-z@users.noreply.github.com> --- sentry.client.config.ts | 2 +- sentry.edge.config.ts | 2 +- sentry.server.config.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sentry.client.config.ts b/sentry.client.config.ts index e7b036b..ff20893 100644 --- a/sentry.client.config.ts +++ b/sentry.client.config.ts @@ -41,7 +41,7 @@ if (process.env.NODE_ENV === 'production') { tunnel: websiteConfig.sentry_tunnel, integrations: [ - Sentry.captureConsoleIntegration(), + new Sentry.Integrations.Console(), ], }); diff --git a/sentry.edge.config.ts b/sentry.edge.config.ts index e00a00d..bf68edf 100644 --- a/sentry.edge.config.ts +++ b/sentry.edge.config.ts @@ -17,7 +17,7 @@ if (process.env.NODE_ENV === 'production') { debug: false, integrations: [ - Sentry.captureConsoleIntegration(), + new Sentry.Integrations.Console(), ], }); } \ No newline at end of file diff --git a/sentry.server.config.ts b/sentry.server.config.ts index a4eeee1..17bcef1 100644 --- a/sentry.server.config.ts +++ b/sentry.server.config.ts @@ -16,7 +16,7 @@ if (process.env.NODE_ENV === 'production') { debug: false, integrations: [ - Sentry.captureConsoleIntegration(), + new Sentry.Integrations.Console(), ], }); } \ No newline at end of file