@contrast/config 1.20.0 → 1.21.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.
- package/lib/index.d.ts +6 -0
- package/lib/options.js +14 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -196,6 +196,12 @@ export interface Config {
|
|
|
196
196
|
interval_ms: number;
|
|
197
197
|
};
|
|
198
198
|
};
|
|
199
|
+
metrics: {
|
|
200
|
+
/** Default: `true` */
|
|
201
|
+
enable: boolean;
|
|
202
|
+
/** 'Set the response duration (in milliseconds) after which we will warn that a request has been hanging.' Default: `5000` */
|
|
203
|
+
warn_ms: number;
|
|
204
|
+
};
|
|
199
205
|
};
|
|
200
206
|
};
|
|
201
207
|
|
package/lib/options.js
CHANGED
|
@@ -436,6 +436,20 @@ Example - \`/opt/Contrast/contrast.log\` creates a log in the \`/opt/Contrast\`
|
|
|
436
436
|
default: 1,
|
|
437
437
|
desc: 'Set the interval (in milliseconds) for collecting code events for library usage.',
|
|
438
438
|
},
|
|
439
|
+
{
|
|
440
|
+
name: 'agent.node.metrics.enable',
|
|
441
|
+
arg: '[false]',
|
|
442
|
+
default: true,
|
|
443
|
+
fn: castBoolean,
|
|
444
|
+
desc: 'Set to `false` to disable response latency metrics recording.'
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
name: 'agent.node.metrics.warn_ms',
|
|
448
|
+
arg: '<num>',
|
|
449
|
+
default: 5000,
|
|
450
|
+
fn: parseNum,
|
|
451
|
+
desc: 'Set the response duration (in milliseconds) after which we will warn that a request has been hanging.'
|
|
452
|
+
},
|
|
439
453
|
// inventory
|
|
440
454
|
{
|
|
441
455
|
name: 'inventory.analyze_libraries',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.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)",
|