-
Notifications
You must be signed in to change notification settings - Fork 68
/
newrelic.js
40 lines (39 loc) · 1.23 KB
/
newrelic.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* New Relic agent configuration.
*
* This file is require'd by the new relic lib, not directly by our code.
*
* See node_modules/lib/config.defaults.js in the agent distribution for a more complete
* description of configuration variables and their potential values.
*/
const config = require('./config');
exports.config = {
// Grab NEW_RELIC_APP_NAME and NEW_RELIC_LICENSE_KEY from the cloud.gov
// user-provided service
app_name: [config.env.newRelicAppName],
host: 'gov-collector.newrelic.com',
license_key: config.env.newRelicLicenseKey,
logging: {
level: 'info',
},
// Comma-delimited list of HTTP status codes for the error collector to ignore
// We ignore 403 errors because they are expected for unauthenticated users
error_collector: {
ignore_status_codes: [404, 403],
},
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*',
],
},
};