@contrast/config 1.18.1 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/options.js +33 -0
  2. package/package.json +1 -1
package/lib/options.js CHANGED
@@ -214,6 +214,39 @@ const options = [
214
214
  fn: castBoolean,
215
215
  desc: 'Defaults to `true`. Controls whether configuration setting reports are sent to the Contrast web interface.',
216
216
  },
217
+ // agent.heap_dump
218
+ {
219
+ name: 'agent.heap_dump.enable',
220
+ arg: '[true]',
221
+ fn: castBoolean,
222
+ default: false,
223
+ desc: 'Set to \'true\' for the agent to automatically take heap dumps of the instrumented application.',
224
+ },
225
+ {
226
+ name: 'agent.heap_dump.path',
227
+ arg: '<path>',
228
+ default: 'contrast_heap_dumps',
229
+ desc: "Set the location to which to save the heap dump files. If relative, the path is determined based on the process' working directory.",
230
+ },
231
+ {
232
+ name: 'agent.heap_dump.delay_ms',
233
+ arg: '<time>',
234
+ default: 10000,
235
+ desc: 'Set the amount of time to wait, in milliseconds, after agent startup to begin taking heap dumps.',
236
+ },
237
+ {
238
+ name: 'agent.heap_dump.window_ms',
239
+ arg: '<number>',
240
+ default: 10000,
241
+ desc: 'Set the amount of time to wait, in milliseconds, between each heap dump.',
242
+ },
243
+ {
244
+ name: 'agent.heap_dump.count',
245
+ arg: '<number>',
246
+ default: 5,
247
+ desc: 'Set the number of heap dumps to take before disabling this feature.',
248
+ },
249
+
217
250
  // agent.polling
218
251
  {
219
252
  name: 'agent.polling.app_activity_ms',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/config",
3
- "version": "1.18.1",
3
+ "version": "1.19.0",
4
4
  "description": "An API for discovering Contrast agent configuration data",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",