feat: add GlitchTip error monitoring integration
All checks were successful
Publish npm packages / publish (push) Successful in 2m3s
Publish PyPI package / publish (push) Successful in 21s
Deploy AgentLens / deploy (push) Successful in 3m43s

This commit is contained in:
Vectry
2026-02-11 01:35:01 +00:00
parent 2c83b945ab
commit 181956384b
7 changed files with 45 additions and 2 deletions

View File

@@ -1,7 +1,13 @@
import { withSentryConfig } from "@sentry/nextjs";
/** @type {import('next').NextConfig} */
const config = {
transpilePackages: ["@agentlens/database"],
output: "standalone",
};
export default config;
export default withSentryConfig(config, {
silent: !process.env.CI,
disableServerWebpackPlugin: true,
disableClientWebpackPlugin: true,
});

View File

@@ -28,7 +28,8 @@
"shiki": "^3.22.0",
"stripe": "^20.3.1",
"tailwind-merge": "^3.4.0",
"zod": "^4.3.6"
"zod": "^4.3.6",
"@sentry/nextjs": "^8.28.0"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.0.0",

View File

@@ -0,0 +1,7 @@
import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
tracesSampleRate: process.env.NODE_ENV === "development" ? 1.0 : 0.1,
debug: false,
});

View File

@@ -0,0 +1,7 @@
import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
tracesSampleRate: process.env.NODE_ENV === "development" ? 1.0 : 0.1,
debug: false,
});

View File

@@ -0,0 +1,7 @@
import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN,
tracesSampleRate: process.env.NODE_ENV === "development" ? 1.0 : 0.1,
debug: false,
});

View File

@@ -0,0 +1,13 @@
import * as Sentry from "@sentry/nextjs";
export async function register() {
if (process.env.NEXT_RUNTIME === "nodejs") {
await import("../sentry.server.config");
}
if (process.env.NEXT_RUNTIME === "edge") {
await import("../sentry.edge.config");
}
}
export const onRequestError = Sentry.captureRequestError;