Sha256: 3843003014e1427f9da84268b03c9400039e035e69525e22b9a1c79e5ed1a713

Contents?: true

Size: 684 Bytes

Versions: 4

Compression:

Stored size: 684 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.

# This is a simple test app for testing parameter filtering as provided by
# the NewRelic::Agent:ParameterFiltering module.

class FilteringTestApp
  def call(env)
    req = Rack::Request.new(env)
    txn = ::NewRelic::Agent::Transaction.tl_current
    params = req.params
    filtered = ::NewRelic::Agent::ParameterFiltering.apply_filters(env, params)
    txn.filtered_params = filtered
    txn.merge_request_parameters(filtered)
    raise "Intentional error" if params["raise"]
    [200, {}, ["Filters applied"]]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
newrelic_rpm-4.1.0.333 test/new_relic/filtering_test_app.rb
newrelic_rpm-4.0.0.332 test/new_relic/filtering_test_app.rb
newrelic_rpm-3.18.1.330 test/new_relic/filtering_test_app.rb
newrelic_rpm-3.18.0.329 test/new_relic/filtering_test_app.rb