We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10e5dc8 commit 97d6c6eCopy full SHA for 97d6c6e
backend/src/database/models/index.ts
@@ -56,6 +56,9 @@ function models() {
56
credentials.password,
57
{
58
dialect: DB_CONFIG.dialect,
59
+ dialectOptions: {
60
+ application_name: SERVICE,
61
+ },
62
port: DB_CONFIG.port,
63
replication: {
64
read: [
services/libs/database/src/connection.ts
@@ -63,6 +63,7 @@ export const getDbConnection = async (
...config,
max: maxPoolSize || 5,
65
query_timeout: 30000,
66
+ application_name: process.env.SERVICE || 'unknown-app',
67
})
68
69
await dbConnection.connect()
0 commit comments