From a8f9ab634af3e9f734052b8c7af54b9ed2292971 Mon Sep 17 00:00:00 2001 From: Fabiano Martins Date: Tue, 4 Feb 2025 23:40:09 -0300 Subject: [PATCH] Add Newrelic instrumentation configuration file --- newrelic.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 newrelic.js diff --git a/newrelic.js b/newrelic.js new file mode 100644 index 00000000..2382ffcc --- /dev/null +++ b/newrelic.js @@ -0,0 +1,22 @@ +exports.config = { + app_name: ['Staging Evolution API'], + license_key: process.env.NEW_RELIC_LICENSE_KEY, + logging: { + level: 'trace' + }, + allow_all_headers: true, + attributes: { + exclude: [ + 'request.headers.cookie', + 'request.headers.authorization', + 'request.headers.proxyAuthorization', + 'request.headers.setCookie*', + 'request.headers.x*', + 'response.headers.cookie', + 'response.headers.authorization', + 'response.headers.proxyAuthorization', + 'response.headers.setCookie*', + 'response.headers.x*' + ] + } +}