2 years ago
Lambda Node tracer: Support for tracing MongoDB 4.x
When we announced the support for the mongodb package in our OpenTelemetry Distro for JS, we heard a lot of feedback that can perhaps be best described as "Very cool, but what about Lambda Node.js?!?"
Fast forward to today: we have updated our Node.js Lambda tracer to support the mongodb
version 4.x version that, among others, is compatible with MongoDB Atlas and AWS DocumentDB.
To trace mongodb
v4.x, you need to:
- Use the Lumigo tracer
@lumigo/tracer
version 1.76.0 or above, or the Lumigo layer for Node.js in these versions or above (the actual version is dependent on the region). - If you use a bundler like WebPack or ESBuild, you must keep
mongodb
as an external package; refer to the MongoDB and Bundlers section of the Lumigo AWS Lambda Node.js documentation.
Happy tracing :-)
Update: In the original post we pointed at the wrong version (1.75.1
instead of 1.76.0
) of the @lumigo/tracer