Skip to content

[tracing] fix bundle detection for check-process for AAS - #8910

Open
chojomok wants to merge 21 commits into
masterfrom
mohammad/fix-bundle-detection
Open

[tracing] fix bundle detection for check-process for AAS#8910
chojomok wants to merge 21 commits into
masterfrom
mohammad/fix-bundle-detection

Conversation

@chojomok

@chojomok chojomok commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Summary of changes

Fixes dd-dotnet check process bundle detection for Azure App Service Linux apps launched with dotnet <app>.dll.

Reason for change

For these apps, MainModule is the dotnet host rather than the application executable. The check therefore reconstructed the bundle profiler path from the wrong directory and showed installer guidance instead of bundle guidance.

Implementation details

When WEBSITE_SITE_NAME is present, check process recognizes Azure App Service and uses /home/site/wwwroot as the bundle root.
Other processes retain the existing MainModule-directory path check. Bundle matching remains an exact profiler-path comparison.

Test coverage

Added Linux-only coverage through ProcessBasicCheck.Run() for Azure App Service. The test sets WEBSITE_SITE_NAME and verifies bundle detection for each supported Linux profiler path: x64, musl x64, arm64, and musl arm64.

@chojomok
chojomok force-pushed the mohammad/fix-bundle-detection branch from 50d5262 to eb7beb6 Compare July 20, 2026 20:47
@dd-trace-dotnet-ci-bot

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

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8910) 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
duration70.89 ± (70.93 - 71.25) ms73.73 ± (73.53 - 74.13) ms+4.0%✅⬆️
.NET Framework 4.8 - Bailout
duration78.52 ± (78.20 - 78.86) ms76.41 ± (76.41 - 76.86) ms-2.7%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1093.77 ± (1092.38 - 1099.92) ms1087.92 ± (1089.22 - 1096.69) ms-0.5%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.32 ± (22.26 - 22.37) ms22.27 ± (22.23 - 22.31) ms-0.2%
process.time_to_main_ms83.75 ± (83.41 - 84.09) ms84.46 ± (84.19 - 84.72) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed11.01 ± (11.01 - 11.02) MB11.01 ± (11.01 - 11.01) MB-0.0%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.30 ± (22.26 - 22.33) ms22.09 ± (22.06 - 22.12) ms-0.9%
process.time_to_main_ms85.00 ± (84.75 - 85.25) ms83.07 ± (82.86 - 83.28) ms-2.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed11.05 ± (11.05 - 11.05) MB11.05 ± (11.04 - 11.05) MB-0.0%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms209.43 ± (208.56 - 210.31) ms209.60 ± (208.61 - 210.59) ms+0.1%✅⬆️
process.time_to_main_ms537.32 ± (536.00 - 538.63) ms538.21 ± (536.96 - 539.46) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.62 ± (49.59 - 49.64) MB49.52 ± (49.48 - 49.55) MB-0.2%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.0%
.NET 6 - Baseline
process.internal_duration_ms20.97 ± (20.93 - 21.00) ms20.73 ± (20.70 - 20.77) ms-1.1%
process.time_to_main_ms72.03 ± (71.83 - 72.23) ms71.14 ± (70.98 - 71.30) ms-1.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.72 ± (10.72 - 10.73) MB10.72 ± (10.72 - 10.72) MB-0.1%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.97 ± (20.93 - 21.01) ms20.68 ± (20.65 - 20.71) ms-1.4%
process.time_to_main_ms74.70 ± (74.46 - 74.93) ms72.27 ± (72.13 - 72.40) ms-3.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.84 ± (10.84 - 10.84) MB10.85 ± (10.85 - 10.86) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms371.62 ± (369.60 - 373.63) ms370.34 ± (368.05 - 372.63) ms-0.3%
process.time_to_main_ms544.81 ± (543.58 - 546.03) ms547.98 ± (546.68 - 549.28) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.65 ± (50.62 - 50.67) MB50.61 ± (50.59 - 50.63) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.1%
.NET 8 - Baseline
process.internal_duration_ms19.10 ± (19.07 - 19.13) ms19.45 ± (19.41 - 19.50) ms+1.8%✅⬆️
process.time_to_main_ms70.17 ± (70.04 - 70.29) ms73.42 ± (73.17 - 73.66) ms+4.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.76 ± (7.76 - 7.77) MB7.76 ± (7.75 - 7.76) MB-0.1%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.16 ± (19.14 - 19.19) ms19.16 ± (19.13 - 19.18) ms-0.0%
process.time_to_main_ms72.44 ± (72.21 - 72.67) ms72.10 ± (71.96 - 72.25) ms-0.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.82 ± (7.81 - 7.82) MB7.81 ± (7.81 - 7.81) MB-0.1%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms298.88 ± (296.44 - 301.32) ms298.18 ± (295.93 - 300.43) ms-0.2%
process.time_to_main_ms493.57 ± (492.49 - 494.66) ms493.37 ± (492.50 - 494.24) ms-0.0%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed38.04 ± (38.02 - 38.07) MB38.03 ± (38.00 - 38.06) MB-0.0%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.7%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration208.47 ± (208.51 - 209.60) ms209.05 ± (209.02 - 210.08) ms+0.3%✅⬆️
.NET Framework 4.8 - Bailout
duration213.61 ± (213.27 - 214.01) ms213.50 ± (213.20 - 213.78) ms-0.0%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1246.69 ± (1248.03 - 1253.95) ms1249.86 ± (1249.50 - 1255.20) ms+0.3%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms200.43 ± (200.09 - 200.76) ms200.33 ± (199.97 - 200.70) ms-0.0%
process.time_to_main_ms88.78 ± (88.50 - 89.07) ms87.92 ± (87.67 - 88.18) ms-1.0%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.07 ± (16.04 - 16.09) MB16.19 ± (16.17 - 16.22) MB+0.8%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (19 - 20)-1.2%
.NET Core 3.1 - Bailout
process.internal_duration_ms200.51 ± (200.23 - 200.80) ms200.30 ± (200.01 - 200.59) ms-0.1%
process.time_to_main_ms90.14 ± (89.93 - 90.35) ms90.09 ± (89.89 - 90.29) ms-0.1%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.04 ± (16.02 - 16.06) MB16.20 ± (16.18 - 16.22) MB+1.0%✅⬆️
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (20 - 21)+0.3%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms395.43 ± (394.27 - 396.59) ms395.42 ± (394.23 - 396.60) ms-0.0%
process.time_to_main_ms557.96 ± (556.82 - 559.11) ms561.30 ± (560.11 - 562.50) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed59.63 ± (59.44 - 59.81) MB59.69 ± (59.54 - 59.85) MB+0.1%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.4%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms205.95 ± (205.54 - 206.36) ms206.15 ± (205.76 - 206.54) ms+0.1%✅⬆️
process.time_to_main_ms77.87 ± (77.61 - 78.14) ms77.84 ± (77.61 - 78.07) ms-0.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.44 ± (16.42 - 16.47) MB16.38 ± (16.35 - 16.40) MB-0.4%
runtime.dotnet.threads.count20 ± (19 - 20)19 ± (19 - 20)-0.6%
.NET 6 - Bailout
process.internal_duration_ms205.09 ± (204.74 - 205.44) ms205.56 ± (205.22 - 205.90) ms+0.2%✅⬆️
process.time_to_main_ms78.48 ± (78.30 - 78.66) ms78.72 ± (78.54 - 78.89) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.41 ± (16.38 - 16.43) MB16.41 ± (16.38 - 16.43) MB+0.0%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 21)+1.0%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms579.03 ± (576.35 - 581.71) ms584.25 ± (581.65 - 586.84) ms+0.9%✅⬆️
process.time_to_main_ms574.48 ± (573.56 - 575.40) ms574.03 ± (573.06 - 574.99) ms-0.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.38 ± (61.33 - 61.43) MB61.74 ± (61.64 - 61.84) MB+0.6%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)+0.2%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms205.18 ± (204.83 - 205.53) ms204.73 ± (204.35 - 205.11) ms-0.2%
process.time_to_main_ms77.15 ± (76.89 - 77.41) ms76.77 ± (76.53 - 77.02) ms-0.5%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.80 ± (11.77 - 11.82) MB11.82 ± (11.79 - 11.84) MB+0.2%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.4%
.NET 8 - Bailout
process.internal_duration_ms204.91 ± (204.60 - 205.23) ms204.69 ± (204.33 - 205.04) ms-0.1%
process.time_to_main_ms78.13 ± (77.95 - 78.31) ms77.82 ± (77.64 - 77.99) ms-0.4%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.81 ± (11.78 - 11.83) MB11.83 ± (11.81 - 11.85) MB+0.2%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.9%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms518.62 ± (513.59 - 523.65) ms507.65 ± (504.06 - 511.25) ms-2.1%
process.time_to_main_ms525.82 ± (525.05 - 526.60) ms524.15 ± (523.43 - 524.87) ms-0.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed51.38 ± (51.33 - 51.43) MB51.41 ± (51.37 - 51.46) MB+0.1%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.2%
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 (8910) - mean (74ms)  : 69, 78
    master - mean (71ms)  : 69, 73

    section Bailout
    This PR (8910) - mean (77ms)  : 73, 80
    master - mean (79ms)  : 73, 84

    section CallTarget+Inlining+NGEN
    This PR (8910) - mean (1,093ms)  : 1039, 1147
    master - mean (1,096ms)  : 1041, 1152

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 (8910) - mean (113ms)  : 107, 120
    master - mean (113ms)  : 107, 120

    section Bailout
    This PR (8910) - mean (111ms)  : 108, 114
    master - mean (115ms)  : 110, 120

    section CallTarget+Inlining+NGEN
    This PR (8910) - mean (785ms)  : 762, 809
    master - mean (785ms)  : 766, 803

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8910) - mean (97ms)  : 94, 101
    master - mean (100ms)  : 96, 103

    section Bailout
    This PR (8910) - mean (98ms)  : 96, 101
    master - mean (102ms)  : 98, 107

    section CallTarget+Inlining+NGEN
    This PR (8910) - mean (953ms)  : 913, 994
    master - mean (948ms)  : 900, 995

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8910) - mean (100ms)  : 95, 106
    master - mean (97ms)  : 94, 99

    section Bailout
    This PR (8910) - mean (98ms)  : 95, 101
    master - mean (99ms)  : 95, 104

    section CallTarget+Inlining+NGEN
    This PR (8910) - mean (822ms)  : 787, 857
    master - mean (824ms)  : 775, 873

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 (8910) - mean (210ms)  : 203, 216
    master - mean (209ms)  : 203, 215

    section Bailout
    This PR (8910) - mean (213ms)  : 211, 216
    master - mean (214ms)  : 210, 217

    section CallTarget+Inlining+NGEN
    This PR (8910) - mean (1,252ms)  : 1213, 1292
    master - mean (1,251ms)  : 1208, 1294

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 (8910) - mean (299ms)  : 293, 306
    master - mean (299ms)  : 293, 306

    section Bailout
    This PR (8910) - mean (301ms)  : 296, 305
    master - mean (301ms)  : 296, 306

    section CallTarget+Inlining+NGEN
    This PR (8910) - mean (1,000ms)  : 981, 1018
    master - mean (995ms)  : 971, 1019

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8910) - mean (294ms)  : 289, 300
    master - mean (294ms)  : 289, 299

    section Bailout
    This PR (8910) - mean (294ms)  : 290, 298
    master - mean (293ms)  : 289, 298

    section CallTarget+Inlining+NGEN
    This PR (8910) - mean (1,197ms)  : 1159, 1235
    master - mean (1,191ms)  : 1147, 1236

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8910) - mean (293ms)  : 287, 298
    master - mean (293ms)  : 288, 299

    section Bailout
    This PR (8910) - mean (293ms)  : 288, 298
    master - mean (294ms)  : 290, 298

    section CallTarget+Inlining+NGEN
    This PR (8910) - mean (1,069ms)  : 1013, 1124
    master - mean (1,076ms)  : 1006, 1146

Loading

@pr-commenter

pr-commenter Bot commented Jul 20, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-07-31 20:42:05

Comparing candidate commit 7fbb973 in PR branch mohammad/fix-bundle-detection with baseline commit 1dbaad3 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 2 performance regressions! Performance is the same for 70 metrics, 0 unstable metrics, 68 known flaky benchmarks, 58 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 ----------------------------------'

scenario:Benchmarks.Trace.DbCommandBenchmark.ExecuteNonQuery net472

  • 🟥 throughput [-31720.075op/s; -28913.988op/s] or [-8.934%; -8.144%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-4759.431op/s; -4552.322op/s] or [-5.433%; -5.197%]

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 [-8396.598op/s; -7980.294op/s] or [-9.956%; -9.462%]

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

  • 🟥 throughput [-10523.699op/s; -9232.765op/s] or [-10.700%; -9.388%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+299.802ms; +304.135ms] or [+148.772%; +150.922%]
  • 🟥 throughput [-49.934op/s; -44.546op/s] or [-8.984%; -8.015%]

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

  • 🟥 execution_time [+378.897ms; +382.504ms] or [+299.352%; +302.202%]
  • 🟩 throughput [+85.600op/s; +88.058op/s] or [+11.286%; +11.610%]

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

  • 🟥 execution_time [+390.236ms; +395.269ms] or [+345.344%; +349.798%]

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

  • 🟥 allocated_mem [+4.693KB; +4.694KB] or [+98.806%; +98.821%]
  • 🟥 throughput [-60007.188op/s; -59659.319op/s] or [-46.689%; -46.418%]

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

  • 🟥 allocated_mem [+3.816KB; +3.816KB] or [+80.699%; +80.711%]
  • 🟩 execution_time [-15.677ms; -11.507ms] or [-7.322%; -5.374%]
  • 🟥 throughput [-59511.335op/s; -56745.638op/s] or [-43.440%; -41.421%]

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

  • 🟥 allocated_mem [+4.544KB; +4.544KB] or [+98.261%; +98.274%]
  • 🟥 throughput [-48413.876op/s; -46160.266op/s] or [-43.772%; -41.734%]

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

  • 🟥 allocated_mem [+1.315KB; +1.315KB] or [+106.388%; +106.404%]
  • 🟥 throughput [-269950.504op/s; -265990.273op/s] or [-27.563%; -27.159%]

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

  • 🟥 allocated_mem [+479 bytes; +480 bytes] or [+39.212%; +39.221%]
  • 🟩 execution_time [-25.820ms; -20.962ms] or [-11.515%; -9.348%]

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

  • 🟥 allocated_mem [+1.280KB; +1.280KB] or [+105.947%; +105.963%]
  • 🟥 throughput [-155937.117op/s; -139907.012op/s] or [-22.405%; -20.102%]

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

  • 🟥 allocated_mem [+3.378KB; +3.378KB] or [+89.003%; +89.017%]
  • 🟥 throughput [-72410.640op/s; -71649.170op/s] or [-48.732%; -48.219%]

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

  • 🟥 allocated_mem [+3.336KB; +3.336KB] or [+88.150%; +88.161%]
  • 🟥 throughput [-73144.415op/s; -70259.698op/s] or [-46.541%; -44.705%]

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

  • 🟥 allocated_mem [+3.264KB; +3.264KB] or [+88.493%; +88.506%]
  • 🟥 throughput [-55719.910op/s; -53086.357op/s] or [-44.388%; -42.290%]

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

  • 🟩 throughput [+281695.122op/s; +317418.797op/s] or [+9.393%; +10.584%]

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

  • 🟩 execution_time [-19.289ms; -14.956ms] or [-8.891%; -6.894%]

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

  • 🟩 allocated_mem [-13.759KB; -13.756KB] or [-42.324%; -42.316%]
  • 🟥 execution_time [+300.202ms; +300.954ms] or [+150.001%; +150.376%]
  • 🟩 throughput [+963.090op/s; +996.567op/s] or [+10.637%; +11.007%]

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

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+298.506ms; +305.343ms] or [+150.537%; +153.985%]
  • 🟩 throughput [+2222.773op/s; +2501.181op/s] or [+17.001%; +19.130%]

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

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+299.945ms; +302.368ms] or [+151.089%; +152.309%]
  • 🟩 throughput [+1874.038op/s; +2002.013op/s] or [+18.093%; +19.328%]

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

  • 🟥 execution_time [+297.153ms; +298.132ms] or [+145.950%; +146.431%]
  • 🟩 throughput [+578.783op/s; +597.892op/s] or [+15.344%; +15.850%]

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

  • 🟥 execution_time [+295.308ms; +297.387ms] or [+144.365%; +145.381%]
  • 🟩 throughput [+2670.625op/s; +2714.902op/s] or [+38.799%; +39.442%]

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

  • 🟥 execution_time [+300.474ms; +301.110ms] or [+150.176%; +150.494%]
  • 🟩 throughput [+1346.652op/s; +1393.494op/s] or [+26.730%; +27.660%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472

  • 🟩 execution_time [-146.010µs; -142.078µs] or [-29.978%; -29.170%]
  • 🟩 throughput [+849.789op/s; +875.616op/s] or [+41.389%; +42.646%]

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

  • 🟩 execution_time [-133.899µs; -106.727µs] or [-30.710%; -24.478%]
  • 🟩 throughput [+804.907op/s; +936.534op/s] or [+34.994%; +40.717%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark netcoreapp3.1

  • 🟩 execution_time [-140.305µs; -118.239µs] or [-30.061%; -25.333%]
  • 🟩 throughput [+755.598op/s; +839.716op/s] or [+34.880%; +38.763%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net472

  • 🟩 execution_time [-126.764µs; -122.576µs] or [-34.225%; -33.095%]
  • 🟩 throughput [+1347.103op/s; +1395.091op/s] or [+49.890%; +51.668%]

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

  • 🟩 execution_time [-103.274µs; -79.585µs] or [-32.970%; -25.407%]
  • 🟩 throughput [+1200.131op/s; +1405.462op/s] or [+37.412%; +43.812%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack netcoreapp3.1

  • 🟩 execution_time [-136.060µs; -113.656µs] or [-37.221%; -31.092%]
  • 🟩 throughput [+1300.287op/s; +1437.865op/s] or [+46.662%; +51.599%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+300.210ms; +301.068ms] or [+149.836%; +150.264%]

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

  • unstable execution_time [+316.851ms; +386.337ms] or [+344.272%; +419.771%]
  • 🟩 throughput [+953.337op/s; +1149.015op/s] or [+7.834%; +9.442%]

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

  • unstable execution_time [+262.838ms; +317.495ms] or [+199.571%; +241.071%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 allocated_mem [+2.822KB; +2.828KB] or [+5.014%; +5.024%]
  • unstable execution_time [+317.563ms; +363.933ms] or [+146.012%; +167.333%]
  • 🟥 throughput [-520.254op/s; -472.226op/s] or [-47.140%; -42.788%]

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

  • unstable execution_time [+202.772ms; +336.037ms] or [+86.413%; +143.205%]
  • 🟥 throughput [-671.245op/s; -587.806op/s] or [-44.772%; -39.207%]

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

  • 🟥 execution_time [+332.979ms; +341.053ms] or [+199.160%; +203.989%]
  • 🟥 throughput [-367.854op/s; -333.570op/s] or [-25.613%; -23.226%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice netcoreapp3.1

  • unstable throughput [+15.306op/s; +56.131op/s] or [+4.400%; +16.135%]

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

  • 🟩 execution_time [-175.544µs; -124.997µs] or [-8.892%; -6.332%]
  • 🟩 throughput [+36.118op/s; +49.750op/s] or [+7.130%; +9.821%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+303.331ms; +306.771ms] or [+152.751%; +154.484%]

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

  • 🟥 execution_time [+298.916ms; +304.734ms] or [+149.787%; +152.703%]

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

  • 🟥 execution_time [+299.684ms; +302.845ms] or [+150.549%; +152.136%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+301.843ms; +303.060ms] or [+151.575%; +152.187%]

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

  • 🟥 execution_time [+299.602ms; +301.990ms] or [+148.140%; +149.321%]

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

  • 🟥 execution_time [+305.163ms; +308.712ms] or [+154.670%; +156.469%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+299.146ms; +300.906ms] or [+150.144%; +151.027%]

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

  • 🟥 execution_time [+297.836ms; +301.462ms] or [+148.444%; +150.251%]
  • 🟩 throughput [+35352.122op/s; +49044.873op/s] or [+7.020%; +9.739%]

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

  • 🟥 execution_time [+300.514ms; +303.229ms] or [+149.503%; +150.854%]

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

  • 🟩 execution_time [-16.430ms; -12.758ms] or [-7.640%; -5.933%]
  • 🟩 throughput [+19746.527op/s; +28112.142op/s] or [+5.417%; +7.712%]

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

  • unstable execution_time [+11.486µs; +54.301µs] or [+2.837%; +13.413%]

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

  • 🟩 allocated_mem [-18.736KB; -18.714KB] or [-6.834%; -6.826%]
  • unstable execution_time [-24.893µs; +35.640µs] or [-4.920%; +7.044%]
  • unstable throughput [-121.941op/s; +87.101op/s] or [-6.085%; +4.346%]

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

  • 🟩 allocated_mem [-15.722KB; -15.704KB] or [-5.732%; -5.725%]
  • unstable execution_time [-70.853µs; -12.184µs] or [-12.278%; -2.111%]

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

  • unstable execution_time [+9.672µs; +15.035µs] or [+22.862%; +35.537%]
  • 🟥 throughput [-6182.765op/s; -4170.931op/s] or [-26.027%; -17.558%]

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

  • unstable execution_time [-13.912µs; -6.210µs] or [-21.583%; -9.635%]
  • unstable throughput [+1514.053op/s; +3172.575op/s] or [+9.289%; +19.465%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.636ms; +304.243ms] or [+152.969%; +153.781%]

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

  • 🟥 execution_time [+302.325ms; +305.304ms] or [+153.882%; +155.399%]

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

  • 🟥 execution_time [+300.161ms; +302.274ms] or [+150.268%; +151.325%]

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

  • 🟩 throughput [+32954.528op/s; +44295.510op/s] or [+6.238%; +8.384%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+297.751ms; +300.257ms] or [+148.402%; +149.651%]

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

  • 🟥 execution_time [+300.627ms; +310.191ms] or [+150.961%; +155.763%]

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

  • 🟥 execution_time [+303.463ms; +306.129ms] or [+153.897%; +155.249%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+301.263ms; +302.393ms] or [+150.272%; +150.835%]
  • 🟩 throughput [+65820835.779op/s; +66156961.752op/s] or [+47.935%; +48.180%]

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

  • 🟥 execution_time [+416.825ms; +421.788ms] or [+518.397%; +524.569%]

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

  • 🟥 execution_time [+298.787ms; +299.992ms] or [+149.028%; +149.629%]
  • 🟩 throughput [+17991782.973op/s; +18971654.135op/s] or [+7.969%; +8.403%]

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

  • 🟩 throughput [+94706.305op/s; +104510.667op/s] or [+8.842%; +9.758%]

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

  • 🟩 throughput [+53755.090op/s; +73154.634op/s] or [+6.222%; +8.467%]

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

  • 🟩 throughput [+90127.277op/s; +120542.892op/s] or [+6.976%; +9.330%]

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

  • 🟩 throughput [+85253.346op/s; +94493.959op/s] or [+8.467%; +9.385%]

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

  • 🟩 throughput [+46005.439op/s; +51925.241op/s] or [+8.354%; +9.429%]

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

  • 🟩 throughput [+23816.160op/s; +33676.462op/s] or [+5.331%; +7.538%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net6.0

  • 🟩 throughput [+52542.586op/s; +71369.202op/s] or [+5.870%; +7.974%]

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.ObjectExtractorSimpleBody net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net6.0
  • 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.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

@chojomok chojomok added area:tools AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos labels Jul 22, 2026
chojomok and others added 8 commits July 22, 2026 17:05
TracingWithBundle is exposed as internal (not private) so
ProcessBasicCheckTests can exercise it directly. No behavior change yet -
DetectsBundleWhenLaunchedAsDotnetDll documents the still-open bug where
`dotnet app.dll` launches (e.g. Azure App Service Linux) report the dotnet
host as MainModule instead of the app directory, so the bundle check never
matches. Other tests confirm existing working scenarios (matching
MainModule, non-bundle rejection, Windows suffixes) are unaffected.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The test project only targeted net7.0, which CI's default (non-thorough)
test matrix never runs on Linux/macOS - it runs netcoreapp3.1/net9.0/net10.0
instead. That meant ProcessBasicCheckTests silently never executed in CI.
Match the frameworks already supported by Datadog.Trace.Tools.dd_dotnet
itself (net7.0;net8.0;net9.0;net10.0) so the suite actually runs.

Verified locally across all four frameworks: 43 passed, 4 skipped
(Windows-only cases), 1 failed (the regression case) - consistent, no new
breakage introduced.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
TracingWithBundle reconstructed the expected profiler path from
process.MainModule's directory. For a process launched as `dotnet
app.dll` (e.g. Azure App Service Linux, or any framework-dependent
deploy), MainModule is the dotnet host executable, not the app's own
directory, so the reconstructed path never matched the real
CORECLR_PROFILER_PATH - even on a correctly configured bundle
(Datadog.Trace.Bundle NuGet) install. The check fell through to the
installer-package path instead, producing a confusing, unrelated error.

Match by suffix instead of reconstructing the full expected path, so
detection no longer depends on where the process's main module happens
to live.

All ProcessBasicCheckTests now pass, including the regression case
DetectsBundleRegardlessOfAppDirectory (previously
DetectsBundleWhenLaunchedAsDotnetDll, the test added and verified
failing against the unfixed code in CI).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
TracingWithBundle now tries the original exact match against
process.MainModule's directory first (the more precise signal when
MainModule correctly reflects the app directory). Only when that fails
does it fall back to matching the profiler path by suffix alone - which
is what's needed for `dotnet <app>.dll` launches (e.g. Azure App Service
Linux), where MainModule is the dotnet host, not the app directory. The
fallback path calls out via Utils.WriteInfo so it's visible when the
less precise heuristic was needed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
TracingWithBundle previously printed its fallback explanation as a side
effect regardless of the overall check result, so it showed up even on
fully healthy runs. It's now a pure detection function that reports
whether the fallback path was used via an out parameter, and the caller
only prints the explanation inside the branch where it's actually
relevant (the check is failing and the fallback is what identifies it as
a bundle install instead of falling through to the installer message).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@chojomok
chojomok force-pushed the mohammad/fix-bundle-detection branch from 63a8b65 to 396628a Compare July 22, 2026 21:07
chojomok and others added 11 commits July 22, 2026 17:17
ProcessBasicCheckRunTests exercises ProcessBasicCheck.Run() directly
(via a redirected AnsiConsole, same pattern already used by the
IntegrationTests ConsoleHelper) against the real failure scenario: a
correctly configured Datadog.Trace.Bundle Nuget install launched as
`dotnet <app>.dll`, with an unrelated check also failing so the run
overall fails. Asserts the printed output identifies it as a bundle
install rather than falling through to the confusing installer error
that mentions /opt/datadog.

Verified this test fails (along with the existing unit test) when the
suffix-only fallback is disabled, and passes once restored.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Path.GetDirectoryName normalizes a leading forward-slash root
differently on real Windows than on Linux/macOS, so the exact-match
scenario these tests exercise (mainModule built with a hardcoded "/app"
Unix-style path) doesn't hold there - usedFallback comes back true
instead of false, even though the underlying detection logic is correct.
This only became visible once the tests started asserting on
usedFallback directly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@chojomok chojomok changed the title [tracing] fix bundle detection for check-process [tracing] fix bundle detection for check-process for AAS Jul 27, 2026
@chojomok
chojomok marked this pull request as ready for review July 27, 2026 17:36
@chojomok
chojomok requested a review from a team as a code owner July 27, 2026 17:36

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 21b9c0be34

ℹ️ 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".

Comment thread tracer/src/Datadog.Trace.Tools.dd_dotnet/Checks/ProcessBasicCheck.cs Outdated
@chojomok
chojomok marked this pull request as draft July 27, 2026 18:04
@chojomok
chojomok marked this pull request as ready for review July 30, 2026 17:42
@chojomok
chojomok force-pushed the mohammad/fix-bundle-detection branch 2 times, most recently from 7295536 to 3476221 Compare July 31, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos area:tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant