dd-trace-js icon indicating copy to clipboard operation
dd-trace-js copied to clipboard

dd-trace net instrumentation producing query on closed connection?

Open Saeger opened this issue 2 years ago • 0 comments

Hi,

We're using MongoDB 4.4 selfhosted and we're facing a production of many of the stack trace below. I am not really sure why this is happening, but it's performing several operation as:

operation: mongodb.query resource: hello admin.$cmd

Which I believe it's to get to handshake and get to know the replicasets involved.

MongoNetworkError: connection <monitor> to 10.20.180.243:27017 closed
    at Connection.onClose (/engine/node_modules/mongodb/lib/cmap/connection.js:138:19)
    at Socket.<anonymous> (/engine/node_modules/mongodb/lib/cmap/connection.js:65:46)
    at Socket.emit (events.js:388:22)
    at Socket.emit (domain.js:470:12)
    at Socket.emit (/engine/node_modules/dd-trace/packages/datadog-instrumentations/src/net.js:61:25)
    at TCP.<anonymous> (net.js:673:12)
    at TCP.callbackTrampoline (internal/async_hooks.js:134:14)

Environment

  • Node.js version: 14
  • Agent version: 3.2.0
  • Relevant library versions: MongoDB 4.7.0 lib and MongoDB 4.4 engine

Saeger avatar Sep 09 '22 09:09 Saeger