Skip to content

fix: support all falsy return values from error filters#1389

Merged
Qard merged 1 commit intoelastic:masterfrom
watson:filter-fix
Sep 25, 2019
Merged

fix: support all falsy return values from error filters#1389
Qard merged 1 commit intoelastic:masterfrom
watson:filter-fix

Conversation

@watson
Copy link
Copy Markdown
Contributor

@watson watson commented Sep 25, 2019

Previously, an error would be thrown if the user returned either null or undefined from a filter if the event being filtered was an error.

Fixes #1385

Previously, an error would be thrown if the user returned either `null`
or `undefined` from a filter if the event being filtered was an error.

Fixes elastic#1385
@watson watson added [zube]: In Review backport:2.x This PR should be backported to the 2.x branch labels Sep 25, 2019
@watson watson requested a review from Qard September 25, 2019 10:53
@watson watson self-assigned this Sep 25, 2019
@Qard Qard merged commit 718d44b into elastic:master Sep 25, 2019
@watson watson deleted the filter-fix branch September 25, 2019 20:18
watson added a commit to watson/apm-agent-nodejs that referenced this pull request Sep 25, 2019
Previously, an error would be thrown if the user returned either `null`
or `undefined` from a filter if the event being filtered was an error.

Fixes elastic#1385
watson added a commit that referenced this pull request Sep 26, 2019
Previously, an error would be thrown if the user returned either `null`
or `undefined` from a filter if the event being filtered was an error.

Fixes #1385
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:2.x This PR should be backported to the 2.x branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

addFilter Crashes App when trying to filter requests

2 participants