Sha256: 8a3d1426328bf65e4f939c959af65d5bc0698f08cb8548dbf9f100ee47a1da38

Contents?: true

Size: 876 Bytes

Versions: 15

Compression:

Stored size: 876 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.
module NewRelic
  module Agent
    class 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
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
newrelic_rpm-2.14.1.logging1 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.14.1 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.14.0 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.13.6.beta2 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.13.6.beta1 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.13.5.beta4 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.13.5.beta3 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.13.5.beta2 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.13.5.beta1 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.13.4 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.13.3 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.13.3.beta lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.13.2 lib/new_relic/agent/shim_agent.rb
honkster-newrelic_rpm-2.13.1 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-2.13.1 lib/new_relic/agent/shim_agent.rb