Commit 38ba446
Provide optimized writers for OpenTelemetry's "trace.proto" wire protocol (#11120)
Provide optimized writers for OpenTelemetry's "trace.proto" wire protocol
Relax unboxing of number types in Otel attributes
Only write W3CTracestate when available
Remove incorrect check which only exported spans with links
Test OtlpTraceProto with various span data, including different numbers of links
Extend test to check 128 trace-ids and span link attributes
Extend test to check link tracestate, traceflags, and span origin
Re-use writeSpanTag
Use logging trace writer during OtlpTraceProtoTest
Disable injection of span-links as tags when using OTLP since we can send them as first-class links (likewise turn off legacy baggage injection)
Cleanup
Review feedback: support collecting multiple traces into one payload
Add test to check multiple traces can be marshalled into a single payload
Spelling
Map no span.kind to UNSPECIFIED
Review feedback: avoid NPE if value cache is turned off
Review feedback: avoid cast exception if span.kind set to non-string value
Review feedback: avoid capturing lambda by using TagMap.forEach that takes an extra context object
Simple equality test is enough here
Co-authored-by: devflow.devflow-routing-intake <devflow.devflow-routing-intake@kubernetes.us1.ddbuild.io>1 parent cae8110 commit 38ba446
File tree
17 files changed
+2208
-53
lines changed- dd-trace-api/src/main/java/datadog/trace/api
- config
- dd-trace-core/src
- main/java/datadog/trace/core
- otlp
- common
- metrics
- trace
- test
- groovy/datadog/trace/core
- test
- java/datadog/trace/core
- otlp/trace
- resources/opentelemetry/proto/trace/v1
- internal-api/src/main/java/datadog/trace/api
- metadata
17 files changed
+2208
-53
lines changedLines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
| |||
327 | 328 | | |
328 | 329 | | |
329 | 330 | | |
| 331 | + | |
330 | 332 | | |
331 | 333 | | |
332 | 334 | | |
| |||
472 | 474 | | |
473 | 475 | | |
474 | 476 | | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
475 | 482 | | |
476 | 483 | | |
477 | 484 | | |
| |||
507 | 514 | | |
508 | 515 | | |
509 | 516 | | |
| 517 | + | |
510 | 518 | | |
511 | 519 | | |
512 | 520 | | |
| |||
539 | 547 | | |
540 | 548 | | |
541 | 549 | | |
| 550 | + | |
542 | 551 | | |
543 | 552 | | |
544 | 553 | | |
| |||
570 | 579 | | |
571 | 580 | | |
572 | 581 | | |
| 582 | + | |
573 | 583 | | |
574 | 584 | | |
575 | 585 | | |
| |||
598 | 608 | | |
599 | 609 | | |
600 | 610 | | |
| 611 | + | |
601 | 612 | | |
602 | 613 | | |
603 | 614 | | |
| |||
629 | 640 | | |
630 | 641 | | |
631 | 642 | | |
| 643 | + | |
632 | 644 | | |
633 | 645 | | |
634 | 646 | | |
| |||
865 | 877 | | |
866 | 878 | | |
867 | 879 | | |
| 880 | + | |
868 | 881 | | |
869 | 882 | | |
870 | 883 | | |
| |||
2132 | 2145 | | |
2133 | 2146 | | |
2134 | 2147 | | |
2135 | | - | |
| 2148 | + | |
| 2149 | + | |
2136 | 2150 | | |
2137 | 2151 | | |
2138 | 2152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
886 | | - | |
| 886 | + | |
887 | 887 | | |
888 | 888 | | |
889 | 889 | | |
| |||
Lines changed: 16 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
| |||
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
| 242 | + | |
241 | 243 | | |
242 | 244 | | |
243 | 245 | | |
| |||
261 | 263 | | |
262 | 264 | | |
263 | 265 | | |
264 | | - | |
| 266 | + | |
| 267 | + | |
265 | 268 | | |
266 | 269 | | |
267 | 270 | | |
| |||
286 | 289 | | |
287 | 290 | | |
288 | 291 | | |
289 | | - | |
| 292 | + | |
| 293 | + | |
290 | 294 | | |
291 | 295 | | |
292 | 296 | | |
| |||
313 | 317 | | |
314 | 318 | | |
315 | 319 | | |
316 | | - | |
| 320 | + | |
| 321 | + | |
317 | 322 | | |
318 | 323 | | |
319 | 324 | | |
| |||
370 | 375 | | |
371 | 376 | | |
372 | 377 | | |
| 378 | + | |
373 | 379 | | |
374 | 380 | | |
375 | 381 | | |
| |||
1177 | 1183 | | |
1178 | 1184 | | |
1179 | 1185 | | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
1183 | 1192 | | |
| 1193 | + | |
1184 | 1194 | | |
1185 | 1195 | | |
1186 | 1196 | | |
| |||
Lines changed: 36 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
48 | 55 | | |
49 | 56 | | |
50 | 57 | | |
| |||
153 | 160 | | |
154 | 161 | | |
155 | 162 | | |
156 | | - | |
157 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
158 | 170 | | |
159 | 171 | | |
160 | 172 | | |
| |||
163 | 175 | | |
164 | 176 | | |
165 | 177 | | |
166 | | - | |
| 178 | + | |
167 | 179 | | |
168 | 180 | | |
169 | | - | |
| 181 | + | |
170 | 182 | | |
171 | 183 | | |
172 | 184 | | |
| |||
175 | 187 | | |
176 | 188 | | |
177 | 189 | | |
178 | | - | |
| 190 | + | |
179 | 191 | | |
180 | 192 | | |
181 | | - | |
| 193 | + | |
182 | 194 | | |
183 | 195 | | |
184 | 196 | | |
185 | 197 | | |
186 | 198 | | |
187 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
188 | 213 | | |
189 | 214 | | |
190 | 215 | | |
| |||
301 | 326 | | |
302 | 327 | | |
303 | 328 | | |
304 | | - | |
| 329 | + | |
305 | 330 | | |
306 | 331 | | |
307 | | - | |
| 332 | + | |
308 | 333 | | |
309 | 334 | | |
310 | 335 | | |
| |||
332 | 357 | | |
333 | 358 | | |
334 | 359 | | |
335 | | - | |
| 360 | + | |
336 | 361 | | |
337 | 362 | | |
338 | 363 | | |
| |||
345 | 370 | | |
346 | 371 | | |
347 | 372 | | |
348 | | - | |
| 373 | + | |
349 | 374 | | |
350 | 375 | | |
351 | 376 | | |
352 | | - | |
| 377 | + | |
353 | 378 | | |
354 | 379 | | |
355 | 380 | | |
0 commit comments