feat(devops): diagnose slow HK requests and dependency timings
CI / check (push) Successful in 2m0s
CI / deploy (push) Successful in 1m35s
CI / publish-container (push) Successful in 46s

This commit is contained in:
Simo committed 2026-09-11 09:48:19 +02:00
1 parent 3b76d063a6
commit 00e33623f7
42 files changed
+1335 -132

No files matched your search

+3 -1
View File
@@ -5,6 +5,8 @@ import * as schema from "@/db/schema";
import { env } from "@/env";
import { resolveConnectionLimit } from "@/lib/db-pool";
import { instrumentDatabase } from "@/lib/performance-diagnostics";
const fullSchema = { ...schema, ...relations };
const globalForDb = globalThis as unknown as {
@@ -42,7 +44,7 @@ function createDb() {
supportBigNumbers: true,
});
return drizzle(pool, {
return drizzle(instrumentDatabase(pool), {
schema: fullSchema,
mode: "default",
logger: