Skip to content

Commit b8e67cb

Browse files
committed
fix
1 parent 7243f37 commit b8e67cb

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

test/plugin/scenarios/spring-ai-1.x-scenario/config/expectedData.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,40 @@ segmentItems:
1717
- serviceName: spring-ai-1.x-scenario
1818
segmentSize: gt 0
1919
segments:
20+
- segmentId: not null
21+
spans:
22+
- operationName: Spring-ai/tool/execute/get_weather
23+
parentSpanId: 0
24+
spanId: 1
25+
spanLayer: Unknown
26+
startTime: 1771770588452
27+
componentId: 178
28+
isError: false
29+
spanType: Local
30+
peer: ''
31+
skipAnalysis: false
32+
tags:
33+
- { key: gen_ai.tool.name, value: get_weather }
34+
- { key: gen_ai.operation.name, value: execute_tool }
35+
- { key: gen_ai.tool.call.arguments, value: '{"arg0":"new york"}' }
36+
- { key: gen_ai.tool.call.result, value: '"Sunny, 10°C"' }
37+
38+
- operationName: Spring-ai/tool/call
39+
parentSpanId: -1
40+
spanId: 0
41+
spanLayer: Unknown
42+
startTime: 1771770588450
43+
endTime: 1771770588453
44+
componentId: 178
45+
isError: false
46+
spanType: Local
47+
peer: ''
48+
skipAnalysis: false
49+
refs:
50+
- { parentEndpoint: 'GET:/spring-ai-1.x-scenario/case/spring-ai-1.x-scenario-case',
51+
networkAddress: '', refType: CrossThread, parentSpanId: 4, parentTraceSegmentId: not null,
52+
parentServiceInstance: not null, parentService: spring-ai-1.x-scenario,
53+
traceId: not null }
2054

2155
- segmentId: not null
2256
spans:
@@ -81,6 +115,22 @@ segmentItems:
81115
- { key: gen_ai.input.messages, value: not null }
82116
- { key: gen_ai.output.messages, value: not null }
83117

118+
- operationName: /spring-ai-1.x-scenario/llm/v1/chat/completions
119+
parentSpanId: 0
120+
spanId: 5
121+
spanLayer: Http
122+
startTime: 1771770588332
123+
endTime: 1771770588445
124+
componentId: 99
125+
isError: false
126+
spanType: Exit
127+
peer: localhost:8080
128+
skipAnalysis: false
129+
tags:
130+
- { key: url, value: 'http://localhost:8080/spring-ai-1.x-scenario/llm/v1/chat/completions' }
131+
- { key: http.method, value: POST }
132+
- { key: http.status_code, value: '200' }
133+
84134
- operationName: GET:/spring-ai-1.x-scenario/case/spring-ai-1.x-scenario-case
85135
parentSpanId: -1
86136
spanId: 0

0 commit comments

Comments
 (0)