Class: NewRelic::Agent::ShimAgent

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

Constant Summary

Constants inherited from Agent

Agent::PROTOCOL_VERSION

Instance Attribute Summary

Attributes included from Agent::InstanceMethods

#beacon_configuration, #error_collector, #metric_ids, #obfuscator, #record_sql, #sql_sampler, #stats_engine, #transaction_sampler, #url_rules

Attributes included from Agent::InstanceMethods::Connect

#connect_attempts, #connect_retry_period

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Agent::ClassMethods

#instance

Methods included from Agent::InstanceMethods

#connected?, #end_transaction, #log, #record_transaction, #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

#apdex_f, #apdex_f_threshold?, #config_transaction_tracer, #configure_error_collector!, #configure_transaction_tracer!, #connect_settings, #connect_to_server, #disconnect, #enable_random_samples!, #environment_for_connect, #finish_setup, #get_retry_period, #handle_license_error, #increment_retry_period!, #log_connection!, #log_error, #log_seed_token, #log_sql_transmission_warning?, #query_server_for_configuration, #set_collector_host!, #set_sql_recording!, #should_keep_retrying?, #should_retry?, #tried_to_connect?, #validate_settings

Methods included from Agent::InstanceMethods::StartWorkerThread

#catch_errors, #check_sql_sampler_status, #check_transaction_sampler_status, #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?, #check_config_and_start_agent, #connect_in_foreground, #correct_license_length, #disabled?, #has_correct_license_key?, #has_license_key?, #install_exit_handler, #log_app_names, #log_dispatcher, #log_if, #log_unless, #log_version_and_pid, #monitoring?, #notify_log_file_location, #using_forking_dispatcher?, #using_sinatra?, #weird_ruby?

Constructor Details

#initializeShimAgent

Returns a new instance of ShimAgent.



10
11
12
13
14
15
16
17
# File 'lib/new_relic/agent/shim_agent.rb', line 10

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



7
8
9
# File 'lib/new_relic/agent/shim_agent.rb', line 7

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

Instance Method Details

#after_fork(*args) ⇒ Object



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

def after_fork *args; end


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

def browser_timing_footer; "" end

#browser_timing_headerObject



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

def browser_timing_header; "" end

#merge_data_from(*args) ⇒ Object



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

def merge_data_from *args; end

#pop_trace_execution_flag(*args) ⇒ Object



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

def pop_trace_execution_flag *args; end

#push_trace_execution_flag(*args) ⇒ Object



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

def push_trace_execution_flag *args; end

#serializeObject



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

def serialize; end

#shutdown(*args) ⇒ Object



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

def shutdown *args; end

#start(*args) ⇒ Object



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

def start *args; end