Commit 65162a2
authored
fix(core): Avoid prolonging idle span when starting standalone span (#16928)
When we we start and send a web vital
standalone span while an idlespan (e.g. pageload) was still running,
we'd restart the idle span's child span timeout (i.e. prolong its
duration potentially). Is is unintended because by definition the
standalone span should not be associated with a potentially ongoing idle
span and its tree.
This can happen, for example when users hide the page while the pageload
span is still active, causing web vitals to be reported.1 parent 61feeb3 commit 65162a2
File tree
2 files changed
+29
-1
lines changed- packages/core
- src/tracing
- test/lib/tracing
2 files changed
+29
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
326 | 327 | | |
327 | 328 | | |
328 | 329 | | |
329 | | - | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
330 | 336 | | |
331 | 337 | | |
332 | 338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
589 | 611 | | |
590 | 612 | | |
591 | 613 | | |
| |||
0 commit comments