| Class | NewRelic::Agent::Instrumentation::MiddlewareProxy |
| In: |
lib/new_relic/agent/instrumentation/middleware_proxy.rb
|
| Parent: | Object |
| ANONYMOUS_CLASS | = | "AnonymousClass".freeze unless defined?(ANONYMOUS_CLASS) |
| OBJECT_CLASS_NAME | = | "Object".freeze unless defined?(OBJECT_CLASS_NAME) |
| category | [R] | |
| target | [R] | |
| transaction_options | [R] |
In ‘normal’ usage, the target will be an application instance that responds to call. With Rails, however, the target may be a subclass of Rails::Application that defines a method_missing that proxies call to a singleton instance of the the subclass. We need to ensure that we capture the correct name in both cases.