Skip to content

Commit ed4f79e

Browse files
committed
Revert "setup sentry for queries"
breaks INSERTs and doesn't provide specific query information This reverts commit 8a6b537.
1 parent 809b38e commit ed4f79e

File tree

4 files changed

+7
-33
lines changed

4 files changed

+7
-33
lines changed

pnpm-lock.yaml

Lines changed: 0 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sitio/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"markdown-it-table-of-contents": "^0.6.0",
4040
"mode-watcher": "^0.5.0",
4141
"nanoid": "^5.0.9",
42-
"sentry-integration-libsql-client": "^1.3.0",
4342
"svelte-echarts": "^0.1.1",
4443
"svelte-mq-store": "^2.2.22",
4544
"svelte-radix": "^2.0.1",

sitio/src/hooks.server.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import { sequence } from "@sveltejs/kit/hooks";
22
import * as Sentry from "@sentry/sveltekit";
33

4+
Sentry.init({
5+
dsn: "https://79b56150c5092cdad5c56c62223a1a5d@o4507188153548800.ingest.de.sentry.io/4507188155646032",
6+
tracesSampleRate: 1,
7+
profilesSampleRate: 0.1,
8+
enabled: import.meta.env.PROD,
9+
});
10+
411
export const handleError = Sentry.handleErrorWithSentry();
512
export const handle = sequence(Sentry.sentryHandle());

sitio/src/lib/db/connectDb.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ import * as schema from "../../schema";
22
import { drizzle } from "drizzle-orm/libsql";
33
import { createClient } from "@libsql/client";
44
import { migrate } from "drizzle-orm/libsql/migrator";
5-
import { libsqlIntegration } from "sentry-integration-libsql-client";
6-
import * as Sentry from "@sentry/sveltekit";
7-
85
export async function connectDb({
96
url,
107
authToken,
@@ -13,15 +10,6 @@ export async function connectDb({
1310
authToken?: string;
1411
}) {
1512
const client = createClient({ url, authToken });
16-
17-
Sentry.init({
18-
dsn: "https://79b56150c5092cdad5c56c62223a1a5d@o4507188153548800.ingest.de.sentry.io/4507188155646032",
19-
tracesSampleRate: 1,
20-
profilesSampleRate: 0.1,
21-
enabled: import.meta.env.PROD,
22-
integrations: [libsqlIntegration(client, Sentry)],
23-
});
24-
2513
// await client.execute(`PRAGMA journal_mode = WAL;`);
2614
// await client.execute(`PRAGMA busy_timeout = 5000;`);
2715
// await client.execute(`PRAGMA synchronous = NORMAL;`);

0 commit comments

Comments
 (0)