New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning about Channels memory leakage unclear #6261
Comments
Assigning to @getsentry/support for routing, due by Thursday, February 9th at 09:00 (yyz). ⏲️ |
there are a lot of nuances to how software can fail. you can get good instrumentation data and still have the SDK cause memory leaks.
the entire premise of this page is to help the user figure out, (or at least work around) spurious, deployment-specific issues with the SDK to which there is no single answer (or at least not a single googleable one) of course the SDK is supposed to not leak memory in your application. if you end up on this page you're already having a bad time with sentry.
In addition, and only when you experience that issue, as a potential workaround.
django 3 has been released with async support, and the SDK gained support it since then. the signals i am referring to have always been present in django, and as such they are also available for async views. I have found it hard to implement any sort of integration with django channels due to those missing signals and as such, instrumentation for applications using django channels is lacking or almost non-existent (for the particular areas where they use channels to handle requests) Is there a particular problem you're trying to solve? |
fair enough.
still, the inclusion of this note in the docs seems to indicate that [a] someone had a mental model of how such leaks might occur in practice, or [b] that actual people came forward with leaks that they had observed in practice. It would be helpful to know more about either of those cases to be able to determine beforehand whether my setup will start leaking memory before I actually deploy it.
Clear
In the linked issue you say "Be that as it may, Django 3 will have the signals we need, so I guess time will solve this." This was the final word on that issue. you requested such signals in the linked issue, presumably with an idea to hook up some behavior to them (to avoid memory leaks?). By now, the signals exist. It is not clear to me whether that presumption is correct, and if so whether any hooking-up was done.
The documentation contains a warning about a situation I'm trying to avoid. I'd rather understand whether the documentation is up-to-date, and whether it applies to my situation, before deploying my live application, than deploy and then running into some trouble. |
hey @vanschelven thanks for the feedback. These docs haven't been touched in a while. re: the memory leaks, I'm not sure if this is an issue anymore as well since we seem to wrap with |
Routing to @getsentry/team-web-sdk-backend for triage, due by Friday, February 10th at 5:00 pm (sfo). ⏲️ |
Core or SDK?
Platform/SDK
Which part? Which one?
python (django (channels))
Description
In the Python troubleshooting section it says
This is confusing on a number of levels:
sentry_sdk.init
, or instead of it?@untitaker probably knows most about this subject
Suggested Solution
Either remove this section (if the problem has since been solved) or provide clarification on the points 1 - 4.
The text was updated successfully, but these errors were encountered: