-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Report endpoint_call.grape which includes the whole stack #2021
base: master
Are you sure you want to change the base?
Conversation
Rubocop limit was increased previously too 28d34ee#diff-74423563ec7c74f4cb7f74689b49e7c1R47, and I believe to refactor it, a person should a better insight about grape than I have. So I increased limit by 3 lines too |
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.
Feels a little light on specs and the failures look legit, too. Try to write specs that highlight the difference between these two instrumentations (the existing and the new)?
#### endpoint_run.grape | ||
|
||
The main execution of an endpoint, includes filters and rendering. | ||
Similar to `endpoint_call.grape` but does not include middlewares, thus might be inaccurate. |
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.
I think "inaccurate" is incorrect. I think here we want to highlight what this does, as opposed to what it doesn't. Maybe "Execution of the endpoint, excluding filters, middlewares or execution inside rescue_from blocks." + explain what happens during an exception?
#### endpoint_run.grape | ||
|
||
The main execution of an endpoint, includes filters and rendering. | ||
Similar to `endpoint_call.grape` but does not include middlewares, thus might be inaccurate. | ||
One more difference that it returns original exceptions, before `rescue_from` handlers. |
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.
Should be part of the text above. But this is unclear. What does "returns" mean here?
Thanks for the review. Will try to fix the issues later today or tomorrow |
Version 1.6.2
@Kukunin bumping myself on top of your list! |
hi @dblock. do you mean that it'd be good to finalize and get this PR merged? If yes, then it's something I can do |
Yes, please! Rebase & al. I know it's old but I think we still want it. |
Fixes #2010
To keep the backward compatibility, I introduced a new event. The integration works fine in my project with this change.