forked from jsdelivr/globalping
-
Notifications
You must be signed in to change notification settings - Fork 0
/
newrelic.cjs
54 lines (53 loc) · 1.11 KB
/
newrelic.cjs
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
/* eslint-disable camelcase */
exports.config = {
app_name: [ '' ],
license_key: '',
logging: {
level: 'info',
filepath: 'stdout',
},
application_logging: {
enabled: true,
forwarding: {
enabled: true,
},
},
distributed_tracing: {
enabled: true,
},
error_collector: {
ignore_status_codes: [ 400, 401, 403, 404, 405, 422, 429 ],
ignore_classes: [ 'UnprocessableEntityError', 'BadRequestError' ],
ignore_messages: [ 'No suitable probes found', 'Too Many Probes Requested' ],
},
span_events: {
max_samples_stored: 10,
},
transaction_events: {
max_samples_stored: 10,
attributes: {
enabled: false,
},
},
rules: {
ignore: [
'^/socket.io/.*/xhr-polling/', // default item
'^/health',
],
},
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*',
],
},
};