Commit f0a5ee7
committed
feat(contrib/mark3labs/mcp-go): set session ID on tool spans at start time
Pass llmobs.WithSessionID at StartToolSpan so LLMObs groups tool spans under
their MCP session natively (in addition to the existing mcp_session_id tag).
The session is read from the MCP client session attached to ctx.
Inspired by changes in the internal dd-source copy of this contrib.1 parent a850ceb commit f0a5ee7
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
181 | 184 | | |
182 | 185 | | |
183 | 186 | | |
| |||
0 commit comments