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
Attributes included from LoggingMethods
Instance Method Summary collapse
Methods inherited from Ruby
#config_file, #root, #to_stdout
Methods included from ClassMethods
#instance, #load_framework_class, #load_test_framework, #local_env, #new_instance, #newrelic_root
Methods included from InstanceMethods
#agent_enabled?, #app, #init_plugin, #start_agent, #to_s
Methods included from LanguageSupport::Control
Methods included from LoggingMethods
#find_or_create_file_path, #log, #log!, #log_file_name, #log_path, #log_to_stdout?, #set_log_format!, #set_log_level!, #setup_log, #should_log?, #to_stdout
Methods included from Instrumentation
#add_instrumentation, #install_instrumentation, #install_shim, #load_instrumentation_files, #load_samplers
Methods included from ServerMethods
#api_server, #cert_file_path, #convert_to_ip_address, #http_connection, #proxy_server, #resolve_ip_address, #server, #server_from_host
Methods included from Configuration
#[], #[]=, #apdex_t, #app_names, #browser_monitoring_auto_instrument?, #capture_params, #developer_mode?, #disable_backtrace_cleanup?, #disable_serialization=, #disable_serialization?, #dispatcher, #dispatcher_instance_id, #fetch, #has_slow_sql_config?, #license_key, #log_file_path, #merge_defaults, #merge_options, #merge_server_side_config, #monitor_mode?, #multi_threaded?, #post_size_limit, #remove_server_controlled_configs, #send_data_on_exit, #settings, #sync_startup, #use_ssl?, #use_textmate?, #validate_seed, #validate_token, #verify_certificate?
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 |