Skip to content
This repository has been archived by the owner on Aug 25, 2020. It is now read-only.

uninitialized constant NewRelic::Agent::Instrumentation::MiddlewareProxy is swallowed #30

Open
dblock opened this issue Oct 31, 2015 · 1 comment

Comments

@dblock
Copy link
Contributor

dblock commented Oct 31, 2015

If NewRelic::Agent::Instrumentation::MiddlewareProxy is not defined, the error is silently swallowed in https://github.com/xinminlabs/newrelic-grape/blob/master/lib/newrelic-grape/instrument.rb#L56. The executes blocks should probably have an exception handler and fail loudly.

Upgrading mongoid4 - mongoid5 in a Grape project caused this, but I wasn't able to find out how. The fix was to explicitly require the middleware proxy.

require 'new_relic/agent/instrumentation/middleware_proxy'
@dblock dblock changed the title uninitialized constant NewRelic::Agent::Instrumentation::MiddlewareProxy uninitialized constant NewRelic::Agent::Instrumentation::MiddlewareProxy is swallowed Oct 31, 2015
@dblock
Copy link
Contributor Author

dblock commented Dec 8, 2015

Improved in #32, logging error to STDERR at least.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant