Class: OneApm::Probe::Frameworks::Ruby
- Inherits:
-
OneApm::Probe
- Object
- OneApm::Probe
- OneApm::Probe::Frameworks::Ruby
- Defined in:
- lib/one_apm/frameworks/ruby.rb
Instance Attribute Summary
Attributes included from InstanceMethods
Instance Method Summary collapse
Methods included from OneApm::Probe::FrameworkLoader
#init, #instance, #load_framework_class, #load_test_framework, #local_env, #new_instance, #oneapm_root, #reset
Methods included from InstanceMethods
#app, #configure_agent, #dispatcher, #framework, #init_plugin, #oneapm_root, #settings, #start_agent
Methods included from Instrumentation
#add_instrumentation, #detect_dependencies, #install_instrumentation, #install_shim, #load_instrumentation_files, #require_instrumentation
Instance Method Details
#env ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/one_apm/frameworks/ruby.rb', line 8 def env @env ||= ENV['ONEAPM_ENV'] || ENV['RUBY_ENV'] || ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development' end |
#init_config(options = {}) ⇒ Object
20 21 |
# File 'lib/one_apm/frameworks/ruby.rb', line 20 def init_config(={}) end |
#root ⇒ Object
16 17 18 |
# File 'lib/one_apm/frameworks/ruby.rb', line 16 def root @root ||= ENV['APP_ROOT'] || '.' end |