Commit 5e82809
Update profiler to 5.14.0 (#7815)
* Update profiler to 5.14.0
* test(profiler): fix wall profiler context telemetry tests on Ubuntu+Node24
With pprof 5.14.0, SetContext() in CPED mode only creates context holders
when inside an ALS run() scope. On Ubuntu (more aggressive GC), the transient
holders created by the profiler exporter's storage.run() were collected before
getMetrics() was called, causing the gauge to always report 0.
Fix by wrapping busyWait in tracer.trace() in the profiler test fixture so
there's a long-lived span context keeping CPED holders alive throughout the
test duration.
Additionally, use resolveAtFirstSuccess=true in both profiler telemetry
assertTelemetryReceived calls: with an active span, dd-trace emits 'tracers'
namespace generate-metrics events before the 'profilers' ones, so the handler
must keep scanning rather than stopping at the first event.
Also removes the macOS skip from the wall profiler context telemetry test and
increases TEST_DURATION_MS from 1500 to 3000 to avoid timing races.
Co-authored-by: Claude Sonnet 4.6 <[email protected]>1 parent 0b896cb commit 5e82809
File tree
4 files changed
+10
-12
lines changed- integration-tests/profiler
4 files changed
+10
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
720 | 720 | | |
721 | 721 | | |
722 | 722 | | |
723 | | - | |
| 723 | + | |
724 | 724 | | |
725 | 725 | | |
726 | 726 | | |
| |||
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | 751 | | |
755 | 752 | | |
756 | 753 | | |
| |||
759 | 756 | | |
760 | 757 | | |
761 | 758 | | |
762 | | - | |
| 759 | + | |
763 | 760 | | |
764 | 761 | | |
765 | 762 | | |
| |||
772 | 769 | | |
773 | 770 | | |
774 | 771 | | |
775 | | - | |
| 772 | + | |
776 | 773 | | |
777 | 774 | | |
778 | 775 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| |||
0 commit comments