You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MongoDB instrumentation is not working when the MongoClient is created through the static method. Also, when creating the MongoClient through the constructor it only works if monitorCommands: true is set in the client options.
- ensure a mongodb span is not accidentally a child of an inflight
mongodb span
- Fix an issue where instrumentation of `new MongoClient(url)` would
fail because the internal handling of `arguments` would add
`arguments[1]` but arguments.length stayed at 1. Fix by first
changing to an Array.
- Fix instrument of a connection made using the MongoClient.connect
static method. #2467
- Add 'mongodb' to test-all-versions (TAV) testing.
- Ensure a mongodb span is not accidentally a child of an inflight
mongodb span
- Fix an issue where instrumentation of `new MongoClient(url)` would
fail because the internal handling of `arguments` would add
`arguments[1]` but arguments.length stayed at 1. Fix by first
changing to an Array.
- Fix instrument of a connection made using the MongoClient.connect
static method. #2467
Refs: #2430Fixes: #2467
Describe the bug
MongoDB instrumentation is not working when the
MongoClient
is created through the static method. Also, when creating theMongoClient
through the constructor it only works ifmonitorCommands: true
is set in the client options.To Reproduce
Steps to reproduce the behavior:
Expected behavior
APM spans of MongoDB should be logged.
Environment (please complete the following information)
How are you starting the agent? (please tick one of the boxes)
agent.start()
directly (e.g.require('elastic-apm-node').start(...)
)elastic-apm-node/start
from within the source code-r elastic-apm-node/start
The text was updated successfully, but these errors were encountered: