Title: Disable `createSpanUrlMap` · Issue #7060 · getsentry/sentry-javascript · GitHub
Open Graph Title: Disable `createSpanUrlMap` · Issue #7060 · getsentry/sentry-javascript
X Title: Disable `createSpanUrlMap` · Issue #7060 · 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/7060
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Disable `createSpanUrlMap`","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 package are you using?\r\n\r\n@sentry/node\r\n\r\n### SDK Version\r\n\r\n7.31.1\r\n\r\n### Framework Version\r\n\r\nn/a\r\n\r\n### Link to Sentry event\r\n\r\nn/a\r\n\r\n### SDK Setup\r\n\r\n```ts\r\nSentry.init({\r\n ...\r\n integrations: [\r\n new Sentry.Integrations.Http({\r\n tracing: {\r\n shouldCreateSpanForRequest: url => !url.includes('newrelic.com'),\r\n },\r\n }),\r\n ],\r\n});\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\n_See Actual Result_\r\n\r\n### Expected Result\r\n\r\n_See Actual Result_\r\n\r\n### Actual Result\r\n\r\nIn https://github.com/getsentry/sentry-javascript/blob/develop/packages/node/src/integrations/http.ts#L141-L156, `shouldCreateSpanForRequest` requests are cached in a map. This is intended behaviour with good thought, but a way to disable this would be good.\r\n\r\nIn our application, we are making a lot of network requests to a variety of different URLs that contain a many distinct combinations of many IDs. Over time, this has led to roughly 250 MB of strings only, stored in that very object.\\\r\nAs caching these lookups is not worth it in our case, an option would be good to disable this behaviour.\r\n\r\n","author":{"url":"https://github.com/jeengbe","@type":"Person","name":"jeengbe"},"datePublished":"2023-02-06T09:11:40Z","url":"https://github.com/getsentry/sentry-javascript/issues/7060"}
| 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:a81382bc-3920-7eed-453a-aac0ffca681c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B5C4:1B13E8:F30B4F:13B5055:6B04E872 |
| html-safe-nonce | e03ba55b847a0b14fa0c9f6731f5e77fbc0639bee8f4f843c2dc4fa968a51b5e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUM0OjFCMTNFODpGMzBCNEY6MTNCNTA1NTo2QjA0RTg3MiIsInZpc2l0b3JfaWQiOiIzMjkyNzQzMTQzMTk5NjY0MjQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 98058dd5a3f4af110d0b3d8ab3cecdb79d897fc7249f264999c774f985dc09c6 |
| hovercard-subject-tag | issue:1572192433 |
| 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/7060/issue_layout |
| twitter:image | https://opengraph.githubassets.com/365ddd428395a108ec30648dc681ef71bf694725fee5d8ccbe62227791e40836/getsentry/sentry-javascript/issues/7060 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/365ddd428395a108ec30648dc681ef71bf694725fee5d8ccbe62227791e40836/getsentry/sentry-javascript/issues/7060 |
| 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 | jeengbe |
| hostname | github.com |
| expected-hostname | github.com |
| None | f3851aad500d8e8dce736722ddc6fa9596e17d9fce3c53581eba968664c0bc32 |
| 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 | e29c922455fd8137f27e1cfcdf6a1e8b920b1926 |
| 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