Commit e89220b
authored
feat(symbolication): Make frame order explicit (#103638)
This adds an enum `FrameOrder` with variants
`callee_first` and `caller_first` to distinguish two common ways stack
frames are stored, processed, and displayed (innermost frame at the top
and at the bottom, respectively). This enum is now passed to all
stacktrace-processing methods Symbolicator methods. Since Symbolicator
does not (yet) read the parameter, there are no functional changes.
The intention of this is to clarify in which order frames are sent to
Symbolicator, which currently differs between platforms because we never
properly documented or enforced this. Once Symbolicator becomes able to
process the new parameter, there may also be opportunities for
simplification.
As a somewhat related change, this also adjusts some JS tests so they
sort the "scraping_attempts" returned by Symbolicator before checking
them. This is sound because there is no intended order of scraping
attempts anyway, and makes sure tests pass once Symbolicator is allowed
to process frames in a different order.
Fixes INGEST-640.1 parent c93fde5 commit e89220b
File tree
6 files changed
+109
-16
lines changed- src/sentry
- lang
- javascript
- java
- native
- profiles
- tests/relay_integration/lang/javascript
6 files changed
+109
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
223 | 226 | | |
224 | 227 | | |
225 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
255 | 258 | | |
256 | 259 | | |
257 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
475 | 481 | | |
476 | 482 | | |
477 | 483 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
50 | 62 | | |
51 | 63 | | |
52 | 64 | | |
| |||
261 | 273 | | |
262 | 274 | | |
263 | 275 | | |
264 | | - | |
| 276 | + | |
265 | 277 | | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
266 | 290 | | |
267 | 291 | | |
268 | 292 | | |
| |||
271 | 295 | | |
272 | 296 | | |
273 | 297 | | |
| 298 | + | |
274 | 299 | | |
275 | 300 | | |
276 | 301 | | |
| |||
283 | 308 | | |
284 | 309 | | |
285 | 310 | | |
286 | | - | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
287 | 327 | | |
288 | 328 | | |
289 | 329 | | |
| |||
292 | 332 | | |
293 | 333 | | |
294 | 334 | | |
295 | | - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
296 | 339 | | |
297 | 340 | | |
298 | 341 | | |
| |||
311 | 354 | | |
312 | 355 | | |
313 | 356 | | |
| 357 | + | |
314 | 358 | | |
315 | 359 | | |
316 | 360 | | |
| |||
320 | 364 | | |
321 | 365 | | |
322 | 366 | | |
| 367 | + | |
323 | 368 | | |
324 | 369 | | |
325 | 370 | | |
326 | 371 | | |
| 372 | + | |
327 | 373 | | |
328 | 374 | | |
329 | 375 | | |
| |||
335 | 381 | | |
336 | 382 | | |
337 | 383 | | |
338 | | - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
339 | 388 | | |
340 | 389 | | |
341 | 390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| |||
424 | 429 | | |
425 | 430 | | |
426 | 431 | | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
427 | 435 | | |
428 | 436 | | |
429 | 437 | | |
| |||
599 | 607 | | |
600 | 608 | | |
601 | 609 | | |
| 610 | + | |
602 | 611 | | |
603 | 612 | | |
604 | 613 | | |
| |||
608 | 617 | | |
609 | 618 | | |
610 | 619 | | |
| 620 | + | |
611 | 621 | | |
612 | 622 | | |
613 | 623 | | |
| |||
617 | 627 | | |
618 | 628 | | |
619 | 629 | | |
| 630 | + | |
620 | 631 | | |
621 | 632 | | |
622 | 633 | | |
623 | 634 | | |
624 | 635 | | |
625 | 636 | | |
626 | 637 | | |
| 638 | + | |
627 | 639 | | |
628 | 640 | | |
629 | 641 | | |
| |||
638 | 650 | | |
639 | 651 | | |
640 | 652 | | |
| 653 | + | |
641 | 654 | | |
642 | 655 | | |
643 | 656 | | |
| |||
665 | 678 | | |
666 | 679 | | |
667 | 680 | | |
| 681 | + | |
668 | 682 | | |
669 | 683 | | |
670 | 684 | | |
| |||
943 | 957 | | |
944 | 958 | | |
945 | 959 | | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
946 | 963 | | |
947 | 964 | | |
948 | 965 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
358 | 361 | | |
359 | 362 | | |
360 | 363 | | |
| |||
461 | 464 | | |
462 | 465 | | |
463 | 466 | | |
464 | | - | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
465 | 471 | | |
466 | 472 | | |
467 | 473 | | |
| |||
564 | 570 | | |
565 | 571 | | |
566 | 572 | | |
567 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
568 | 577 | | |
569 | 578 | | |
570 | 579 | | |
| |||
634 | 643 | | |
635 | 644 | | |
636 | 645 | | |
637 | | - | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
638 | 650 | | |
639 | 651 | | |
640 | 652 | | |
| |||
710 | 722 | | |
711 | 723 | | |
712 | 724 | | |
713 | | - | |
714 | | - | |
715 | | - | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
716 | 729 | | |
717 | 730 | | |
| 731 | + | |
| 732 | + | |
718 | 733 | | |
719 | 734 | | |
720 | 735 | | |
| |||
0 commit comments