Title: MySQL tracing integration breaks non-callback queries · Issue #9207 · getsentry/sentry-javascript · GitHub
Open Graph Title: MySQL tracing integration breaks non-callback queries · Issue #9207 · getsentry/sentry-javascript
X Title: MySQL tracing integration breaks non-callback queries · Issue #9207 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/9207
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"MySQL tracing integration breaks non-callback queries","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/node\n\n### SDK Version\n\n7.73.0\n\n### Framework Version\n\nnode 18\n\n### Link to Sentry event\n\n_No response_\n\n### SDK Setup\n\n```javascript\r\nsentry.init({\r\n dsn: 'https://111111@sentry.io/11111',\r\n debug: true,\r\n enabled: true,\r\n environment: '123',\r\n release: '111',\r\n serverName: '111',\r\n tracesSampleRate: 0\r\n});\r\n```\n\n### Steps to Reproduce\n\nWe use the node `mysql` library with streams. This doesn't require a callback being passed to the `query` function.\r\n\r\nWe just updated the packages of one of our services, which has bought in an update to sentry and the tracing modules, but this completely broke our deployment.\r\n\r\nThe last version we were on was `7.40.0` where the following code snippet works. This doesn't work on the latest release.\r\n\r\n```javascript\r\nconst sentry = require('@sentry/node');\r\nrequire('@sentry/tracing');\r\n\r\nconst { createPool } = require('mysql');\r\n\r\nsentry.init({\r\n dsn: 'https://111111@sentry.io/11111',\r\n debug: true,\r\n enabled: true,\r\n environment: '123',\r\n release: '111',\r\n serverName: '111',\r\n tracesSampleRate: 0\r\n});\r\n\r\n\r\nconst mysql = createPool({\r\n connectionLimit: 10,\r\n database: 'user',\r\n host: 'localhost',\r\n password: 'user',\r\n user: 'user'\r\n});\r\n\r\nconst query = mysql.query('SELECT * from user');\r\nquery.on('result', console.log); \r\n\r\n```\r\n\r\nYou can get the above code snippet to produce rows from the query by setting `enabled: false` or not requiring the `@sentry/tracing` plugin\n\n### Expected Result\n\nSee above\n\n### Actual Result\n\nSee above","author":{"url":"https://github.com/chriswiggins","@type":"Person","name":"chriswiggins"},"datePublished":"2023-10-10T05:30:45Z","url":"https://github.com/getsentry/sentry-javascript/issues/9207"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fcd9cae1-ad8b-013a-b440-80c30fba1508 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD94:38F59A:589E85:77B954:6B04A107 |
| html-safe-nonce | c721d93e06173f5af08c423a495acc02793e0df849118dd97ac6aa30387bb4a5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDk0OjM4RjU5QTo1ODlFODU6NzdCOTU0OjZCMDRBMTA3IiwidmlzaXRvcl9pZCI6IjIzMzEyOTg2NDY1MTczOTE2MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 832fdcd1e1975d93a6cd84bd19a3994fd2df74cf7e20bfbe8758a38cbfd11c97 |
| hovercard-subject-tag | issue:1934407890 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/9207/issue_layout |
| twitter:image | https://opengraph.githubassets.com/310aa235c1c46da8d12104f8e33987109b13d5ebf27b9e73632dceffd6e560f0/getsentry/sentry-javascript/issues/9207 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/310aa235c1c46da8d12104f8e33987109b13d5ebf27b9e73632dceffd6e560f0/getsentry/sentry-javascript/issues/9207 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chriswiggins |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width