diff --git a/lib/shimmer.js b/lib/shimmer.js index 68fa72fd0d..bd99f132bc 100644 --- a/lib/shimmer.js +++ b/lib/shimmer.js @@ -65,6 +65,10 @@ function _postLoad(agent, nodule, name) { // to allow for instrumenting both 'pg' and 'pg.js'. if (name === 'pg.js') { instrumentation = 'pg' + } if (name === 'mysql2') { + // mysql2 (https://github.com/sidorares/node-mysql2) is a drop in replacement for mysql + // which conforms to the existing mysql API. If we see mysql2, treat it as mysql + instrumentation = 'mysql' } else { instrumentation = base }