diff --git a/src/plugins/plugin-mysql.ts b/src/plugins/plugin-mysql.ts index 7ed3d4a5e..e3aec94a4 100644 --- a/src/plugins/plugin-mysql.ts +++ b/src/plugins/plugin-mysql.ts @@ -48,7 +48,7 @@ function createCreateQueryWrap(api) { } function wrapCallback(api, span, done) { - const fn = function (err, res) { + const fn = function (err, res, fields) { if (api.enhancedDatabaseReportingEnabled()) { if (err) { span.addLabel('error', err); @@ -59,7 +59,7 @@ function wrapCallback(api, span, done) { } span.endSpan(); if (done) { - done(err, res); + done(err, res, fields); } }; return api.wrap(fn);