Class: NewRelic::Control::Frameworks::Sinatra
- Inherits:
-
Ruby
- Object
- NewRelic::Control
- Ruby
- NewRelic::Control::Frameworks::Sinatra
- Defined in:
- lib/new_relic/control/frameworks/sinatra.rb
Overview
Contains basic control logic for Sinatra
Instance Attribute Summary
Attributes included from InstanceMethods
Instance Method Summary collapse
Methods inherited from Ruby
Methods included from ClassMethods
#instance, #load_framework_class, #load_test_framework, #local_env, #new_instance, #newrelic_root, #reset
Methods included from InstanceMethods
#[], #app, #dispatcher, #framework, #init_plugin, #newrelic_root, #settings, #start_agent
Methods included from LanguageSupport::Control
Methods included from Instrumentation
#add_instrumentation, #install_instrumentation, #install_shim, #load_instrumentation_files, #load_samplers
Methods included from ServerMethods
#api_server, #convert_to_ip_address, #proxy_server, #resolve_ip_address, #server, #server_from_host
Methods included from Profiling
#profiling=, #profiling?, #profiling_available?
Instance Method Details
#env ⇒ Object
9 10 11 |
# File 'lib/new_relic/control/frameworks/sinatra.rb', line 9 def env @env ||= ENV['RACK_ENV'] || ENV['RAILS_ENV'] || 'development' end |
#init_config(options = {}) ⇒ Object
13 14 15 |
# File 'lib/new_relic/control/frameworks/sinatra.rb', line 13 def init_config(={}) super end |