Class: OneApm::Probe::Frameworks::Ruby

Inherits:
OneApm::Probe show all
Defined in:
lib/one_apm/frameworks/ruby.rb

Direct Known Subclasses

External, Rails, Sinatra

Instance Attribute Summary

Attributes included from InstanceMethods

#local_env

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

#envObject



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(options={})
end

#rootObject



16
17
18
# File 'lib/one_apm/frameworks/ruby.rb', line 16

def root
  @root ||= ENV['APP_ROOT'] || '.'
end