Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions content/en/error_tracking/manage_data_collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,27 @@ Each error event is checked against the rules in order. The event is processed o

**Note:** Error events that get accepted by a rule might still be excluded from Error Tracking if they lack the [required attributes][2].

### Using multiple rules

Multiple rules let you include errors from specific sources while excluding others. Because rules are evaluated in order and stop at the first match, you can create layered filtering logic.

For example, suppose you want to:
- Track all production errors, except those from `service:internal-tools`
- Also track staging errors, but only for `service:payments`

You would configure the following rules:

| Order | Inclusion filter | Exclusion filter |
|-------|-----------------|------------------|
| 1 | `env:prod` | `service:internal-tools` |
| 2 | `env:staging service:payments` | (none) |

With these rules:
- An error with `env:prod service:checkout` matches Rule 1, has no exclusion match → **included**
- An error with `env:prod service:internal-tools` matches Rule 1, matches the exclusion filter → **excluded**
- An error with `env:staging service:payments` does not match Rule 1, matches Rule 2 → **included**
- An error with `env:staging service:checkout` does not match Rule 1 or Rule 2 → **excluded**

### Evaluation order

Rules are evaluated in order, with the evaluation stopping at the first matching rule. The priority of the rules and their nested filters depends on their order in the list.
Expand Down
Loading