Commit f1c0737
feat(viewer): qualify method spans with the owning agent class (#113)
Method spans are named `method.<name>` only, so concurrent agents that share a
method name are indistinguishable in the trace tree: a `Rationalizer.analyse()`
and a `Verifier.analyse()` both render as `analyse`.
The class is already on the span as `agent.name` (set in _hooks_impl.py for
both `method.*` and `method_call.*`), but the viewer only surfaced it in the
metadata block of a fully expanded span. Show it in the badge instead, as a
dimmer prefix so the method stays the primary token.
Rendering-only: no change to span names or attributes, so existing traces show
the class immediately without re-running anything. Falls back to the bare
method name when `agent.name` is absent, leaving old traces as they were.
Signed-off-by: Severin Klingler <sklingler@nvidia.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 6ffbf60 commit f1c0737
3 files changed
Lines changed: 42 additions & 18 deletions
File tree
- src/nooa/viewer/frontend-react
- dist
- assets
- src/components/plugins
Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 30 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
94 | 122 | | |
95 | 123 | | |
96 | 124 | | |
| |||
156 | 184 | | |
157 | 185 | | |
158 | 186 | | |
159 | | - | |
160 | | - | |
161 | | - | |
| 187 | + | |
162 | 188 | | |
163 | 189 | | |
164 | 190 | | |
| |||
191 | 217 | | |
192 | 218 | | |
193 | 219 | | |
194 | | - | |
195 | | - | |
196 | | - | |
| 220 | + | |
197 | 221 | | |
198 | 222 | | |
199 | 223 | | |
| |||
0 commit comments