Class: OneApm::Rack::MiddlewareHooks
- Inherits:
-
MiddlewareBase
- Object
- MiddlewareBase
- OneApm::Rack::MiddlewareHooks
- Defined in:
- lib/one_apm/rack/middleware_hooks.rb
Constant Summary
Constants included from MiddlewareTracing
OneApm::Rack::MiddlewareTracing::OA_TXN_STARTED_KEY
Instance Attribute Summary
Attributes inherited from MiddlewareBase
#category, #target, #transaction_options
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from MiddlewareBase
#build_transaction_name, #initialize, #middleware_ignore?
Methods included from MiddlewareHelper
#close_old_response, #gather_source, #middleware_ignore?
Methods included from MiddlewareTracing
#_oa_has_middleware_tracing, #build_transaction_options, #call, #capture_http_response_code, #events, #merge_first_middleware_options, #note_transaction_started
Constructor Details
This class inherits a constructor from OneApm::Rack::MiddlewareBase
Class Method Details
.needed? ⇒ Boolean
9 10 11 |
# File 'lib/one_apm/rack/middleware_hooks.rb', line 9 def self.needed? !OneApm::Manager.config[:disable_rack_middleware] end |
Instance Method Details
#traced_call(env) ⇒ Object
13 14 15 |
# File 'lib/one_apm/rack/middleware_hooks.rb', line 13 def traced_call(env) @app.call(env) end |