Class: NewRelic::Agent::ShimAgent
- Inherits:
-
Agent
- Object
- Agent
- NewRelic::Agent::ShimAgent
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, #stats_engine, #transaction_sampler
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Agent
#end_transaction, #log, #manual_start, #reset_stats, #set_record_sql, #set_record_tt, #set_sql_obfuscator, #start_transaction, #started?
Constructor Details
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
.instance ⇒ Object
5
6
7
|
# File 'lib/new_relic/agent/shim_agent.rb', line 5
def self.instance
@instance ||= self.new
end
|
Instance Method Details
#after_fork(*args) ⇒ Object
16
|
# File 'lib/new_relic/agent/shim_agent.rb', line 16
def after_fork *args; 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
|
#shutdown ⇒ Object
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
|