Skip to content

switch process tags on by default#8296

Merged
vandonr merged 14 commits intomasterfrom
vandonr/process3
Apr 2, 2026
Merged

switch process tags on by default#8296
vandonr merged 14 commits intomasterfrom
vandonr/process3

Conversation

@vandonr
Copy link
Copy Markdown
Contributor

@vandonr vandonr commented Mar 12, 2026

Summary of changes

all features have been implemented, we can now GA this to all customers

Reason for change

Implementation details

depends on
#8061
#8163
#8295
theoretically, #8282 as well

Test coverage

Other details

I took the liberty to refactor the asserts in AgentWriterTest to use actual asserts instead of asserting through the mock's Verify, so that we get more actionable errors when the test fails

@dd-trace-dotnet-ci-bot
Copy link
Copy Markdown

dd-trace-dotnet-ci-bot bot commented Mar 12, 2026

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8296) 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
duration71.84 ± (71.85 - 72.17) ms71.70 ± (71.72 - 71.99) ms-0.2%
.NET Framework 4.8 - Bailout
duration76.48 ± (76.34 - 76.73) ms76.65 ± (76.43 - 76.78) ms+0.2%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1073.85 ± (1076.48 - 1083.30) ms1078.52 ± (1078.50 - 1084.81) ms+0.4%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.48 ± (22.44 - 22.52) ms22.35 ± (22.32 - 22.39) ms-0.6%
process.time_to_main_ms84.11 ± (83.91 - 84.31) ms83.67 ± (83.50 - 83.83) ms-0.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.92 ± (10.91 - 10.93) MB10.91 ± (10.90 - 10.91) MB-0.1%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.21 ± (22.16 - 22.25) ms22.44 ± (22.40 - 22.48) ms+1.0%✅⬆️
process.time_to_main_ms85.30 ± (85.10 - 85.50) ms85.80 ± (85.63 - 85.97) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.95 ± (10.95 - 10.95) MB10.93 ± (10.93 - 10.94) MB-0.2%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms221.61 ± (220.41 - 222.81) ms224.89 ± (223.52 - 226.27) ms+1.5%✅⬆️
process.time_to_main_ms535.06 ± (533.81 - 536.30) ms535.50 ± (534.19 - 536.82) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.30 ± (48.26 - 48.34) MB48.26 ± (48.23 - 48.30) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.8%
.NET 6 - Baseline
process.internal_duration_ms21.01 ± (20.97 - 21.04) ms20.97 ± (20.94 - 21.00) ms-0.2%
process.time_to_main_ms72.39 ± (72.22 - 72.56) ms72.35 ± (72.19 - 72.51) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.63 ± (10.63 - 10.63) MB10.63 ± (10.63 - 10.64) MB+0.0%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.02 ± (20.99 - 21.05) ms20.91 ± (20.87 - 20.94) ms-0.5%
process.time_to_main_ms73.76 ± (73.58 - 73.94) ms73.46 ± (73.28 - 73.63) ms-0.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.66 ± (10.66 - 10.67) MB10.74 ± (10.74 - 10.75) MB+0.7%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms388.55 ± (386.20 - 390.90) ms388.76 ± (386.24 - 391.28) ms+0.1%✅⬆️
process.time_to_main_ms534.61 ± (533.57 - 535.66) ms533.74 ± (532.94 - 534.53) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.31 ± (50.29 - 50.34) MB50.31 ± (50.29 - 50.34) MB+0.0%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.23 ± (19.20 - 19.27) ms19.21 ± (19.17 - 19.24) ms-0.1%
process.time_to_main_ms71.44 ± (71.28 - 71.60) ms71.32 ± (71.18 - 71.46) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.68 ± (7.68 - 7.69) MB7.70 ± (7.69 - 7.71) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.21 ± (19.17 - 19.24) ms19.38 ± (19.35 - 19.42) ms+0.9%✅⬆️
process.time_to_main_ms72.33 ± (72.20 - 72.47) ms73.39 ± (73.24 - 73.53) ms+1.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.76 ± (7.75 - 7.77) MB7.74 ± (7.74 - 7.75) MB-0.2%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms309.24 ± (307.27 - 311.20) ms309.46 ± (307.20 - 311.72) ms+0.1%✅⬆️
process.time_to_main_ms490.29 ± (489.56 - 491.02) ms492.88 ± (492.17 - 493.58) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.20 ± (37.18 - 37.22) MB37.32 ± (37.30 - 37.34) MB+0.3%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.1%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration188.66 ± (188.88 - 189.66) ms188.32 ± (188.18 - 188.74) ms-0.2%
.NET Framework 4.8 - Bailout
duration191.97 ± (191.89 - 192.24) ms192.19 ± (192.10 - 192.44) ms+0.1%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1143.25 ± (1149.70 - 1159.28) ms1145.61 ± (1147.24 - 1154.25) ms+0.2%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms184.62 ± (184.39 - 184.85) ms184.23 ± (183.89 - 184.57) ms-0.2%
process.time_to_main_ms79.71 ± (79.54 - 79.87) ms79.20 ± (79.06 - 79.35) ms-0.6%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.16 ± (16.07 - 16.24) MB16.14 ± (16.10 - 16.17) MB-0.1%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 20)+1.7%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms184.25 ± (184.01 - 184.49) ms183.19 ± (182.95 - 183.43) ms-0.6%
process.time_to_main_ms80.61 ± (80.51 - 80.70) ms80.47 ± (80.39 - 80.55) ms-0.2%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.25 ± (16.20 - 16.30) MB16.22 ± (16.20 - 16.25) MB-0.2%
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (20 - 21)+0.0%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms391.61 ± (390.13 - 393.09) ms389.34 ± (388.17 - 390.51) ms-0.6%
process.time_to_main_ms519.81 ± (518.53 - 521.09) ms520.62 ± (519.77 - 521.48) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.08 ± (57.86 - 58.31) MB57.97 ± (57.73 - 58.20) MB-0.2%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.5%
.NET 6 - Baseline
process.internal_duration_ms188.32 ± (188.05 - 188.58) ms188.10 ± (187.90 - 188.31) ms-0.1%
process.time_to_main_ms69.03 ± (68.91 - 69.16) ms68.81 ± (68.69 - 68.92) ms-0.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed15.48 ± (15.31 - 15.65) MB15.91 ± (15.74 - 16.08) MB+2.8%✅⬆️
runtime.dotnet.threads.count17 ± (17 - 18)18 ± (17 - 18)+1.4%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms187.87 ± (187.67 - 188.07) ms187.30 ± (187.14 - 187.47) ms-0.3%
process.time_to_main_ms69.98 ± (69.91 - 70.05) ms69.67 ± (69.61 - 69.73) ms-0.4%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed15.57 ± (15.39 - 15.75) MB15.71 ± (15.53 - 15.89) MB+0.9%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 19)19 ± (18 - 19)+0.7%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms596.18 ± (593.06 - 599.29) ms598.20 ± (595.46 - 600.95) ms+0.3%✅⬆️
process.time_to_main_ms519.46 ± (518.60 - 520.33) ms518.65 ± (517.79 - 519.50) ms-0.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.67 ± (61.57 - 61.77) MB61.96 ± (61.86 - 62.06) MB+0.5%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.3%
.NET 8 - Baseline
process.internal_duration_ms185.77 ± (185.51 - 186.04) ms185.92 ± (185.66 - 186.18) ms+0.1%✅⬆️
process.time_to_main_ms68.05 ± (67.92 - 68.17) ms68.43 ± (68.29 - 68.57) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.56 ± (11.44 - 11.68) MB11.75 ± (11.67 - 11.83) MB+1.7%✅⬆️
runtime.dotnet.threads.count17 ± (17 - 18)18 ± (17 - 18)+1.3%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms184.94 ± (184.75 - 185.13) ms185.22 ± (185.05 - 185.38) ms+0.1%✅⬆️
process.time_to_main_ms69.06 ± (69.01 - 69.12) ms69.41 ± (69.35 - 69.47) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.55 ± (11.42 - 11.67) MB11.69 ± (11.58 - 11.79) MB+1.2%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 19)+1.9%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms520.56 ± (517.82 - 523.30) ms524.65 ± (521.86 - 527.45) ms+0.8%✅⬆️
process.time_to_main_ms473.38 ± (472.74 - 474.03) ms476.91 ± (476.27 - 477.54) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.99 ± (50.96 - 51.02) MB51.00 ± (50.97 - 51.03) MB+0.0%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 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 (8296) - mean (72ms)  : 70, 74
    master - mean (72ms)  : 70, 74

    section Bailout
    This PR (8296) - mean (77ms)  : 75, 78
    master - mean (77ms)  : 74, 79

    section CallTarget+Inlining+NGEN
    This PR (8296) - mean (1,082ms)  : 1035, 1128
    master - mean (1,080ms)  : 1031, 1128

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 (8296) - mean (113ms)  : 109, 116
    master - mean (114ms)  : 110, 117

    section Bailout
    This PR (8296) - mean (115ms)  : 113, 117
    master - mean (114ms)  : 112, 117

    section CallTarget+Inlining+NGEN
    This PR (8296) - mean (797ms)  : 777, 818
    master - mean (795ms)  : 778, 813

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

    section Bailout
    This PR (8296) - mean (100ms)  : 98, 103
    master - mean (101ms)  : 98, 104

    section CallTarget+Inlining+NGEN
    This PR (8296) - mean (953ms)  : 909, 998
    master - mean (951ms)  : 908, 994

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

    section Bailout
    This PR (8296) - mean (100ms)  : 98, 103
    master - mean (99ms)  : 97, 101

    section CallTarget+Inlining+NGEN
    This PR (8296) - mean (832ms)  : 799, 865
    master - mean (829ms)  : 800, 858

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 (8296) - mean (188ms)  : 186, 191
    master - mean (189ms)  : 185, 194

    section Bailout
    This PR (8296) - mean (192ms)  : 191, 194
    master - mean (192ms)  : 190, 194

    section CallTarget+Inlining+NGEN
    This PR (8296) - mean (1,151ms)  : 1100, 1202
    master - mean (1,154ms)  : 1084, 1225

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 (8296) - mean (271ms)  : 267, 276
    master - mean (273ms)  : 269, 277

    section Bailout
    This PR (8296) - mean (271ms)  : 269, 274
    master - mean (273ms)  : 270, 276

    section CallTarget+Inlining+NGEN
    This PR (8296) - mean (939ms)  : 916, 962
    master - mean (941ms)  : 921, 962

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8296) - mean (265ms)  : 261, 268
    master - mean (265ms)  : 262, 269

    section Bailout
    This PR (8296) - mean (265ms)  : 262, 267
    master - mean (265ms)  : 263, 268

    section CallTarget+Inlining+NGEN
    This PR (8296) - mean (1,148ms)  : 1111, 1186
    master - mean (1,147ms)  : 1104, 1190

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8296) - mean (264ms)  : 259, 268
    master - mean (263ms)  : 259, 268

    section Bailout
    This PR (8296) - mean (263ms)  : 261, 265
    master - mean (263ms)  : 260, 266

    section CallTarget+Inlining+NGEN
    This PR (8296) - mean (1,036ms)  : 992, 1080
    master - mean (1,026ms)  : 985, 1067

Loading

@vandonr vandonr marked this pull request as ready for review March 26, 2026 15:05
@vandonr vandonr requested review from a team as code owners March 26, 2026 15:05
Copy link
Copy Markdown

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

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: 6dce309671

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

@pr-commenter
Copy link
Copy Markdown

pr-commenter bot commented Mar 26, 2026

Benchmarks

Benchmark execution time: 2026-03-31 09:04:27

Comparing candidate commit bbf97ba in PR branch vandonr/process3 with baseline commit f22a608 in branch master.

Found 10 performance improvements and 8 performance regressions! Performance is the same for 259 metrics, 11 unstable metrics.

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.ActivityBenchmark.StartStopWithChild netcoreapp3.1

  • 🟩 throughput [+5142.549op/s; +6680.461op/s] or [+5.786%; +7.517%]

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

  • 🟥 execution_time [+10.229ms; +15.712ms] or [+5.100%; +7.834%]

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

  • 🟩 execution_time [-17.956ms; -13.587ms] or [-8.294%; -6.276%]

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

  • 🟩 execution_time [-8.461ms; -6.075ms] or [-8.223%; -5.904%]

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

  • 🟩 execution_time [-40.822ms; -39.219ms] or [-20.198%; -19.405%]

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

  • 🟩 throughput [+302.685op/s; +341.578op/s] or [+24.696%; +27.869%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472

  • 🟩 execution_time [-153.672µs; -147.741µs] or [-5.680%; -5.460%]
  • 🟩 throughput [+21.373op/s; +22.228op/s] or [+5.783%; +6.014%]

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

  • 🟥 execution_time [+13.590ms; +14.181ms] or [+6.847%; +7.144%]
  • 🟩 throughput [+35256.513op/s; +37097.276op/s] or [+5.679%; +5.975%]

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

  • 🟥 throughput [-32881.689op/s; -22571.912op/s] or [-7.896%; -5.420%]

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

  • 🟥 allocated_mem [+16.235KB; +16.272KB] or [+6.291%; +6.306%]

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

  • 🟥 execution_time [+4.165µs; +8.348µs] or [+9.729%; +19.498%]
  • 🟥 throughput [-3803.516op/s; -2077.680op/s] or [-16.215%; -8.857%]

scenario:Benchmarks.Trace.NLogBenchmark.EnrichedLog net472

  • 🟩 throughput [+6513.454op/s; +7235.826op/s] or [+5.090%; +5.654%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472

  • 🟥 throughput [-61634.777op/s; -60149.168op/s] or [-6.702%; -6.541%]

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

  • 🟥 execution_time [+15.116ms; +20.349ms] or [+7.625%; +10.265%]

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

  • 🟩 execution_time [-18.695ms; -13.504ms] or [-8.761%; -6.328%]

@vandonr vandonr requested a review from a team as a code owner March 26, 2026 16:07
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 26, 2026

Snapshots difference summary

The following differences have been observed in committed snapshots. It is meant to help the reviewer.
The diff is simplistic, so please check some files anyway while we improve it.

4 occurrences of :

+        "_dd.tags.process": "entrypoint.basedir:VALUE,entrypoint.name:VALUE,entrypoint.workdir:VALUE,svc.auto:VALUE",

@vandonr vandonr requested review from a team as code owners March 29, 2026 18:52
@vandonr vandonr requested a review from jchrostek-dd March 29, 2026 18:52
var topicSuffix = $"{nameof(SubmitsDataStreams)}-{(enableConsumerScopeCreation ? "1" : "0")}-{(enableLegacyHeaders ? "1" : "0")}";

SetEnvironmentVariable(ConfigurationKeys.DataStreamsMonitoring.Enabled, "1");
SetEnvironmentVariable(ConfigurationKeys.PropagateProcessTags, "0");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What aren't we disabling this here? 🤔 Is there a compatibility issue with DSM?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it's just that process tags influence the DSM hash, and I already have a ton of snapshot changes, I wanted to spare myself the hassle of dealing with those on top of the current ones

I'd like to treat those as a follow up

@lucaspimentel
Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

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

public async Task SubmitsDsmMetrics(string packageVersion, string metadataSchemaVersion)
{
SetEnvironmentVariable(ConfigurationKeys.DataStreamsMonitoring.Enabled, "1");
SetEnvironmentVariable(ConfigurationKeys.PropagateProcessTags, "0");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's not clear to me why we are disabling this setting in several tests that also enable DSM. Is there an interaction between the two settings? Do we have any tests where both are enabled?

tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/AWS/DataStreamsMonitoringAwsKinesisTests.cs
tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/AWS/DataStreamsMonitoringAwsSnsTests.cs
tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/AWS/DataStreamsMonitoringAwsSqsTests.cs
tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/DataStreamsMonitoringManualApiTest.cs

tracer/test/Datadog.Trace.Tests/DataStreamsMonitoring/DataStreamsManagerTests.cs
tracer/test/Datadog.Trace.Tests/DataStreamsMonitoring/DataStreamsMessagePackFormatterTests.cs

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ahh, I see you a replied here already: #8296 (comment)

@vandonr vandonr merged commit b68393d into master Apr 2, 2026
139 checks passed
@vandonr vandonr deleted the vandonr/process3 branch April 2, 2026 09:33
@github-actions github-actions bot added this to the vNext-v3 milestone Apr 2, 2026
andrewlock added a commit that referenced this pull request Apr 2, 2026
vandonr added a commit that referenced this pull request Apr 2, 2026
## Summary of changes

follow up on #8296
debugger itests didn't run in the PR
so we missed the fact that we need to apply the same scrubbing we did on
other tests for those too

## Reason for change

## Implementation details

## Test coverage

## Other details
<!-- Fixes #{issue} -->


<!--  ⚠️ Note:

Where possible, please obtain 2 approvals prior to merging. Unless
CODEOWNERS specifies otherwise, for external teams it is typically best
to have one review from a team member, and one review from apm-dotnet.
Trivial changes do not require 2 reviews.

MergeQueue is NOT enabled in this repository. If you have write access
to the repo, the PR has 1-2 approvals (see above), and all of the
required checks have passed, you can use the Squash and Merge button to
merge the PR. If you don't have write access, or you need help, reach
out in the #apm-dotnet channel in Slack.
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants