GithubHelp home page GithubHelp logo

Comments (3)

tannalynn avatar tannalynn commented on July 2, 2024

Hello @fidalgo !
So, we don’t officially support Grape 1.3.0 in the agent yet, but from our testing we believe it should be working for you. What you’re seeing doesn’t appear to be an issue with the agent, it’s saying that it can’t instrument specific grape calls. This is likely because env is nil when it gets here https://github.com/newrelic/rpm/blob/29bc3e0bf6f4d11b21ced7fc38916b9e41f3a680/lib/new_relic/agent/instrumentation/grape.rb#L128-L129
So the next step would be to investigate in your code why env would be nil in this case.

from newrelic-ruby-agent.

mwlang avatar mwlang commented on July 2, 2024

@fidalgo I think your issue may be related to recent changes in Rack. please try setting your rack version to < 2.1.0 in your Gemfile like so:

gem 'rack', '< 2.1.0'

This is a known issue with Grape. I think the latest versions of Grape and Rack fixes, but it's currently untested by us. We do know Grape 1.3.0 works with older versions of Rack, hence the recommendation above to try first.

I am closing this issue with this comment, but if you find it doesn't resolve your issue, please reopen or escalate through our support channel where we can collect more information about your specific versions and environment to diagnose further.

from newrelic-ruby-agent.

magni- avatar magni- commented on July 2, 2024

So, we don’t officially support Grape 1.3.0 in the agent yet

Is Grape 1.3 (or 1.4) support planned?

We are seeing the same issue on Grape 1.3.3 + Rack 2.2.3, and would rather not downgrade either of these two dependencies.

from newrelic-ruby-agent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.