Sha256: 913fef4a765697134e0dde6481368ee9f9836ee211f458dd6316ed59ca5caee9

Contents?: true

Size: 782 Bytes

Versions: 13

Compression:

Stored size: 782 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 after_fork *args; 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

13 entries across 13 versions & 2 rubygems

Version Path
onyx_newrelic_rpm-2.12.5 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.13.0.beta5 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.13.0.beta4 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.13.0.beta3 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.12.3 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.12.2 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.12.2.beta2 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.12.2.beta lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.12.1 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.12.1.alpha lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.12.0 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.11.3 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.11.2 lib/new_relic/agent/shim_agent.rb