Class: NewRelic::Control::Frameworks::Sinatra
- Inherits:
-
Ruby
- Object
- NewRelic::Control
- Ruby
- NewRelic::Control::Frameworks::Sinatra
- Defined in:
- lib/new_relic/control/frameworks/sinatra.rb
Instance Attribute Summary
Attributes inherited from NewRelic::Control
Attributes included from LoggingMethods
Instance Method Summary collapse
- #env ⇒ Object
-
#init_config(options = {}) ⇒ Object
This is the control used when starting up in the context of The New Relic Infrastructure Agent.
Methods inherited from Ruby
#config_file, #root, #to_stdout
Methods inherited from NewRelic::Control
#agent_enabled?, #app, #init_plugin, #start_agent, #to_s
Methods included from ClassMethods
#instance, #new_instance, #newrelic_root
Methods included from Instrumentation
#_delayed_instrumentation, #add_instrumentation, #install_instrumentation, #install_shim, #load_instrumentation_files, #load_samplers
Methods included from ServerMethods
#api_server, #convert_to_ip_address, #http_connection, #proxy_server, #server, #server_from_host
Methods included from Configuration
#[], #[]=, #apdex_t, #app_names, #capture_params, #developer_mode?, #dispatcher, #dispatcher_instance_id, #episodes_enabled?, #fetch, #license_key, #merge_defaults, #merge_options, #monitor_mode?, #multi_threaded?, #post_size_limit, #send_data_on_exit, #settings, #sync_startup, #use_ssl?, #use_textmate?, #validate_seed, #validate_token, #verify_certificate?
Methods included from LoggingMethods
#log, #log!, #log_file_name, #log_path, #setup_log, #should_log?, #to_stdout
Methods included from Profiling
#profiling=, #profiling?, #profiling_available?
Instance Method Details
#env ⇒ Object
6 7 8 |
# File 'lib/new_relic/control/frameworks/sinatra.rb', line 6 def env @env ||= ENV['RACK_ENV'] || ENV['RAILS_ENV'] || 'development' end |
#init_config(options = {}) ⇒ Object
This is the control used when starting up in the context of The New Relic Infrastructure Agent. We want to call this out specifically because in this context we are not monitoring the running process, but actually external things.
14 15 16 |
# File 'lib/new_relic/control/frameworks/sinatra.rb', line 14 def init_config(={}) super end |