Title: ThreadLocal Hubs should be cleaned up · Issue #2079 · getsentry/sentry-java · GitHub
Open Graph Title: ThreadLocal Hubs should be cleaned up · Issue #2079 · getsentry/sentry-java
X Title: ThreadLocal Hubs should be cleaned up · Issue #2079 · getsentry/sentry-java
Description: Problem Statement At the moment Hub instances are stored in ThreadLocal variables. They are never cleaned up and thus cause servers like Tomcat to issue warnings as can be seen here #2074, here #420 and here #487. While there are mechani...
Open Graph Description: Problem Statement At the moment Hub instances are stored in ThreadLocal variables. They are never cleaned up and thus cause servers like Tomcat to issue warnings as can be seen here #2074, here #42...
X Description: Problem Statement At the moment Hub instances are stored in ThreadLocal variables. They are never cleaned up and thus cause servers like Tomcat to issue warnings as can be seen here #2074, here #42...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/2079
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ThreadLocal Hubs should be cleaned up","articleBody":"### Problem Statement\n\nAt the moment Hub instances are stored in `ThreadLocal` variables. They are never cleaned up and thus cause servers like Tomcat to issue warnings as can be seen here #2074, here #420 and here #487. While there are mechanisms to clean up these leaks in Tomcat we should not rely on them and clean up instead.\r\n\r\nhttps://github.com/getsentry/sentry-java/blob/9f1af1c68c58570a731a65289183107d3c4f90d5/sentry/src/main/java/io/sentry/Sentry.java#L21\r\n\r\n\n\n### Solution Brainstorm\n\nWe may have to move away from `ThreadLocal` variables at some point to support Webflux and similar. Until then we could try and unset the `ThreadLocal` after a request is done (`ServletRequestListener.requestDestroyed`)","author":{"url":"https://github.com/adinauer","@type":"Person","name":"adinauer"},"datePublished":"2022-06-03T14:59:10Z","url":"https://github.com/getsentry/sentry-java/issues/2079"}
| 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:3c48a46f-54d0-2e5c-2d98-45b5c34cf691 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D68E:362421:9327FC:C93642:6B0481B3 |
| html-safe-nonce | 9d2727900ce646dc82a8ba1dc69d34c5201827dd3521e9dec87c68f4d60d8b15 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjhFOjM2MjQyMTo5MzI3RkM6QzkzNjQyOjZCMDQ4MUIzIiwidmlzaXRvcl9pZCI6IjI3Njk3OTYwNzI3OTE2Mzg0NTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8f6306dcd28f790cce903c0a789f79499d10085e242220441765203ae9b4687d |
| hovercard-subject-tag | issue:1260016764 |
| 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-java/2079/issue_layout |
| twitter:image | https://opengraph.githubassets.com/db3a6949f78e9993c17670642e3cd5eb5ccce1c95992ae4c702442a580f37f88/getsentry/sentry-java/issues/2079 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/db3a6949f78e9993c17670642e3cd5eb5ccce1c95992ae4c702442a580f37f88/getsentry/sentry-java/issues/2079 |
| og:image:alt | Problem Statement At the moment Hub instances are stored in ThreadLocal variables. They are never cleaned up and thus cause servers like Tomcat to issue warnings as can be seen here #2074, here #42... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | adinauer |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| 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 | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| 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