Commit f6ed413
LLM Obs SDK use context API for parent children span linkage (#8711)
* add APIs for llm obs
* add llm message class to support llm spans
* add llm message class to support llm spans
* impl llmobs agent and llmobs apis
* support llm messages with tool calls
* handle default model name and provider
* rm unneeded file
* impl llmobs agent and llmobs apis
* impl llmobs agent
* working writer
* add support for llm message and tool calls
* impl llmobs agent and llmobs apis
* use new ctx api to track parent span
* cleaned up whitespace
* resolve merge conflicts
* remaining merge conflicts
* fix bad method call
* fixed llmobs intake creation if llmobs not enabled
* removed print statements
* ran spotless
* added tests for llmobsspanmapper
* fixed coverage for tags
---------
Co-authored-by: Nayeem Kamal <[email protected]>
Co-authored-by: Nayeem Kamal <[email protected]>1 parent f877866 commit f6ed413
File tree
3 files changed
+64
-2
lines changed- dd-java-agent/agent-llmobs/src/main/java/datadog/trace/llmobs/domain
- dd-trace-core/src/main/java/datadog/trace/llmobs/writer/ddintake
3 files changed
+64
-2
lines changedLines changed: 23 additions & 0 deletions
| 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 | | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
66 | 88 | | |
67 | 89 | | |
68 | 90 | | |
| |||
271 | 293 | | |
272 | 294 | | |
273 | 295 | | |
| 296 | + | |
274 | 297 | | |
275 | 298 | | |
276 | 299 | | |
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
116 | | - | |
117 | | - | |
| 118 | + | |
| 119 | + | |
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
| |||
0 commit comments