Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql pooled queries have the wrong parent #584

Merged
merged 3 commits into from
Jun 12, 2019

Conversation

fragglebob
Copy link
Contributor

It seems some changes in the mysql instrumentation seem to have broken finding the parent, in recent versions of the mysql package.

Singalfx have also spotted it in this PR signalfx/signalfx-nodejs-tracing#12

@fragglebob fragglebob requested a review from a team as a code owner June 11, 2019 15:48
@rochdev rochdev added bug Something isn't working community integrations labels Jun 11, 2019
@rochdev rochdev added this to the 0.12.1 milestone Jun 11, 2019
Copy link
Member

@rochdev rochdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the build for mysql is failing. Also, does this same issue affect mysql2 as well?

@fragglebob
Copy link
Contributor Author

I've fixed the build for mysql the event emitter stuff must have also broken. I quickly added the same test to mysql2 and it passed without any changes, so I assume it doesn't have the same issue.

src/plugins/mysql.js Outdated Show resolved Hide resolved
@rochdev
Copy link
Member

rochdev commented Jun 12, 2019

I quickly added the same test to mysql2 and it passed without any changes, so I assume it doesn't have the same issue.

I would add that test to the PR so that we catch any regression in mysql2 as well.

@fragglebob
Copy link
Contributor Author

I've added that test in the mysql2 and moved the bind for the event emitter now.

@rochdev rochdev merged commit cd8b080 into DataDog:master Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community integrations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants