newrelic: log country of each request in newrelic.

Log the country of each HTTP request in NewRelic. Uses the CF-IPCountry
header set by Cloudflare.
This commit is contained in:
evazion
2020-12-21 18:48:01 -06:00
parent efb836ac02
commit 6ac9882711
2 changed files with 9 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ class SessionLoaderTest < ActiveSupport::TestCase
@request.stubs(:cookie_jar).returns({})
@request.stubs(:parameters).returns({})
@request.stubs(:session).returns({})
@request.stubs(:headers).returns({})
SessionLoader.any_instance.stubs(:initialize_session_cookies)
end