@contrast/config v1.27.1
@contrast/config
Note: This package needs help.
- Needlessly dependent on
commander
,lodash
, andjson-stable-stringify
- Can be simplified
- Could benefit from schema-based approach for defaults
Overview
This is legacy code ported from node-agent
repo.
To discover and log configuration data, try
node -e "console.log(new (require('.').Config)())"
Usage
An agent should use a single instance of a config. On instantiation, the config will detect both yaml file and environment variable sources and build out full config object. The object will have defaults set for values not having been set by file or env vars.
const { AgentConfig } = require('@contrast/config');
const config = new AgentConfig();
// do stuff with config
if (config.protect.enable) {
}
New V5 Options
agent.stack_trace_filters
This allows agent stackframes to be filtered via configuration Default:
agent-,@contrast,node-agent
17 days ago
27 days ago
1 month ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
4 months ago
5 months ago
9 months ago
9 months ago
10 months ago
10 months ago
7 months ago
7 months ago
7 months ago
8 months ago
8 months ago
6 months ago
7 months ago
1 year ago
1 year ago
1 year ago
1 year ago
11 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago