Skip to content

Commit 0e737d4

Browse files
chore(metrics): use 'unknown' as fallback for clientName label
1 parent a3223ec commit 0e737d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/routes/index.router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ if (process.env.PROMETHEUS_METRICS === 'true') {
5757

5858
const lines: string[] = [];
5959

60-
const clientName = process.env.DATABASE_CONNECTION_CLIENT_NAME || '';
60+
const clientName = process.env.DATABASE_CONNECTION_CLIENT_NAME || 'unknown';
6161
const serverUrl = serverConfig.URL || '';
6262

6363
// environment info

0 commit comments

Comments
 (0)