MCPcopy
hub / github.com/mongodb/node-mongodb-native / info

Method info

src/cmap/metrics.ts:40–48  ·  view source on GitHub ↗

* Return information about the cmap metrics as a string.

(maxPoolSize: number)

Source from the content-addressed store, hash-verified

38 * Return information about the cmap metrics as a string.
39 */
40 info(maxPoolSize: number): string {
41 return (
42 'Timed out while checking out a connection from connection pool: ' +
43 `maxPoolSize: ${maxPoolSize}, ` +
44 `connections in use by cursors: ${this.cursorConnections}, ` +
45 `connections in use by transactions: ${this.txnConnections}, ` +
46 `connections in use by other operations: ${this.otherConnections}`
47 );
48 }
49
50 /**
51 * Reset the metrics to the initial values.

Callers 4

metrics.test.jsFile · 0.80
waitQueueErrorMetricsMethod · 0.80
processWaitQueueFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected