Class: NewRelic::Control::Sinatra

Inherits:
Ruby show all
Defined in:
lib/new_relic/control/sinatra.rb

Instance Attribute Summary

Attributes inherited from NewRelic::Control

#local_env, #log_file

Instance Method Summary collapse

Methods inherited from Ruby

#config_file, #root, #to_stdout

Methods inherited from NewRelic::Control

#[], #[]=, #add_instrumentation, #agent_enabled?, #apdex_t, #api_server, #app, #app_names, #capture_params, #developer_mode?, #dispatcher, #dispatcher_instance_id, #fetch, format_message, #http_connection, #init_plugin, #install_instrumentation, #install_shim, instance, #license_key, #load_samplers, #log, #log!, #monitor_mode?, #multi_threaded?, #post_size_limit, #profiling=, #profiling?, #profiling_available?, #proxy_server, #server, #server_from_host, #settings, #start_agent, #sync_startup, #to_s, #use_ssl?, #use_textmate?, #validate_seed, #validate_token, #verify_certificate?

Instance Method Details

#envObject



6
7
8
# File 'lib/new_relic/control/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/sinatra.rb', line 14

def init_config(options={})
  super
end