-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
newrelic.js
36 lines (34 loc) · 913 Bytes
/
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
'use strict'
/**
* Load environment variables from .env file
*/
import {loadEnvConfig} from '@next/env'
const projectDir = process.cwd()
loadEnvConfig(projectDir)
/**
* New Relic Agent configuration.
*
* @see https://docs.newrelic.com/docs/apm/agents/nodejs-agent/installation-configuration/nodejs-agent-configuration/
*/
exports.config = {
app_name: [process.env.NEW_RELIC_APP_NAME],
license_key: process.env.NEW_RELIC_LICENSE_KEY,
logging: {
level: 'info'
},
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*'
]
}
}