Sha256: ce3c4bae7c32100d6a0bb3f3cd77c9388262aac595cf5233717a33cc417dae19

Contents?: true

Size: 1.07 KB

Versions: 15

Compression:

Stored size: 1.07 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
        @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_for_endpoint *args; end
      def push_trace_execution_flag *args; end
      def pop_trace_execution_flag *args; end
      def browser_timing_header; "" end
      def browser_timing_footer; "" end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
newrelic_rpm-3.12.0.288 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-3.11.2.286 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-3.11.1.284 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-3.11.0.283 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-3.10.0.279 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-3.9.9.275 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-3.9.8.273 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-3.9.7.266 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-3.9.6.257 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-3.9.5.251 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-3.9.4.245 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-3.9.3.241 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-3.9.2.239 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-3.9.1.236 lib/new_relic/agent/shim_agent.rb
newrelic_rpm-3.9.0.229 lib/new_relic/agent/shim_agent.rb