Skip to content

fix(node): Ensure mysql integration works without callback #9222

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

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

mydea
Copy link
Member

@mydea mydea commented Oct 11, 2023

Turns out my "improvement" here actually broke streaming the query response 😬 as in that case you may not provide a callback.

This PR fixes this by using query.on('end') instead in that case to finish the span.

Fixes #9207

@mydea mydea requested a review from lforst October 11, 2023 10:08
@mydea mydea self-assigned this Oct 11, 2023
@mydea mydea force-pushed the fn/fix-mysql-stream branch from c3f894d to b0fc375 Compare October 11, 2023 10:51
@mydea mydea merged commit f8526df into develop Oct 11, 2023
@mydea mydea deleted the fn/fix-mysql-stream branch October 11, 2023 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MySQL tracing integration breaks non-callback queries
2 participants