-
Notifications
You must be signed in to change notification settings - Fork 504
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
No request data with django #267
Comments
The tags you see are generated serverside and are inferred from HTTP headers and the current URL. All of this should be there when you turn on the Django integration. We're using this for Sentry itself and it generally is supposed to work. From what you've told me it seems that you generally have no request data attached to your events. Could you paste the exact code you're using, and more importantly, where do you call |
@bluesurfer any update on this? This seems like a bug in the SDK, even if just a UX bug. |
@untitaker oops, sorry for delay.. I just put the docs code (with init sentry) at the end of my settings file and I haven't defined any
Yes, that's the issue. My previously working logging configuration with Raven was:
Than using sentry-sdk I simply replaced it with:
|
Which version of Django and Python are you using? |
@untitaker Django 2.1.7 with python 3.6.7. Also I am using Channels |
I am also experiencing the same thing. Very similar setup to the one described by @bluesurfer. The Raven Python setup included a 'Cookies' section as well as better 'User' information (these both seem to be Django I am using Django 1.11.20, Python 3.6.7 and was trying Sentry 0.8.0. |
@bcollazo @untitaker I have some updates. I am following cookiecutter-django repository to lay down my project. It seems that with recent updates (also from sentry-sdk) the following configuration to me is working:
Therefore to me this issue could be closed. |
Ah that's neat, I wasn't aware of cookiecutter/cookiecutter-django#1820! Tbh I think it's highly unlikely that @bluesurfer has the same actual problem as you, @bcollazo. Could you open a new issue with more information? |
We are also facing the same issue We are not getting the Django request data info in sentry console with updated sentry SDK With old raven Django client, there is no issue about getting request data in sentry We are getting request data in sentry console, only if there is some exception raised before our program did access the request.body We are getting |
@anush0247 could you link an event that exhibits this behavior? |
@untitaker any update ? |
Still working on it, I think I know what the issue is. Thanks for the
information so far!
…On Wed, Jun 19, 2019 at 5:59 AM Aneesh Kumar ***@***.***> wrote:
@untitaker <https://github.com/untitaker> any update ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#267?email_source=notifications&email_token=AAGMPRJG6AOIRCY7X67MWO3P3GVKHA5CNFSM4GYLHTG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYATSHA#issuecomment-503396636>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGMPRPMLESYODSOIVP2YW3P3GVKHANCNFSM4GYLHTGQ>
.
|
PR at #393... I am pretty sure the issue is with django-rest-framework and not Django. |
0.9.1 is out with this fix :) I hope it fixes all cases, but certainly should fix a few of them |
@untitaker I am getting circular settings import issue after upgrading to 0.9.1 please check below stack trace once
|
@anush0247 the issue has been reported as #397 and is fixed in 0.9.2 :) |
@untitaker thank you it's working now |
I recently decided to switch from Raven to
sentry-sdk
version 0.7.3.When an event was reported using Raven I use to have many useful tags (the URLs originating the error, the user browser/device, OS information and much more). All this comes out of the box without the need to include any scripts in the frontend.
Despite sentry-sdk has simplified the configuration process I find myself with a weaker error tracking system (fewer information on each event).
I am working on a Django project and followed the docs
Am I missing something?
The text was updated successfully, but these errors were encountered: