Commit be93a2c
authored
fix(traces): keep shutdown and fork isolation airtight for the client
Shutdown reads the pipeline under the same lock initialization publishes
it with, so an initialization in flight is either closed by shutdown or
sees the request and stays off. A forked child gets a fresh active-span
variable: an inherited handle exiting in the child resets the old one,
which would have restored the parent process's outer span.1 parent 41d6980 commit be93a2c
3 files changed
Lines changed: 47 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2276 | 2276 | | |
2277 | 2277 | | |
2278 | 2278 | | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
2279 | 2282 | | |
2280 | | - | |
2281 | | - | |
| 2283 | + | |
2282 | 2284 | | |
2283 | 2285 | | |
2284 | 2286 | | |
| |||
2513 | 2515 | | |
2514 | 2516 | | |
2515 | 2517 | | |
2516 | | - | |
| 2518 | + | |
| 2519 | + | |
| 2520 | + | |
2517 | 2521 | | |
2518 | 2522 | | |
2519 | 2523 | | |
| |||
2878 | 2882 | | |
2879 | 2883 | | |
2880 | 2884 | | |
2881 | | - | |
| 2885 | + | |
2882 | 2886 | | |
| 2887 | + | |
2883 | 2888 | | |
2884 | 2889 | | |
2885 | 2890 | | |
2886 | 2891 | | |
2887 | 2892 | | |
2888 | 2893 | | |
2889 | | - | |
| 2894 | + | |
2890 | 2895 | | |
2891 | 2896 | | |
2892 | 2897 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
463 | 481 | | |
464 | 482 | | |
465 | 483 | | |
| |||
649 | 667 | | |
650 | 668 | | |
651 | 669 | | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
652 | 686 | | |
653 | 687 | | |
654 | 688 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| |||
0 commit comments