-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[12.0] [IMP] sentry: migrate sentry-raven to new api sentry-sdk #1942
Conversation
Could you check if we can remove |
For the record, I had needed before to have this value and I just use the following PR to add it manually: Now it is auto-generated. |
For the record,
|
ff5b48d
to
28c0d3a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this great and needed work.
Didn't had time to test it yet, some remarks from the code review.
fa685db
to
12d0d72
Compare
2d31c18
to
585ade3
Compare
585ade3
to
ef33c6b
Compare
Any updates on this guys? |
We are waiting for approves I mean, we need almost 2 approves to install and configure this module with this new change and do feedback or approve. Fell free to test it, please |
I have deployed and ran this PR successfully on Odoo instance running on Odoo.sh ping @moylop260 @hparfr @fernandahf |
I tested this PR. It works fine on my local. I'm able to see the errors in sentry, however, I'm unable to see anything in the performance screen. Is it expected? |
Not sure if this is relavant, but how could we enhance the presentation of model object in sentry, like |
What is the performance screen? I searched but didn't find it. Regards. |
@fernandahf Check the below screenshot. Here are the link to official docs: https://docs.sentry.io/product/performance/ |
@fernandahf Did you get time to look at it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
What's the status here? |
We are waiting for approves I mean, we need almost 1 approve to install and configure this module with this new change and do feedback or approve. Fell free to test it, please |
I tested the code in this branch on Odoo 14 and I can confirm that issues are being correctly sent to Sentry. Although the performance feature is sending data, it's really vague and rather pointless. I intentionally ran some excessively slow requests to see the trace, ideally starting from the HTTP request all the way to the database query or the compute methods responsible, but no details were included: Also, there is no frontend tracking via JavaScript: I'm not sure if it's a bug, but when I added P.S.: It wasn't working at first which threw me off for a while, but I later figured out it was because I was running Odoo via PyCharm's debug mode and it didn't send anything. |
I figured out the frontend issue and performance tracking. With a simple template it's possible to inject Sentry's JavaScript bundle:
I believe if we enable But still, the backend traces are not offering a detailed breakdown of what the request consisted of. |
@moylop260 would you mind taking a look at this one? I believe that all the discussions are resolved and it's waiting for your approval so far |
Let's do it |
/ocabot merge major |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at b370e86. Thanks a lot for contributing to OCA. ❤️ |
Is this issue already resolved and ready to use now on v14? |
It's not in forward-ported yet, but there is one PR related to v14.0 |
Description of the issue/feature this PR addresses:
Current behavior before PR: events sent for sentry-raven with context, excluding loggers, exceptions and filtering sense data. In fact, Sentry warns about migrate to new api:
Desired behavior after PR is merged: events sent for sentry-sdk with context, excluding loggers, exceptions and filtering sensitive data, show events in sentry sdk without warning about update api. Sentry just shows sentry-sdk version without warning migrate.
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr