Title: HttpClient integration does not capture Axios requests · Issue #7615 · getsentry/sentry-javascript · GitHub
Open Graph Title: HttpClient integration does not capture Axios requests · Issue #7615 · getsentry/sentry-javascript
X Title: HttpClient integration does not capture Axios requests · Issue #7615 · 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/7615
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"HttpClient integration does not capture Axios requests","articleBody":"### Is there an existing issue for this?\r\n\r\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\r\n- [X] I have reviewed the documentation https://docs.sentry.io/\r\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\r\n\r\n### How do you use Sentry?\r\n\r\nSentry Saas (sentry.io)\r\n\r\n### Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g. `bundle.tracing.min.js`) in your SDK setup.\r\n\r\n@sentry/react\r\n\r\n### SDK Version\r\n\r\n7.45.0\r\n\r\n### Framework Version\r\n\r\nReact 18.2\r\n\r\n### Link to Sentry event\r\n\r\n_No response_\r\n\r\n### SDK Setup\r\n\r\n```tsx\r\nimport {\r\n ErrorBoundary,\r\n Replay,\r\n init as initSentry,\r\n Integrations,\r\n} from '@sentry/react'\r\nimport { BrowserTracing } from '@sentry/tracing'\r\nimport {\r\n HttpClient as HttpClientIntegration,\r\n Debug as DebugIntegration,\r\n} from '@sentry/integrations'\r\n\r\ninitSentry({\r\n dsn: __SENTRY_DSN__,\r\n release: __SENTRY_RELEASE__,\r\n dist: __SENTRY_DIST__,\r\n environment: import.meta.env.MODE,\r\n\r\n // debug: true,\r\n enabled: true,\r\n integrations: [\r\n new BrowserTracing(),\r\n // new Integrations.\r\n new Replay({\r\n maskAllText: false,\r\n maskAllInputs: false,\r\n blockAllMedia: false,\r\n }),\r\n new HttpClientIntegration({\r\n // failedRequestStatusCodes: [401],\r\n // failedRequestTargets: ['http://localhost:3005'],\r\n }),\r\n new DebugIntegration({\r\n // // trigger DevTools debugger instead of using console.log\r\n // debugger: true,\r\n // // stringify event before passing it to console.log\r\n // stringify: boolean;\r\n }),\r\n ],\r\n\r\n tracesSampleRate: 1,\r\n replaysSessionSampleRate: 1,\r\n replaysOnErrorSampleRate: 1,\r\n})\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\nWhen I add HttpClient, it cannot report XHR request. I am using Axios v1\r\n\r\n### Expected Result\r\n\r\nit will report XHR requests\r\n\r\n### Actual Result\r\n\r\nIt don't report any XHR requests. Even though the exception pointed directly to `_wrapXHR` function of Sentry\r\n\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/hckhanh","@type":"Person","name":"hckhanh"},"datePublished":"2023-03-26T04:08:24Z","url":"https://github.com/getsentry/sentry-javascript/issues/7615"}
| 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:bb654d12-4ad6-24b4-4b03-08c0a33de260 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 80CE:300DAE:6BC258:9423E4:6B04A75A |
| html-safe-nonce | 5e4d24f754900d4c89e1e053fb5757e798061051f420bf517177d7766ed3cfc7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MENFOjMwMERBRTo2QkMyNTg6OTQyM0U0OjZCMDRBNzVBIiwidmlzaXRvcl9pZCI6IjI4NzgyNzY2Nzc0MjE4MDMzNTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bf6883c8601093f8cc1f1386e181d1036a65063782a2d1f024de59cb814c66f4 |
| hovercard-subject-tag | issue:1640762813 |
| 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/7615/issue_layout |
| twitter:image | https://opengraph.githubassets.com/965163c033f7576a8608e8fcd583e2a5deacaea0d1987ae5c0b7e73f2d8284c0/getsentry/sentry-javascript/issues/7615 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/965163c033f7576a8608e8fcd583e2a5deacaea0d1987ae5c0b7e73f2d8284c0/getsentry/sentry-javascript/issues/7615 |
| 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 | hckhanh |
| hostname | github.com |
| expected-hostname | github.com |
| None | 188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b |
| 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 | 557cfbac6cdb532730c95c90f2cefdc0c4128029 |
| 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