|
1 | 1 | [ |
2 | 2 | { |
3 | 3 | "test_name": "partial_granularity_reduced", |
4 | | - "comment": [ "Use transaction from tracer_info.json, with partial granularity set to 'reduced'", |
| 4 | + "comment": [ "Use transaction from tracer_info_standard.json, with partial granularity set to 'reduced'", |
5 | 5 | "We should drop the in-process span and keep the rest.", |
6 | 6 | "The External span External/B2 under the in-process span should be re-parented to the root span."], |
7 | 7 | "tracer_info":"tracer_info_standard.json", |
|
23 | 23 | "agent_attrs": { |
24 | 24 | "exact": { |
25 | 25 | "http.url": "serviceB", |
26 | | - "non_essential_attr": "somevalue", |
| 26 | + "subcomponent": "somevalue", |
27 | 27 | "error.class": "errorclass1", |
28 | 28 | "error.message": "errormessage1", |
29 | 29 | "error.expected": true |
|
66 | 66 | "messaging.system": "MQS", |
67 | 67 | "peer.hostname": "peer", |
68 | 68 | "server.address": "server", |
69 | | - "server.port": 80, |
70 | | - "span.kind": "SPAN" |
| 69 | + "server.port": 80 |
71 | 70 | } |
72 | 71 | } |
73 | 72 | } |
74 | 73 | }, |
75 | 74 | { |
76 | 75 | "Llm/SOMETHING/function": { |
77 | | - "parent": "root", |
78 | | - "agent_attrs": { |
79 | | - "exact": { |
80 | | - "http.url": "myllm" |
81 | | - } |
82 | | - } |
| 76 | + "parent": "root" |
83 | 77 | } |
84 | 78 | }, |
85 | 79 | { |
|
97 | 91 | }, |
98 | 92 | { |
99 | 93 | "test_name": "partial_granularity_essential", |
100 | | - "comment": [ "Use transaction from tracer_info.json, with partial granularity set to 'essential'", |
| 94 | + "comment": [ "Use transaction from tracer_info_standard.json, with partial granularity set to 'essential'", |
101 | 95 | "We should drop the in-process span and keep the rest.", |
102 | 96 | "The External span External/B2 under the in-process span should be re-parented to the root span.", |
103 | 97 | "The non-essential attribute on External/B1 should be dropped"], |
|
124 | 118 | "error.message": "errormessage1", |
125 | 119 | "error.expected": true |
126 | 120 | }, |
127 | | - "unexpected": ["non_essential_attr"] |
| 121 | + "unexpected": ["subcomponent"] |
128 | 122 | }, |
129 | 123 | "user_attrs": { |
130 | 124 | "unexpected": ["my_user_attr"] |
|
161 | 155 | "messaging.system": "MQS", |
162 | 156 | "peer.hostname": "peer", |
163 | 157 | "server.address": "server", |
164 | | - "server.port": 80, |
165 | | - "span.kind": "SPAN" |
| 158 | + "server.port": 80 |
166 | 159 | } |
167 | 160 | } |
168 | 161 | } |
169 | 162 | }, |
170 | 163 | { |
171 | 164 | "Llm/SOMETHING/function": { |
172 | | - "parent": "root", |
173 | | - "agent_attrs": { |
174 | | - "exact": { |
175 | | - "http.url": "myllm" |
176 | | - } |
177 | | - } |
| 165 | + "parent": "root" |
178 | 166 | } |
179 | 167 | }, |
180 | 168 | { |
|
192 | 180 | }, |
193 | 181 | { |
194 | 182 | "test_name": "partial_granularity_compact", |
195 | | - "comment": [ "Use transaction from tracer_info.json, with partial granularity set to 'compact'", |
| 183 | + "comment": [ "Use transaction from tracer_info_standard.json, with partial granularity set to 'compact'", |
196 | 184 | "We should drop the in-process span and keep the rest.", |
197 | 185 | "The External span External/B2 under the in-process span should be merged into External/B1.", |
198 | 186 | "Their durations should be merged and the merged span should have 2 new attributes: nr.ids and nr.durations.", |
|
231 | 219 | "error.expected" |
232 | 220 | ], |
233 | 221 | "unexpected": [ |
234 | | - "non_essential_attr" |
| 222 | + "subcomponent" |
235 | 223 | ] |
236 | 224 | }, |
237 | 225 | "user_attrs": { |
|
256 | 244 | "messaging.system": "MQS", |
257 | 245 | "peer.hostname": "peer", |
258 | 246 | "server.address": "server", |
259 | | - "server.port": 80, |
260 | | - "span.kind": "SPAN" |
| 247 | + "server.port": 80 |
261 | 248 | } |
262 | 249 | } |
263 | 250 | } |
264 | 251 | }, |
265 | 252 | { |
266 | 253 | "Llm/SOMETHING/function": { |
267 | | - "parent": "root", |
268 | | - "agent_attrs": { |
269 | | - "exact": { |
270 | | - "http.url": "myllm" |
271 | | - } |
272 | | - } |
| 254 | + "parent": "root" |
273 | 255 | } |
274 | 256 | }, |
275 | 257 | { |
|
287 | 269 | }, |
288 | 270 | { |
289 | 271 | "test_name": "partial_granularity_compact_too_many_nrids", |
290 | | - "comment": [ "Use transaction from tracer_info.json, with partial granularity set to 'compact'", |
| 272 | + "comment": [ "Use transaction from tracer_info_compact_too_many.json, with partial granularity set to 'compact'", |
291 | 273 | "We should group all the child spans together which should be too many to add all to nr.ids", |
292 | 274 | "This should produce a metric called Supportability/Java/PartialGranularity/NrIds/Dropped with the right value" |
293 | 275 | ], |
|
0 commit comments