Commit b4833f6
committed
test(appsec): cover
Add two unit tests for `Processor::service_entry_span_mut`:
- verifies the non-placeholder span is returned when both a
placeholder and a real `aws.lambda` span are present
- verifies `None` is returned when only a placeholder span exists
These guard against regressions in the span-selection logic
that caused AppSec context to be prematurely deleted on Go/Java
runtimes, leaving the real invocation span untagged.
JJ-Change-Id: vlkyxoservice_entry_span_mut placeholder filtering1 parent 65ae689 commit b4833f6
1 file changed
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
821 | 821 | | |
822 | 822 | | |
823 | 823 | | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
824 | 861 | | |
0 commit comments