Class: NewRelic::Control

Inherits:
Object
  • Object
show all
Extended by:
ClassMethods
Includes:
Configuration, InstanceMethods, Instrumentation, LoggingMethods, Profiling, ServerMethods, LanguageSupport::Control
Defined in:
lib/new_relic/control.rb,
lib/new_relic/control/profiling.rb,
lib/new_relic/control/frameworks.rb,
lib/new_relic/control/class_methods.rb,
lib/new_relic/control/configuration.rb,
lib/new_relic/control/server_methods.rb,
lib/new_relic/control/frameworks/merb.rb,
lib/new_relic/control/frameworks/ruby.rb,
lib/new_relic/control/instrumentation.rb,
lib/new_relic/control/logging_methods.rb,
lib/new_relic/control/frameworks/rails.rb,
lib/new_relic/control/instance_methods.rb,
lib/new_relic/control/frameworks/rails3.rb,
lib/new_relic/control/frameworks/sinatra.rb,
lib/new_relic/control/frameworks/external.rb

Overview

The Control is a singleton responsible for the startup and initialization sequence. The initializer uses a LocalEnvironment to detect the framework and instantiates the framework specific subclass.

The Control also implements some of the public API for the agent.

Direct Known Subclasses

Frameworks::Merb, Frameworks::Ruby

Defined Under Namespace

Modules: ClassMethods, Configuration, Frameworks, InstanceMethods, Instrumentation, LoggingMethods, Profiling, ServerMethods Classes: ProxyServer, Server

Instance Attribute Summary

Attributes included from InstanceMethods

#env, #local_env

Attributes included from LoggingMethods

#log_file

Method Summary

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

included

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?