-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Shortcut evaluation of rules containing 'root.' (#1018)
## Which problem is this PR solving? The new `root.` rule can be shortcut in many cases -- if you only check the root span, then you don't have to check every span since it's going to have the same result. This also uncovered a bug in the original logic -- in a situation where there were multiple entries in Fields with `root.` preceding an entry without it, we would have been testing the wrong span for the later entries. ## Short description of the changes - Add optimization - Add a couple of new tests
- Loading branch information
Showing
2 changed files
with
153 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters