elastic / elastic/apm-agent-nodejs

Way to filter out status codes?

Open
#1,123 8 comments 0 reactions 0 assignees View on GitHub
agent-nodejs enhancement
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.