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_process_id, #error_collector, #events, #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_metric_frame, insert_mobile_response_header, mobile_header_found_in?, obfuscate, timings

Methods included from Agent::InstanceMethods

#end_transaction, #forked?, #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

#add_rules_to_engine, #apdex_f, #connect_retry_period, #connect_settings, #connect_to_server, #connected?, #disconnect, #disconnected?, #environment_for_connect, #finish_setup, #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?, #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_names, #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.



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


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

def browser_timing_footer; "" end

#browser_timing_headerObject



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

def browser_timing_header; "" end

#merge_data_from(*args) ⇒ Object



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

def merge_data_from *args; end

#pop_trace_execution_flag(*args) ⇒ Object



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

def pop_trace_execution_flag *args; end

#push_trace_execution_flag(*args) ⇒ Object



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

def push_trace_execution_flag *args; 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