-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewrelic.js
59 lines (52 loc) · 1.29 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
'use strict';
/**
* New Relic agent configuration.
* This configuration reads sensitive information from environment variables.
*/
exports.config = {
/**
* Array of application names.
*/
app_name: [process.env.NEW_RELIC_APP_NAME || 'default-app-name'],
/**
* Your New Relic license key.
*/
license_key: process.env.NEW_RELIC_LICENSE_KEY || 'your-default-license-key',
/**
* Logging configuration.
*/
logging: {
/**
* Level at which to log. 'trace' is most useful for diagnosing issues with
* the agent, 'info' and higher will impose the least overhead on production
* applications.
*/
level: process.env.NEW_RELIC_LOG_LEVEL || 'info',
},
/**
* Distributed Tracing.
* Enables distributed tracing, which lets you see the path requests take
* through your distributed system.
*/
distributed_tracing: {
enabled: true,
},
/**
* Error Collector configuration.
* Controls how the agent collects information about errors.
*/
error_collector: {
enabled: true,
},
/**
* Custom Insights configuration.
* Controls how custom events are sent to New Relic Insights.
*/
insights: {
enabled: true,
},
/**
* Allow using environment variables for sensitive data.
*/
allow_all_headers: true,
};