add sentry (#2786)

* add sentry

* nit

* nit

* add requirement to ee

* try to ensure sentry is installed in integration tests
This commit is contained in:
pablodanswer
2024-10-17 16:20:37 -07:00
committed by GitHub
parent 4c2cf8b132
commit 61424de531
17 changed files with 2135 additions and 59 deletions

12
web/instrumentation.ts Normal file
View File

@ -0,0 +1,12 @@
export async function register() {
if (process.env.NEXT_PUBLIC_SENTRY_DSN) {
if (process.env.NEXT_RUNTIME === "nodejs") {
await import("./sentry.client.config");
await import("./sentry.server.config");
}
if (process.env.NEXT_RUNTIME === "edge") {
await import("./sentry.edge.config");
}
}
}