You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,12 +60,13 @@ module.exports = {
60
60
ignoreStatusCodes: [
61
61
401,
62
62
404
63
+
],
64
+
ignoreOutgoingHosts: [
65
+
'google.com'
63
66
]
64
67
}
65
68
```
66
69
67
-
**Here please pay special attention to the `ignoreHeaders` option. With this, you can specify which requests should not be accounted. This can be extremely useful if you want to filter out the noise generated by your health checks for example.**
68
-
69
70
*Note: Custom reporters are no longer supported in trace 2.x*
70
71
71
72
*Note: If you are running your app with NODE_ENV=test, Trace won't start*
it('does not throw error if TRACE_IGNORE_OUTGOING_HOSTS is malformed, and uses the next highest priority source for the ignoreHeaders config',function(){
149
+
process.env.TRACE_IGNORE_OUTGOING_HOSTS='This is not a valid JSON'
0 commit comments