Sha256: 8f26134c94b983a8b90a7e17a3c82b16cba5e597d0a6296f8ee55d63921575cd
Contents?: true
Size: 640 Bytes
Versions: 4
Compression:
Stored size: 640 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 raise "Intentional error" if params["raise"] [200, {}, ["Filters applied"]] end end
Version data entries
4 entries across 4 versions & 1 rubygems