elastic / elastic/apm-agent-nodejs
Way to filter out status codes?
- Dominant language
- JavaScript
- Stars
- 594
- Forks
- 244
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 16
Description
**Is your feature request related to a problem? Please describe.**
Would be great if it was possible to filter out certain status codes (eg: 404, 410 etc) with this apm client.
**Describe the solution you'd like**
A option in config option to specify an array of status codes to ignore listed here:
https://www.elastic.co/guide/en/apm/agent/nodejs/current/configuration.html
`ignoreStatusCodes: [404, 410, .. ]`
**Describe alternatives you've considered**
Can do it as part of a filter https://www.elastic.co/guide/en/apm/agent/nodejs/current/agent-api.html#apm-add-filter but this seems a bit annoying - a config property seems simpler
Contributor guide
Assessment
This issue has not been assessed yet.