Commit 718d03a
committed
Add OTel LLM-parent fan-out instance fallback
Align OTel's _resolve_llm_parent with the spec ruling
(review-nested-fan-out-lineage): an orphaned LLM span (calling node
has no open span) inside a fan-out instance now parents under the
per-instance fan-out dispatch span, matching the Langfuse observer,
instead of falling through to the subgraph or invocation span.
Top-level instance parity only. The generalized nearest-open-ancestor
walk -- nested instances at any depth (where the parity key can
mis-resolve to a sibling top-level instance) and the
instance-vs-deeper-subgraph ordering -- rides the pending spec
observability fallback clause and fixture.1 parent 27e9b99 commit 718d03a
3 files changed
Lines changed: 75 additions & 3 deletions
File tree
- src/openarmature/observability/otel
- tests/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1764 | 1764 | | |
1765 | 1765 | | |
1766 | 1766 | | |
1767 | | - | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
1768 | 1784 | | |
1769 | 1785 | | |
1770 | 1786 | | |
| |||
1775 | 1791 | | |
1776 | 1792 | | |
1777 | 1793 | | |
1778 | | - | |
| 1794 | + | |
1779 | 1795 | | |
1780 | 1796 | | |
1781 | 1797 | | |
1782 | 1798 | | |
1783 | | - | |
| 1799 | + | |
1784 | 1800 | | |
1785 | 1801 | | |
1786 | 1802 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
562 | 617 | | |
563 | 618 | | |
564 | 619 | | |
| |||
0 commit comments