Commit b2edcf8
test(e2e/node-eve): Assert a manual span nests under gen_ai.execute_tool (#24330)
Extends the `node-eve` e2e app so a tool call (`get_weather`) wraps its
work in a manual `Sentry.startSpan`, then asserts the resulting user
span lands as a direct child of the SDK's `gen_ai.execute_tool` span
(same trace, `parent_span_id` = the tool span's `span_id`).
The point is to prove that manual instrumentation added inside a tool
slots into the active gen_ai context rather than floating off as its own
segment — i.e. eve runs `execute` while the tool span is active. We fold
the check into the existing weather turn instead of adding a new agent
turn to avoid a second LLM call.
Stacked on #24254.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 5cded57 commit b2edcf8
2 files changed
Lines changed: 19 additions & 2 deletions
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
9 | 16 | | |
10 | 17 | | |
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
69 | 79 | | |
70 | 80 | | |
71 | 81 | | |
| |||
0 commit comments