Skip to content

Commit

Permalink
chore: enable DB instrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Sep 18, 2023
1 parent f6f8695 commit 31cbc5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/metrics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { size as queueSize } from '../queue';
import getModerationList from '../moderationList';
import DigitalOcean from './digitalOcean';
import type { Express } from 'express';
import db from '../../helpers/mysql';

export default function initMetrics(app: Express) {
init(app, {
Expand All @@ -15,7 +16,8 @@ export default function initMetrics(app: Express) {
/^\/api\/moderation$/,
/^\/(webhook|sentry)$/
],
errorHandler: capture
errorHandler: capture,
db
});
}

Expand Down

0 comments on commit 31cbc5a

Please sign in to comment.