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

#error_collector, #histogram, #metric_ids, #obfuscator, #record_sql, #stats_engine, #transaction_sampler, #url_rules

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Agent::ClassMethods

#instance

Methods included from Agent::InstanceMethods

#connected?, #end_transaction, #log, #manual_start, #record_transaction, #reset_stats, #set_record_sql, #set_record_tt, #set_sql_obfuscator, #start_transaction, #started?

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
  @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



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

#pop_trace_execution_flag(*args) ⇒ Object



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

def pop_trace_execution_flag(*args); end

#push_trace_execution_flag(*args) ⇒ Object



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

def push_trace_execution_flag(*args); end

#shutdownObject



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

def shutdown; end

#start(*args) ⇒ Object



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

def start *args; end