newrelic-grape
newrelic-grape copied to clipboard
All transations in New Relic collected under Proc#call
Did I miss anything?
@andoriyu sorry, what do you mean? anything wrong in newrelic-grape?
Basically it doesn't work with 3.9.x. All transactions grouped into single one.
@andoriyu I will try later
newrelic_rpm 3.9.x added support for middleware instrumentation. But all Grape transactions appear under Proc#call

Same here. Any way to fix this?
I spend sometime trying to fix that, but couldn't and simply checked out 3.8.x.
This gem is not compatible with automatic middleware instrumentation that was introduced in 3.9.0 NewRelic gem [1]. However you can disable this feature by setting disable_middleware_instrumentation: true in newrelic.yml[2].
Here [3] is an example how it can be implemented with keeping middleware instrumentation on.
[1] https://github.com/newrelic/rpm/blob/master/CHANGELOG [2] https://docs.newrelic.com/docs/ruby/rack-middlewares#disabling [3] https://gist.github.com/maciejmajewski/d4fe02efded8ebf3d31e
@maciejmajewski I see your gist, looks good, could you send me a pull request.
I don't have any grape project recently, it's a bit hard for me to maintain this repo, are you interested in maintaining it?
@flyerhzm I don't think I'll find time to maintain this gem, but I'll prepare later a pull-request to make it work correctly with latest NewRelic version
@maciejmajewski I would majorly appreciate that PR. :)
Would love to see a fix for this - I've tried to work around it myself, but can't seem to get anything working. I tried [3] om @maciejmajewski's post, but to no avail (everything still comes in under Proc#call)
Any pointers?
I will prepare a PR this week.
hi all, sorry for the late, but I have released newrelic-grape 2.0.0, which fix this issue, please try and let me know if it works, thanks
I still see Proc#call with 2.0.0 and newrelic_rpm 3.9.8.273. Am I missing anything?
same here with newrelic 3.9.9.275, downgraded to 3.8.1.221 and seems fine
Hey, issue still occurs on newrelic_rpm 3.10.0.279 and newrelic-grape 2.0.0.
Everything is fine with:
- newrelic-grape (2.0.0)
- newrelic_rpm (3.12.0.288)
Can be closed now.