Commit 66d5527
fix(governance): address review feedback
- Drop the None check on get_current_span — OTel returns INVALID_SPAN,
never None, so the span-context validity check is sufficient.
- Reword the behavior-matrix bullet: the no-op triggers on any valid
current span context, including a remotely propagated one, not only
a host-opened span.
- Snapshot and restore the same private tracer-provider global in the
test helper rather than mixing it with get_tracer_provider().
- Assert the agent span's parent off the exported ReadableSpan; the
live Span protocol has no parent attribute, which failed mypy in CI.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 482e4c0 commit 66d5527
2 files changed
Lines changed: 25 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
104 | | - | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
653 | | - | |
654 | | - | |
| 653 | + | |
| 654 | + | |
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
658 | | - | |
| 658 | + | |
659 | 659 | | |
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
666 | 673 | | |
667 | 674 | | |
668 | 675 | | |
669 | 676 | | |
670 | 677 | | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
| 678 | + | |
676 | 679 | | |
677 | 680 | | |
678 | 681 | | |
679 | | - | |
680 | | - | |
| 682 | + | |
| 683 | + | |
681 | 684 | | |
682 | 685 | | |
683 | | - | |
684 | | - | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
685 | 689 | | |
686 | 690 | | |
687 | 691 | | |
| |||
690 | 694 | | |
691 | 695 | | |
692 | 696 | | |
| 697 | + | |
693 | 698 | | |
694 | 699 | | |
695 | | - | |
696 | | - | |
| 700 | + | |
| 701 | + | |
697 | 702 | | |
698 | 703 | | |
699 | 704 | | |
| |||
0 commit comments