Sha256: ea81f732b0973fb4e81f06459dcd9d71cc9a8b1178e8bcab3fcdca73c1af6567

Contents?: true

Size: 485 Bytes

Versions: 4

Compression:

Stored size: 485 Bytes

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.

require 'new_relic/agent/instrumentation/rack'

class TestingApp

  attr_accessor :response, :headers

  def initialize
    reset_headers
  end

  def reset_headers
    @headers = {'Content-Type' => 'text/html'}
  end

  def call(env)
    [200, headers, [response]]
  end

  include NewRelic::Agent::Instrumentation::Rack
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
newrelic_rpm-3.6.7.159 test/multiverse/suites/agent_only/testing_app.rb
newrelic_rpm-3.6.7.159.beta test/multiverse/suites/agent_only/testing_app.rb
newrelic_rpm-3.6.7.152 test/multiverse/suites/agent_only/testing_app.rb
newrelic_rpm-3.6.6.147 test/multiverse/suites/agent_only/testing_app.rb