Class: NewRelic::Agent::ShimAgent

Inherits:
Agent
  • Object
show all
Defined in:
lib/new_relic/agent/shim_agent.rb

Instance Attribute Summary

Attributes included from Agent::InstanceMethods

#beacon_configuration, #cross_app_encoding_bytes, #cross_app_monitor, #cross_process_id, #error_collector, #events, #harvest_samplers, #metric_rules, #obfuscator, #record_sql, #service, #sql_sampler, #stats_engine, #thread_profiler, #transaction_rules, #transaction_sampler

Attributes included from Agent::InstanceMethods::Connect

#connect_attempts

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Configuration::Instance

#config, #reset_config

Methods included from Agent::ClassMethods

#instance

Methods included from BrowserMonitoring

beacon_url, browser_monitoring_app_time, browser_monitoring_queue_time, browser_monitoring_start_time, browser_monitoring_transaction_name, clamp_to_positive, current_transaction, insert_mobile_response_header, mobile_header_found_in?, obfuscate, timings

Methods included from Agent::InstanceMethods

#add_harvest_sampler, #agent_should_start?, #end_transaction, #record_transaction, #reset_objects_with_locks, #reset_stats, #set_record_sql, #set_record_tt, #start_transaction, #started?, #unsent_errors_size, #unsent_timeslice_data, #unsent_traces_size

Methods included from Agent::InstanceMethods::Connect

#add_rules_to_engine, #apdex_f, #connect_retry_period, #connect_settings, #connect_to_server, #connected?, #disconnect, #disconnected?, #environment_for_connect, #finish_setup, #generate_environment_report, #handle_license_error, #handle_unrecoverable_agent_error, #log_collector_messages, #log_connection!, #log_error, #note_connect_failure, #query_server_for_configuration, #should_connect?

Methods included from Agent::InstanceMethods::StartWorkerThread

#catch_errors, #create_and_run_worker_loop, #deferred_work!, #handle_force_disconnect, #handle_force_restart, #handle_other_error, #handle_server_connection_problem, #log_worker_loop_start

Methods included from Agent::InstanceMethods::Start

#already_started?, #app_name_configured?, #check_config_and_start_agent, #connect_in_foreground, #correct_license_length, #defer_for_resque?, #disabled?, #has_correct_license_key?, #has_license_key?, #install_exit_handler, #log_app_name, #log_dispatcher, #log_environment, #log_if, #log_startup, #log_unless, #log_version_and_pid, #monitoring?, #using_forking_dispatcher?, #using_sinatra?, #weird_ruby?

Constructor Details

#initializeShimAgent

Returns a new instance of ShimAgent.



14
15
16
17
18
19
20
21
# File 'lib/new_relic/agent/shim_agent.rb', line 14

def initialize
  super
  @stats_engine.extend NewRelic::Agent::StatsEngine::Shim
  @stats_engine.extend NewRelic::Agent::StatsEngine::Transactions::Shim
  @transaction_sampler.extend NewRelic::Agent::TransactionSampler::Shim
  @sql_sampler.extend NewRelic::Agent::SqlSampler::Shim
  @error_collector.extend NewRelic::Agent::ErrorCollector::Shim
end

Class Method Details

.instanceObject



11
12
13
# File 'lib/new_relic/agent/shim_agent.rb', line 11

def self.instance
  @instance ||= self.new
end

Instance Method Details

#after_fork(*args) ⇒ Object



22
# File 'lib/new_relic/agent/shim_agent.rb', line 22

def after_fork *args; end


29
# File 'lib/new_relic/agent/shim_agent.rb', line 29

def browser_timing_footer; "" end

#browser_timing_headerObject



28
# File 'lib/new_relic/agent/shim_agent.rb', line 28

def browser_timing_header; "" end

#merge_data_from(*args) ⇒ Object



25
# File 'lib/new_relic/agent/shim_agent.rb', line 25

def merge_data_from *args; end

#pop_trace_execution_flag(*args) ⇒ Object



27
# File 'lib/new_relic/agent/shim_agent.rb', line 27

def pop_trace_execution_flag *args; end

#push_trace_execution_flag(*args) ⇒ Object



26
# File 'lib/new_relic/agent/shim_agent.rb', line 26

def push_trace_execution_flag *args; end

#shutdown(*args) ⇒ Object



24
# File 'lib/new_relic/agent/shim_agent.rb', line 24

def shutdown *args; end

#start(*args) ⇒ Object



23
# File 'lib/new_relic/agent/shim_agent.rb', line 23

def start *args; end