Skip to content

Commit

Permalink
feat(mysql): update MySQL wrapper to propagate fields. (#1412)
Browse files Browse the repository at this point in the history
Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com>
  • Loading branch information
michaelsafyan and sofisl authored Aug 10, 2022
1 parent 1d89f08 commit 1b92362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/plugin-mysql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -59,7 +59,7 @@ function wrapCallback(api, span, done) {
}
span.endSpan();
if (done) {
done(err, res);
done(err, res, fields);
}
};
return api.wrap(fn);
Expand Down

0 comments on commit 1b92362

Please sign in to comment.