Class: NewRelic::Control::Frameworks::Merb
- Inherits:
-
NewRelic::Control
- Object
- NewRelic::Control
- NewRelic::Control::Frameworks::Merb
- Defined in:
- lib/new_relic/control/frameworks/merb.rb
Instance Attribute Summary
Attributes inherited from NewRelic::Control
Attributes included from LoggingMethods
Instance Method Summary collapse
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?
Methods included from Profiling
#profiling=, #profiling?, #profiling_available?
Instance Method Details
#env ⇒ Object
3 4 5 |
# File 'lib/new_relic/control/frameworks/merb.rb', line 3 def env @env ||= ::Merb.env end |
#init_config(options = {}) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/new_relic/control/frameworks/merb.rb', line 16 def init_config ={} ::Merb::Plugins.add_rakefiles File.join(newrelic_root,"lib/tasks/all.rb") # Merb gives you a Merb::Plugins.config hash...feel free to put your stuff in your piece of it ::Merb::Plugins.config[:newrelic] = { :config => self } end |
#root ⇒ Object
6 7 8 |
# File 'lib/new_relic/control/frameworks/merb.rb', line 6 def root ::Merb.root end |
#to_stdout(msg) ⇒ Object
10 11 12 13 14 |
# File 'lib/new_relic/control/frameworks/merb.rb', line 10 def to_stdout(msg) Merb.logger.info("NewRelic ~ " + msg) rescue Exception => e STDOUT.puts "NewRelic ~ " + msg end |