Skip to content

Commit f895c5f

Browse files
committed
adding new parameters added on latest version
1 parent a02823e commit f895c5f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

plugins/node/opentelemetry-instrumentation-pg/src/internal-types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ export interface PgPoolOptionsParams {
5454
idleTimeoutMillis: number; // the minimum amount of time that an object may sit idle in the pool before it is eligible for eviction due to idle time
5555
maxClient: number; // maximum size of the pool
5656
connectionString?: string; // connection string if provided directly
57+
max: number;
58+
maxUses: number;
59+
allowExitOnIdle: boolean;
60+
maxLifetimeSeconds: number;
5761
}
5862

5963
export const EVENT_LISTENERS_SET = Symbol(

plugins/node/opentelemetry-instrumentation-pg/test/utils.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@ describe('utils.ts', () => {
246246
database: 'database_name',
247247
idleTimeoutMillis: 10,
248248
maxClient: 5,
249+
max: 5,
250+
maxUses: 5,
251+
allowExitOnIdle: true,
252+
maxLifetimeSeconds: 10,
249253
};
250254

251255
assert.strictEqual(

0 commit comments

Comments
 (0)