1) Command Monitoring
should correctly receive the APM events for a listIndexes command:
MongoServerError: ns does not exist: integration_tests.apm_test_list_collections
at Connection.sendCommand (src/cmap/connection.ts:169:73)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Connection.command (src/cmap/connection.ts:169:73)
at async Server.command (src/sdam/server.ts:74:87)
at async ListIndexesOperation.executeCommand (src/operations/command.ts:9:21)
at async ListIndexesOperation.execute (src/operations/indexes.ts:29:12)
at async tryOperation (src/operations/execute_operation.ts:82:4)
at async executeOperation (src/operations/execute_operation.ts:24:2478)
at async LegacyListIndexesCursor._initialize (src/cursor/list_indexes_cursor.ts:2:1173)
at async LegacyListIndexesCursor.cursorInit (src/cursor/abstract_cursor.ts:353:6)
at async LegacyListIndexesCursor.fetchBatch (src/cursor/abstract_cursor.ts:359:6)
at async LegacyListIndexesCursor.next (src/cursor/abstract_cursor.ts:49:2805)
at async LegacyListIndexesCursor.[Symbol.asyncIterator] (src/cursor/abstract_cursor.ts:44:2710)
at async LegacyListIndexesCursor.toArray (src/cursor/abstract_cursor.ts:235:19)
2) Command Monitoring
should correctly receive the APM events for a listIndexes command:
MongoClient connect count
+ expected - actual
-1
+0
at LeakChecker.assert (test/tools/runner/hooks/leak_checker.ts:113:84)
at Context.leakCheckerAfterEach (test/tools/runner/hooks/leak_checker.ts:130:25)
at processImmediate (node:internal/timers:483:21)