Commit b0146c5
committed
Depends on #2057
## Motivation
Currently, `EnvFilter`'s `Layer` implementation provides a
`Layer::on_record` method, but its `Filter` implementation is
missing the corresponding `Filter::on_record` implementation. This means
that when using `EnvFilter` as a per-layer filter, recording span
fields after the spans were created will not update the filter state.
## Solution
This commit factors out the `on_record` implementation for `Layer`
into an inherent method, and adds a new `Filter::on_record` method that
calls it as well.
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
1 parent d554b2b commit b0146c5
1 file changed
+20
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
591 | 603 | | |
592 | 604 | | |
593 | 605 | | |
| |||
643 | 655 | | |
644 | 656 | | |
645 | 657 | | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
650 | 661 | | |
651 | 662 | | |
652 | 663 | | |
| |||
690 | 701 | | |
691 | 702 | | |
692 | 703 | | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
693 | 709 | | |
694 | 710 | | |
695 | 711 | | |
| |||
0 commit comments