Skip to content

[Azure Functions] Stabilize isolated host readiness and shutdown#8887

Draft
bouwkast wants to merge 3 commits into
masterfrom
steven/fix-azure-function-flake
Draft

[Azure Functions] Stabilize isolated host readiness and shutdown#8887
bouwkast wants to merge 3 commits into
masterfrom
steven/fix-azure-function-flake

Conversation

@bouwkast

@bouwkast bouwkast commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Summary of changes

This change stabilizes the isolated Azure Functions integration tests by addressing both startup and shutdown races.

The startup timer can execute before the Functions host has finished registering its HTTP routes. The sample now waits for /admin/host/ping to report readiness before making its self-calls. Spans created by these readiness probes are excluded from the test results.

Previously, the sample waited three seconds after completing its workload and then forcibly killed func.exe. This could terminate the host before its final trace batch reached the mock agent, leaving tests with only 17 of the expected 21 spans.

The tests now keep the host alive while waiting for and asserting spans and logs. After the assertions complete, they request shutdown through a dedicated endpoint. If Core Tools remains running, teardown terminates only the process tree started by that test.

This removes the automatic exit timer, mutex, fixed shutdown delay, and global func.exe termination. Log assertions also wait for a completion signal instead of depending on process-exit timing.

Test coverage

Had a lot of azurite / docker issues locally so just going to try to see if it works on CI

Other details

#incident-57303

@bouwkast

bouwkast commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@bouwkast bouwkast added type:flake-fix area:tests unit tests, integration tests area:serverless labels Jul 9, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 421259c0af

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@bouwkast bouwkast changed the title Stabilize isolated host readiness for tests Azure Functions stabilize isolated host readiness for tests Jul 9, 2026
@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented Jul 9, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8887) and master.

✅ No regressions detected - check the details below

Full Metrics Comparison

FakeDbCommand

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration69.73 ± (69.73 - 70.05) ms69.91 ± (69.83 - 70.15) ms+0.3%✅⬆️
.NET Framework 4.8 - Bailout
duration76.75 ± (76.27 - 76.78) ms74.08 ± (73.85 - 74.20) ms-3.5%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1086.50 ± (1085.41 - 1093.81) ms1079.97 ± (1079.24 - 1085.36) ms-0.6%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.30 ± (22.25 - 22.36) ms22.07 ± (22.04 - 22.11) ms-1.0%
process.time_to_main_ms81.99 ± (81.71 - 82.26) ms80.40 ± (80.25 - 80.55) ms-1.9%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.95 ± (10.95 - 10.95) MB10.93 ± (10.92 - 10.93) MB-0.2%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.26 ± (22.21 - 22.30) ms22.01 ± (21.98 - 22.04) ms-1.1%
process.time_to_main_ms84.49 ± (84.22 - 84.77) ms81.68 ± (81.49 - 81.86) ms-3.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.98 ± (10.97 - 10.98) MB10.96 ± (10.95 - 10.96) MB-0.2%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms210.10 ± (209.35 - 210.86) ms211.84 ± (210.89 - 212.80) ms+0.8%✅⬆️
process.time_to_main_ms531.97 ± (530.86 - 533.09) ms538.07 ± (536.84 - 539.30) ms+1.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.32 ± (49.29 - 49.35) MB49.30 ± (49.27 - 49.33) MB-0.0%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.4%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms20.82 ± (20.78 - 20.85) ms20.86 ± (20.82 - 20.90) ms+0.2%✅⬆️
process.time_to_main_ms69.46 ± (69.31 - 69.61) ms70.25 ± (70.04 - 70.47) ms+1.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.65 ± (10.65 - 10.65) MB10.63 ± (10.63 - 10.63) MB-0.2%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.10 ± (21.00 - 21.20) ms20.77 ± (20.74 - 20.81) ms-1.5%
process.time_to_main_ms72.96 ± (72.56 - 73.36) ms70.51 ± (70.41 - 70.62) ms-3.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.76 ± (10.76 - 10.77) MB10.76 ± (10.76 - 10.76) MB-0.0%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms371.14 ± (369.10 - 373.18) ms371.59 ± (369.23 - 373.95) ms+0.1%✅⬆️
process.time_to_main_ms534.08 ± (532.89 - 535.27) ms535.27 ± (534.30 - 536.24) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.34 ± (50.32 - 50.37) MB50.29 ± (50.26 - 50.31) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.0%
.NET 8 - Baseline
process.internal_duration_ms19.19 ± (19.15 - 19.23) ms19.19 ± (19.15 - 19.22) ms-0.0%
process.time_to_main_ms69.28 ± (69.06 - 69.50) ms70.31 ± (70.03 - 70.59) ms+1.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.67 ± (7.66 - 7.67) MB7.70 ± (7.69 - 7.70) MB+0.4%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.04 ± (19.01 - 19.06) ms19.24 ± (19.20 - 19.28) ms+1.1%✅⬆️
process.time_to_main_ms69.68 ± (69.55 - 69.80) ms71.75 ± (71.58 - 71.92) ms+3.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.72 ± (7.71 - 7.72) MB7.74 ± (7.74 - 7.75) MB+0.3%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms298.09 ± (295.75 - 300.43) ms298.58 ± (296.34 - 300.82) ms+0.2%✅⬆️
process.time_to_main_ms486.05 ± (485.06 - 487.04) ms482.46 ± (481.58 - 483.35) ms-0.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.79 ± (37.76 - 37.82) MB37.82 ± (37.79 - 37.84) MB+0.1%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.8%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration201.99 ± (202.00 - 202.93) ms201.67 ± (201.37 - 202.21) ms-0.2%
.NET Framework 4.8 - Bailout
duration204.69 ± (204.44 - 205.23) ms204.75 ± (204.28 - 205.28) ms+0.0%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1208.14 ± (1209.72 - 1216.49) ms1205.23 ± (1205.98 - 1212.89) ms-0.2%
.NET Core 3.1 - Baseline
process.internal_duration_ms195.52 ± (195.01 - 196.03) ms194.78 ± (194.29 - 195.27) ms-0.4%
process.time_to_main_ms85.06 ± (84.69 - 85.42) ms84.53 ± (84.25 - 84.80) ms-0.6%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.07 ± (16.05 - 16.10) MB16.05 ± (16.02 - 16.07) MB-0.2%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.3%
.NET Core 3.1 - Bailout
process.internal_duration_ms194.09 ± (193.66 - 194.52) ms194.02 ± (193.57 - 194.47) ms-0.0%
process.time_to_main_ms85.66 ± (85.39 - 85.94) ms85.25 ± (85.00 - 85.50) ms-0.5%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.11 ± (16.09 - 16.14) MB16.09 ± (16.07 - 16.12) MB-0.1%
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (21 - 21)+0.1%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms385.34 ± (384.08 - 386.61) ms385.87 ± (384.54 - 387.21) ms+0.1%✅⬆️
process.time_to_main_ms539.72 ± (538.90 - 540.54) ms542.28 ± (541.17 - 543.38) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.03 ± (57.85 - 58.21) MB58.03 ± (57.84 - 58.22) MB+0.0%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.1%
.NET 6 - Baseline
process.internal_duration_ms199.20 ± (198.71 - 199.69) ms198.19 ± (197.71 - 198.68) ms-0.5%
process.time_to_main_ms73.06 ± (72.78 - 73.34) ms73.17 ± (72.88 - 73.46) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.37 ± (16.34 - 16.40) MB16.42 ± (16.38 - 16.45) MB+0.3%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.1%
.NET 6 - Bailout
process.internal_duration_ms198.59 ± (198.24 - 198.93) ms198.04 ± (197.79 - 198.29) ms-0.3%
process.time_to_main_ms74.18 ± (73.98 - 74.37) ms73.62 ± (73.42 - 73.82) ms-0.8%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.46 ± (16.44 - 16.49) MB16.49 ± (16.46 - 16.51) MB+0.1%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.2%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms584.53 ± (582.09 - 586.98) ms588.63 ± (585.79 - 591.47) ms+0.7%✅⬆️
process.time_to_main_ms550.75 ± (549.76 - 551.75) ms545.40 ± (543.89 - 546.91) ms-1.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.53 ± (61.45 - 61.61) MB61.45 ± (61.34 - 61.56) MB-0.1%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms196.86 ± (196.38 - 197.33) ms194.51 ± (194.07 - 194.95) ms-1.2%
process.time_to_main_ms72.20 ± (71.94 - 72.46) ms71.09 ± (70.86 - 71.32) ms-1.5%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.77 ± (11.76 - 11.79) MB11.78 ± (11.76 - 11.80) MB+0.0%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.4%
.NET 8 - Bailout
process.internal_duration_ms196.97 ± (196.55 - 197.39) ms194.57 ± (194.12 - 195.03) ms-1.2%
process.time_to_main_ms73.72 ± (73.52 - 73.92) ms72.17 ± (71.92 - 72.43) ms-2.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.79 ± (11.77 - 11.81) MB11.86 ± (11.84 - 11.88) MB+0.6%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.7%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms513.88 ± (511.25 - 516.51) ms515.43 ± (512.59 - 518.26) ms+0.3%✅⬆️
process.time_to_main_ms499.74 ± (499.03 - 500.44) ms495.97 ± (495.21 - 496.73) ms-0.8%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed51.11 ± (51.07 - 51.14) MB51.21 ± (51.17 - 51.24) MB+0.2%✅⬆️
runtime.dotnet.threads.count30 ± (29 - 30)30 ± (29 - 30)-0.1%
Comparison explanation

Execution-time benchmarks measure the whole time it takes to execute a program, and are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are highlighted in **red**. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard.

Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph).

Duration charts
FakeDbCommand (.NET Framework 4.8)
gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8887) - mean (70ms)  : 68, 72
    master - mean (70ms)  : 68, 72

    section Bailout
    This PR (8887) - mean (74ms)  : 72, 76
    master - mean (77ms)  : 73, 80

    section CallTarget+Inlining+NGEN
    This PR (8887) - mean (1,082ms)  : 1039, 1126
    master - mean (1,090ms)  : 1029, 1151

Loading
FakeDbCommand (.NET Core 3.1)
gantt
    title Execution time (ms) FakeDbCommand (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8887) - mean (109ms)  : 105, 113
    master - mean (112ms)  : 105, 118

    section Bailout
    This PR (8887) - mean (110ms)  : 108, 113
    master - mean (114ms)  : 108, 120

    section CallTarget+Inlining+NGEN
    This PR (8887) - mean (787ms)  : 765, 809
    master - mean (780ms)  : 750, 809

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8887) - mean (97ms)  : 92, 102
    master - mean (96ms)  : 93, 99

    section Bailout
    This PR (8887) - mean (97ms)  : 94, 100
    master - mean (101ms)  : 91, 110

    section CallTarget+Inlining+NGEN
    This PR (8887) - mean (934ms)  : 900, 968
    master - mean (937ms)  : 900, 974

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8887) - mean (97ms)  : 90, 103
    master - mean (95ms)  : 91, 100

    section Bailout
    This PR (8887) - mean (98ms)  : 94, 103
    master - mean (95ms)  : 93, 97

    section CallTarget+Inlining+NGEN
    This PR (8887) - mean (810ms)  : 774, 846
    master - mean (814ms)  : 778, 850

Loading
HttpMessageHandler (.NET Framework 4.8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8887) - mean (202ms)  : 197, 207
    master - mean (202ms)  : 196, 209

    section Bailout
    This PR (8887) - mean (205ms)  : 200, 210
    master - mean (205ms)  : 201, 209

    section CallTarget+Inlining+NGEN
    This PR (8887) - mean (1,209ms)  : 1159, 1260
    master - mean (1,213ms)  : 1165, 1261

Loading
HttpMessageHandler (.NET Core 3.1)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8887) - mean (289ms)  : 281, 298
    master - mean (291ms)  : 284, 297

    section Bailout
    This PR (8887) - mean (289ms)  : 281, 296
    master - mean (289ms)  : 283, 295

    section CallTarget+Inlining+NGEN
    This PR (8887) - mean (970ms)  : 942, 997
    master - mean (966ms)  : 948, 985

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8887) - mean (281ms)  : 273, 288
    master - mean (281ms)  : 275, 288

    section Bailout
    This PR (8887) - mean (281ms)  : 277, 284
    master - mean (282ms)  : 278, 286

    section CallTarget+Inlining+NGEN
    This PR (8887) - mean (1,164ms)  : 1137, 1191
    master - mean (1,166ms)  : 1124, 1209

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8887) - mean (276ms)  : 269, 283
    master - mean (279ms)  : 272, 287

    section Bailout
    This PR (8887) - mean (276ms)  : 270, 283
    master - mean (281ms)  : 276, 286

    section CallTarget+Inlining+NGEN
    This PR (8887) - mean (1,043ms)  : 1002, 1084
    master - mean (1,046ms)  : 1009, 1083

Loading

@pr-commenter

pr-commenter Bot commented Jul 9, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-07-10 23:05:11

Comparing candidate commit 20ac1e9 in PR branch steven/fix-azure-function-flake with baseline commit 8f5b860 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 0 performance regressions! Performance is the same for 72 metrics, 0 unstable metrics, 58 known flaky benchmarks, 68 flaky benchmarks without significant changes.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

Known flaky benchmarks

These benchmarks are marked as flaky and will not trigger a failure. Modify FLAKY_BENCHMARKS_REGEX to control which benchmarks are marked as flaky.

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-9562.584op/s; -8786.481op/s] or [-11.338%; -10.418%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild netcoreapp3.1

  • 🟥 throughput [-8504.311op/s; -6761.244op/s] or [-8.647%; -6.875%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+311.196ms; +318.282ms] or [+154.427%; +157.943%]
  • 🟥 throughput [-43.420op/s; -39.364op/s] or [-7.812%; -7.082%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • 🟥 execution_time [+376.643ms; +378.496ms] or [+297.571%; +299.035%]
  • 🟩 throughput [+88.808op/s; +95.389op/s] or [+11.709%; +12.577%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • 🟥 execution_time [+394.624ms; +398.819ms] or [+349.227%; +352.940%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody net472

  • 🟥 allocated_mem [+1.308KB; +1.308KB] or [+27.528%; +27.540%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody net6.0

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+9.976%; +9.987%]
  • 🟩 execution_time [-15.689ms; -11.488ms] or [-7.327%; -5.365%]
  • 🟩 throughput [+7361.805op/s; +10149.010op/s] or [+5.374%; +7.408%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody netcoreapp3.1

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.500%; +27.510%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net472

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-248338.379op/s; -245182.417op/s] or [-25.357%; -25.034%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net6.0

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.557%; +38.566%]
  • 🟩 execution_time [-26.430ms; -21.580ms] or [-11.787%; -9.624%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody netcoreapp3.1

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟥 throughput [-157748.405op/s; -141612.218op/s] or [-22.665%; -20.347%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net6.0

  • 🟩 throughput [+7911.019op/s; +10883.629op/s] or [+5.034%; +6.925%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody netcoreapp3.1

  • 🟩 throughput [+10888.824op/s; +13572.308op/s] or [+8.674%; +10.812%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net6.0

  • 🟩 throughput [+424983.152op/s; +481910.355op/s] or [+14.171%; +16.069%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody netcoreapp3.1

  • 🟩 execution_time [-19.023ms; -14.690ms] or [-8.769%; -6.772%]
  • 🟩 throughput [+145971.366op/s; +200333.189op/s] or [+5.794%; +7.952%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs net472

  • 🟥 execution_time [+300.607ms; +301.563ms] or [+150.203%; +150.681%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs net6.0

  • 🟥 execution_time [+299.987ms; +303.959ms] or [+151.284%; +153.287%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs netcoreapp3.1

  • 🟥 execution_time [+300.457ms; +303.968ms] or [+151.347%; +153.115%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs net472

  • 🟥 execution_time [+295.699ms; +296.555ms] or [+145.236%; +145.656%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs net6.0

  • 🟥 execution_time [+296.862ms; +301.914ms] or [+145.125%; +147.595%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs netcoreapp3.1

  • 🟥 execution_time [+300.191ms; +303.296ms] or [+150.035%; +151.587%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net6.0

  • 🟥 execution_time [+23.495µs; +47.127µs] or [+7.501%; +15.045%]
  • 🟥 throughput [-437.856op/s; -239.004op/s] or [-13.649%; -7.450%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.809ms; +300.563ms] or [+149.635%; +150.012%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net6.0

  • unstable execution_time [+328.046ms; +394.967ms] or [+356.435%; +429.148%]
  • 🟩 throughput [+687.394op/s; +901.529op/s] or [+5.648%; +7.408%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest netcoreapp3.1

  • unstable execution_time [+244.873ms; +309.721ms] or [+185.930%; +235.168%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 allocated_mem [+2.824KB; +2.829KB] or [+5.017%; +5.026%]
  • unstable execution_time [+345.094ms; +410.974ms] or [+158.671%; +188.962%]
  • 🟥 throughput [-532.654op/s; -475.494op/s] or [-48.264%; -43.084%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • unstable execution_time [+208.548ms; +341.856ms] or [+88.874%; +145.685%]
  • 🟥 throughput [-687.683op/s; -603.479op/s] or [-45.869%; -40.252%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • 🟥 execution_time [+354.198ms; +363.701ms] or [+211.852%; +217.535%]
  • 🟥 throughput [-433.075op/s; -394.086op/s] or [-30.154%; -27.440%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net6.0

  • 🟩 execution_time [-179.280µs; -129.021µs] or [-9.082%; -6.536%]
  • 🟩 throughput [+37.411op/s; +50.732op/s] or [+7.385%; +10.015%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+304.328ms; +306.306ms] or [+153.254%; +154.250%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net6.0

  • 🟥 execution_time [+297.871ms; +301.417ms] or [+149.264%; +151.041%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch netcoreapp3.1

  • 🟥 execution_time [+300.425ms; +303.599ms] or [+150.921%; +152.515%]
  • 🟩 throughput [+24458.608op/s; +32919.837op/s] or [+5.152%; +6.935%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+302.276ms; +303.441ms] or [+151.793%; +152.378%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net6.0

  • 🟥 execution_time [+298.685ms; +300.606ms] or [+147.686%; +148.636%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync netcoreapp3.1

  • 🟥 execution_time [+304.686ms; +308.369ms] or [+154.428%; +156.295%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+300.764ms; +302.237ms] or [+150.956%; +151.696%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net6.0

  • 🟥 execution_time [+300.336ms; +311.243ms] or [+149.690%; +155.126%]
  • 🟩 throughput [+31799.342op/s; +42468.582op/s] or [+6.314%; +8.433%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync netcoreapp3.1

  • 🟥 execution_time [+299.694ms; +302.465ms] or [+149.095%; +150.474%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net6.0

  • 🟩 execution_time [-16.131ms; -12.472ms] or [-7.501%; -5.800%]
  • 🟩 throughput [+23237.223op/s; +30012.389op/s] or [+6.375%; +8.233%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net472

  • unstable execution_time [+11.505µs; +55.581µs] or [+2.842%; +13.729%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net6.0

  • 🟩 allocated_mem [-19.262KB; -19.239KB] or [-7.026%; -7.018%]
  • unstable execution_time [-38.879µs; +17.749µs] or [-7.684%; +3.508%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark netcoreapp3.1

  • unstable execution_time [-53.520µs; +8.399µs] or [-9.275%; +1.456%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net6.0

  • unstable execution_time [+6.382µs; +11.909µs] or [+15.084%; +28.150%]
  • 🟥 throughput [-5012.612op/s; -2966.389op/s] or [-21.102%; -12.488%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark netcoreapp3.1

  • unstable execution_time [-14.089µs; -6.257µs] or [-21.858%; -9.708%]
  • unstable throughput [+1566.018op/s; +3233.082op/s] or [+9.608%; +19.836%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.862ms; +303.296ms] or [+152.578%; +153.303%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net6.0

  • 🟥 execution_time [+305.061ms; +308.584ms] or [+155.275%; +157.068%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog netcoreapp3.1

  • 🟥 execution_time [+300.765ms; +304.491ms] or [+150.570%; +152.435%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net6.0

  • 🟩 throughput [+32651.156op/s; +34568.688op/s] or [+6.180%; +6.543%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+298.171ms; +299.977ms] or [+148.612%; +149.511%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net6.0

  • 🟥 execution_time [+300.260ms; +301.311ms] or [+150.776%; +151.304%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog netcoreapp3.1

  • 🟥 execution_time [+303.377ms; +305.713ms] or [+153.853%; +155.038%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.890ms; +300.645ms] or [+149.587%; +149.963%]
  • 🟩 throughput [+61080507.064op/s; +61345437.776op/s] or [+44.483%; +44.676%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net6.0

  • unstable execution_time [+338.807ms; +397.774ms] or [+421.367%; +494.702%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore netcoreapp3.1

  • 🟥 execution_time [+299.919ms; +301.324ms] or [+149.593%; +150.293%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net6.0

  • 🟩 throughput [+110941.602op/s; +120134.852op/s] or [+10.358%; +11.217%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope netcoreapp3.1

  • 🟩 throughput [+46105.000op/s; +65588.849op/s] or [+5.337%; +7.592%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan netcoreapp3.1

  • 🟩 throughput [+81844.212op/s; +91153.222op/s] or [+8.128%; +9.053%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net6.0

  • 🟩 throughput [+51325.641op/s; +57560.949op/s] or [+9.320%; +10.452%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog netcoreapp3.1
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net6.0
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes netcoreapp3.1
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net6.0
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

@bouwkast bouwkast changed the title Azure Functions stabilize isolated host readiness for tests [Azure Functions] Stabilize isolated host readiness and shutdown Jul 10, 2026
@bouwkast

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: ff5f649498

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant