Class: ManageEngine::Environment
- Inherits:
-
Object
- Object
- ManageEngine::Environment
- Defined in:
- lib/agent/server/instrument/environment.rb
Constant Summary collapse
- SUPPORTED_FRAMEWORKS =
[ ManageEngine::Instrumentation::RailsFramework.new, ManageEngine::Instrumentation::SinatraFramework.new ]
- DATABASE_INTERCEPTORS =
[ ManageEngine::Instrumentation::ActiveRecordSQL.new ]
- OTHER_INTERCEPTORS =
[ ManageEngine::Instrumentation::ActionView.new, ManageEngine::Instrumentation::SidekiqServer.new, ManageEngine::Instrumentation::PumaWorker.new ]
Instance Method Summary collapse
Instance Method Details
#detect_and_instrument ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/agent/server/instrument/environment.rb', line 26 def detect_and_instrument @framework ||= SUPPORTED_FRAMEWORKS.detect{ |framework| framework.present? } if (@framework != nil) @framework.instrument end DATABASE_INTERCEPTORS.each do |interceptor| if (interceptor.present?) interceptor.instrument end end OTHER_INTERCEPTORS.each do |interceptor| if (interceptor.present?) interceptor.instrument end end end |