Sha256: 8b706e96a8f844dbdba1b957a04185dd8a7b335990a0e52e8f6a7b418350f135

Contents?: true

Size: 1.18 KB

Versions: 7

Compression:

Stored size: 1.18 KB

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

# 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
        @stats_engine.extend NewRelic::Agent::StatsEngine::Shim
        @stats_engine.extend NewRelic::Agent::StatsEngine::Transactions::Shim
        @transaction_sampler.extend NewRelic::Agent::TransactionSampler::Shim
        @sql_sampler.extend NewRelic::Agent::SqlSampler::Shim
        @error_collector.extend NewRelic::Agent::ErrorCollector::Shim
      end
      def after_fork *args; end
      def start *args; end
      def shutdown *args; end
      def merge_data_from *args; end
      def push_trace_execution_flag *args; end
      def pop_trace_execution_flag *args; end
      def browser_timing_header; "" end
      def browser_timing_config; "" end
      def browser_timing_footer; "" end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
newrelic_rpm-3.7.2.195 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-3.7.2.192 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-3.7.2.190.beta lib/new_relic/agent/shim_agent.rb
newrelic_rpm-3.7.1.188 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-3.7.1.182 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-3.7.1.180 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-3.7.0.177 lib/new_relic/agent/shim_agent.rb