Skip to content

Commit

Permalink
Update Rule Priority for span attribute filters
Browse files Browse the repository at this point in the history
There was a question as to whether all or any rules needed to match for a filter to be applied. This aims to make that more clear.
  • Loading branch information
jonathanpdx committed Feb 2, 2022
1 parent 412de72 commit 7411bef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ When you add a custom rule, it takes effect immediately for that trace observer.

## Rule Priority

When a trace has spans with attributes that match both **Keep** and **Discard** filter rules, the trace is discarded.
Each rule is evaluated independently. If any rule matches, its observer action, **Keep** or **Discard**, is carried out. When a trace has spans with attributes that match both **Keep** and **Discard** filter rules, the trace is discarded.

For example, suppose you don't want to save some expected errors that have a certain phrase in the error message. You could create a **Discard** filter rule that targets the error message while still retaining all other traces with an error.

0 comments on commit 7411bef

Please sign in to comment.