Skip to content

Commit 34b3a47

Browse files
committed
Skip spans in db
1 parent 2b37f66 commit 34b3a47

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

src/storage/db/db.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as path from "node:path";
44
import { DatabaseSync } from "node:sqlite";
55

66
import { FileMigrationProvider, Kysely, Migrator } from "kysely";
7-
import { captureException, startInactiveSpan } from "@sentry/node";
7+
import { captureException } from "@sentry/node";
88

99
import { SqliteDialect } from "./dialect/sqlite-dialect.ts";
1010
import type { Database } from "./model.ts";
@@ -50,14 +50,6 @@ export async function connectToDb(databasePath: string) {
5050
) {
5151
return;
5252
}
53-
54-
startInactiveSpan({
55-
name: info.sql,
56-
op: "db.query",
57-
startTime: new Date(Date.now() - info.duration),
58-
onlyIfParent: true,
59-
}).end();
60-
6153
log.debug(info, "DB Query");
6254
break;
6355
default:

0 commit comments

Comments
 (0)