Sha256: 342a25a92004104af8d3f564633cbc7a1700f89a80889ce3b1032d9046a54f40

Contents?: true

Size: 794 Bytes

Versions: 7

Compression:

Stored size: 794 Bytes

Contents

# 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.
class NewRelic::Agent::ShimAgent < NewRelic::Agent::Agent
  def self.instance
    @instance ||= self.new
  end  
  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
  def ensure_worker_thread_started; end
  def start *args; end
  def shutdown; end
  def push_trace_execution_flag(*args); end
  def pop_trace_execution_flag(*args); end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
newrelic_rpm-2.10.8 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.10.6 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.10.5 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.10.4 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.10.3 lib/new_relic/agent/shim_agent.rb
factorylabs-newrelic_rpm-2.10.2.2 lib/new_relic/agent/shim_agent.rb
genki-newrelic_rpm-2.10.1 lib/new_relic/agent/shim_agent.rb