Title: Express middleware state leaking across requests · Issue #1773 · getsentry/sentry-javascript · GitHub
Open Graph Title: Express middleware state leaking across requests · Issue #1773 · getsentry/sentry-javascript
X Title: Express middleware state leaking across requests · Issue #1773 · getsentry/sentry-javascript
Description: Package + Version @sentry/browser @sentry/node raven-js raven-node (raven for node) other: Version: 4.4.0 Description When calling Sentry.captureException from an express middleware, the url field reported to Sentry is incorrect. It is a...
Open Graph Description: Package + Version @sentry/browser @sentry/node raven-js raven-node (raven for node) other: Version: 4.4.0 Description When calling Sentry.captureException from an express middleware, the url field ...
X Description: Package + Version @sentry/browser @sentry/node raven-js raven-node (raven for node) other: Version: 4.4.0 Description When calling Sentry.captureException from an express middleware, the url field ...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/1773
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Express middleware state leaking across requests","articleBody":"## Package + Version\r\n\r\n- [ ] `@sentry/browser`\r\n- [x] `@sentry/node`\r\n- [ ] `raven-js`\r\n- [ ] `raven-node` _(raven for node)_\r\n- [ ] other:\r\n\r\n### Version:\r\n\r\n```\r\n4.4.0\r\n```\r\n\r\n## Description\r\n\r\nWhen calling `Sentry.captureException` from an express middleware, the `url` field reported to Sentry is incorrect. It is almost always being reported as /health or /metrics (these are hit very frequently), even though the error happened on a totally different URL. I have `Sentry.Handlers.requestHandler()` as the first middleware and `Sentry.Handlers.errorHandler()` as the error middleware\r\n\r\nIs there a way to isolate the Sentry client for each request? Please let me know if you need more information","author":{"url":"https://github.com/tpbowden","@type":"Person","name":"tpbowden"},"datePublished":"2018-11-29T21:26:43Z","url":"https://github.com/getsentry/sentry-javascript/issues/1773"}
| 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:a1cdf406-372a-9425-4a9a-3da453037fc7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9090:1B5E62:32A725:46C3BE:6B043DB3 |
| html-safe-nonce | 2785d37e736e16dee08bf1a0913b7c920926caf70b47461d0441a7d2dbb08008 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDkwOjFCNUU2MjozMkE3MjU6NDZDM0JFOjZCMDQzREIzIiwidmlzaXRvcl9pZCI6IjExNjYzNzk1NDE2MTExNjcxNTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b37222b48286fcddf393aa38ff6d4378b24e4fe842ad6d76e408b1453a5533fb |
| hovercard-subject-tag | issue:385933094 |
| 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/1773/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e522f619fafdef7f2196058d1816ef554e2ef4ab1e5b93f0c4067282f7ecf08e/getsentry/sentry-javascript/issues/1773 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e522f619fafdef7f2196058d1816ef554e2ef4ab1e5b93f0c4067282f7ecf08e/getsentry/sentry-javascript/issues/1773 |
| og:image:alt | Package + Version @sentry/browser @sentry/node raven-js raven-node (raven for node) other: Version: 4.4.0 Description When calling Sentry.captureException from an express middleware, the url field ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tpbowden |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| 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 | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| 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