Class: NewRelic::Agent::ShimAgent

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

Overview

This agent is loaded by the plug when the plug-in is disabled It recreates just enough of the API to not break any clients that invoke the Agent.

Constant Summary

Constants inherited from Agent

Agent::PROTOCOL_VERSION

Instance Attribute Summary

Attributes inherited from Agent

#error_collector, #histogram, #metric_ids, #obfuscator, #record_sql, #should_send_errors, #stats_engine, #task_loop, #transaction_sampler

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Agent

#add_custom_parameters, #custom_params, #end_transaction, #log, #manual_start, #running?, #set_record_sql, #set_record_tt, #set_sql_obfuscator, #start_transaction, #started?

Constructor Details

#initializeShimAgent

Returns a new instance of ShimAgent.



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

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

Class Method Details

.instanceObject



5
6
7
# File 'lib/new_relic/agent/shim_agent.rb', line 5

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

Instance Method Details

#ensure_worker_thread_startedObject



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

def ensure_worker_thread_started; end

#pop_trace_execution_flag(*args) ⇒ Object



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

def pop_trace_execution_flag(*args); end

#push_trace_execution_flag(*args) ⇒ Object



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

def push_trace_execution_flag(*args); end

#shutdownObject



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

def shutdown; end

#start(*args) ⇒ Object



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

def start *args; end