Skip to content

Conversation

@vandonr
Copy link
Contributor

@vandonr vandonr commented Nov 18, 2025

Summary of changes

adding process tags next to the service name in remote config requests

equivalent Java PR: DataDog/dd-trace-java#8705
related change on the agent side: DataDog/datadog-agent#36049

Reason for change

AIDM-195

Implementation details

Test coverage

I didn't see any existing tests on the content of the requests, didn't really feel like adding some.

Other details

@vandonr vandonr requested a review from a team as a code owner November 18, 2025 15:27
@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Nov 18, 2025

⚠️ Tests

⚠️ Warnings

❄️ 1 New flaky test detected

ApplicationDoesNotReturnErrors from Datadog.Trace.ClrProfiler.IntegrationTests.IIS.LoaderOptimizationStartup (Datadog)

Actual:   InternalServerError differ

ℹ️ Info

🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: a7ecfe1 | Docs | Datadog PR Page | Was this helpful? Give us feedback!

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

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (7840) 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
duration74.47 ± (74.60 - 75.15) ms75.05 ± (75.14 - 75.84) ms+0.8%✅⬆️
.NET Framework 4.8 - Bailout
duration79.49 ± (79.48 - 80.21) ms79.87 ± (79.66 - 80.31) ms+0.5%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1119.76 ± (1120.50 - 1129.57) ms1118.13 ± (1122.25 - 1133.04) ms-0.1%
.NET Core 3.1 - Baseline
process.internal_duration_ms23.05 ± (22.97 - 23.13) ms22.92 ± (22.84 - 23.01) ms-0.6%
process.time_to_main_ms88.18 ± (87.82 - 88.55) ms86.96 ± (86.61 - 87.32) ms-1.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.96 ± (10.95 - 10.96) MB10.91 ± (10.91 - 10.92) MB-0.4%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.96 ± (22.89 - 23.04) ms22.96 ± (22.88 - 23.04) ms-0.0%
process.time_to_main_ms88.78 ± (88.38 - 89.17) ms89.56 ± (89.14 - 89.99) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.99 ± (10.98 - 10.99) MB10.96 ± (10.95 - 10.96) MB-0.3%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms222.16 ± (220.91 - 223.41) ms219.24 ± (217.87 - 220.61) ms-1.3%
process.time_to_main_ms549.67 ± (548.60 - 550.74) ms543.70 ± (542.58 - 544.82) ms-1.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed52.53 ± (52.51 - 52.56) MB52.43 ± (52.41 - 52.45) MB-0.2%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms21.97 ± (21.89 - 22.04) ms21.70 ± (21.63 - 21.77) ms-1.2%
process.time_to_main_ms77.81 ± (77.45 - 78.16) ms76.40 ± (76.07 - 76.73) ms-1.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.64 ± (10.64 - 10.64) MB10.64 ± (10.64 - 10.65) MB+0.0%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.82 ± (21.76 - 21.88) ms21.58 ± (21.52 - 21.63) ms-1.1%
process.time_to_main_ms78.30 ± (78.01 - 78.59) ms77.41 ± (77.13 - 77.70) ms-1.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.69 ± (10.69 - 10.69) MB10.68 ± (10.67 - 10.68) MB-0.1%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms208.84 ± (207.46 - 210.21) ms206.16 ± (204.70 - 207.63) ms-1.3%
process.time_to_main_ms519.55 ± (518.44 - 520.65) ms505.28 ± (504.24 - 506.33) ms-2.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed51.75 ± (51.73 - 51.77) MB51.59 ± (51.56 - 51.63) MB-0.3%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.0%
.NET 8 - Baseline
process.internal_duration_ms20.21 ± (20.14 - 20.29) ms19.97 ± (19.89 - 20.04) ms-1.2%
process.time_to_main_ms76.06 ± (75.73 - 76.40) ms74.79 ± (74.47 - 75.11) ms-1.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.70 ± (7.70 - 7.71) MB7.66 ± (7.66 - 7.67) MB-0.5%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms20.00 ± (19.93 - 20.06) ms19.89 ± (19.82 - 19.96) ms-0.5%
process.time_to_main_ms76.96 ± (76.68 - 77.23) ms76.83 ± (76.52 - 77.13) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.75 ± (7.74 - 7.76) MB7.74 ± (7.74 - 7.75) MB-0.1%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms193.18 ± (192.24 - 194.13) ms191.66 ± (190.81 - 192.50) ms-0.8%
process.time_to_main_ms494.16 ± (493.27 - 495.05) ms484.54 ± (483.45 - 485.62) ms-1.9%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed38.99 ± (38.95 - 39.03) MB38.90 ± (38.86 - 38.94) MB-0.2%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.0%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration192.52 ± (192.55 - 193.32) ms192.53 ± (192.50 - 193.31) ms+0.0%✅⬆️
.NET Framework 4.8 - Bailout
duration196.51 ± (196.56 - 197.37) ms195.91 ± (195.85 - 196.36) ms-0.3%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1176.52 ± (1180.84 - 1192.06) ms1166.26 ± (1167.54 - 1175.59) ms-0.9%
.NET Core 3.1 - Baseline
process.internal_duration_ms188.27 ± (187.86 - 188.69) ms188.59 ± (188.30 - 188.88) ms+0.2%✅⬆️
process.time_to_main_ms80.73 ± (80.52 - 80.93) ms80.68 ± (80.50 - 80.87) ms-0.1%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.10 ± (16.08 - 16.12) MB16.16 ± (16.13 - 16.18) MB+0.4%✅⬆️
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (20 - 20)+0.4%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms186.93 ± (186.56 - 187.31) ms190.87 ± (190.38 - 191.36) ms+2.1%✅⬆️
process.time_to_main_ms81.86 ± (81.74 - 81.99) ms83.01 ± (82.80 - 83.22) ms+1.4%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.18 ± (16.15 - 16.21) MB16.13 ± (16.11 - 16.15) MB-0.3%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (20 - 21)-0.6%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms395.72 ± (393.20 - 398.23) ms392.48 ± (390.43 - 394.54) ms-0.8%
process.time_to_main_ms519.95 ± (519.29 - 520.61) ms518.54 ± (517.66 - 519.42) ms-0.3%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed63.16 ± (63.01 - 63.30) MB62.82 ± (62.65 - 63.00) MB-0.5%
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 30)+0.0%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms192.05 ± (191.61 - 192.48) ms195.34 ± (194.74 - 195.94) ms+1.7%✅⬆️
process.time_to_main_ms69.91 ± (69.74 - 70.08) ms70.91 ± (70.67 - 71.16) ms+1.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.00 ± (15.85 - 16.15) MB16.32 ± (16.31 - 16.34) MB+2.0%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 19)19 ± (19 - 19)+4.5%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms192.11 ± (191.75 - 192.47) ms192.87 ± (192.44 - 193.30) ms+0.4%✅⬆️
process.time_to_main_ms71.18 ± (71.00 - 71.36) ms71.17 ± (71.00 - 71.34) ms-0.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.14 ± (15.99 - 16.29) MB16.20 ± (16.09 - 16.31) MB+0.4%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)20 ± (20 - 20)+3.4%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms411.95 ± (408.82 - 415.09) ms417.43 ± (414.50 - 420.36) ms+1.3%✅⬆️
process.time_to_main_ms487.69 ± (487.13 - 488.24) ms493.01 ± (491.82 - 494.21) ms+1.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed62.03 ± (61.89 - 62.16) MB62.50 ± (62.40 - 62.60) MB+0.8%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms189.69 ± (189.38 - 190.00) ms193.56 ± (193.13 - 193.99) ms+2.0%✅⬆️
process.time_to_main_ms69.17 ± (69.00 - 69.33) ms70.28 ± (70.09 - 70.47) ms+1.6%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.73 ± (11.70 - 11.77) MB11.72 ± (11.70 - 11.74) MB-0.2%
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+0.2%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms189.12 ± (188.81 - 189.43) ms192.36 ± (191.92 - 192.81) ms+1.7%✅⬆️
process.time_to_main_ms70.21 ± (70.10 - 70.32) ms71.25 ± (71.10 - 71.40) ms+1.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.67 ± (11.58 - 11.75) MB11.77 ± (11.75 - 11.79) MB+0.9%✅⬆️
runtime.dotnet.threads.count19 ± (18 - 19)19 ± (19 - 19)+2.9%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms360.25 ± (358.81 - 361.68) ms363.08 ± (361.53 - 364.62) ms+0.8%✅⬆️
process.time_to_main_ms463.95 ± (463.17 - 464.72) ms459.87 ± (459.18 - 460.55) ms-0.9%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.38 ± (50.34 - 50.42) MB50.30 ± (50.27 - 50.33) MB-0.2%
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)+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 (7840) - mean (75ms)  : 70, 81
    master - mean (75ms)  : 71, 79

    section Bailout
    This PR (7840) - mean (80ms)  : 75, 85
    master - mean (80ms)  : 74, 85

    section CallTarget+Inlining+NGEN
    This PR (7840) - mean (1,128ms)  : 1050, 1205
    master - mean (1,125ms)  : 1060, 1190

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 (7840) - mean (117ms)  : 109, 125
    master - mean (119ms)  : 111, 127

    section Bailout
    This PR (7840) - mean (120ms)  : 112, 128
    master - mean (120ms)  : 113, 127

    section CallTarget+Inlining+NGEN
    This PR (7840) - mean (801ms)  : 767, 835
    master - mean (813ms)  : 781, 845

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7840) - mean (105ms)  : 98, 113
    master - mean (107ms)  : 100, 114

    section Bailout
    This PR (7840) - mean (106ms)  : 100, 112
    master - mean (107ms)  : 103, 112

    section CallTarget+Inlining+NGEN
    This PR (7840) - mean (743ms)  : 707, 779
    master - mean (770ms)  : 737, 803

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7840) - mean (103ms)  : 97, 110
    master - mean (105ms)  : 99, 111

    section Bailout
    This PR (7840) - mean (105ms)  : 100, 111
    master - mean (106ms)  : 101, 111

    section CallTarget+Inlining+NGEN
    This PR (7840) - mean (714ms)  : 678, 750
    master - mean (731ms)  : 703, 760

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 (7840) - mean (193ms)  : 188, 198
    master - mean (193ms)  : 188, 198

    section Bailout
    This PR (7840) - mean (196ms)  : 194, 198
    master - mean (197ms)  : 193, 201

    section CallTarget+Inlining+NGEN
    This PR (7840) - mean (1,172ms)  : 1114, 1229
    master - mean (1,186ms)  : 1098, 1275

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 (7840) - mean (278ms)  : 274, 282
    master - mean (277ms)  : 271, 284

    section Bailout
    This PR (7840) - mean (283ms)  : 273, 292
    master - mean (277ms)  : 273, 281

    section CallTarget+Inlining+NGEN
    This PR (7840) - mean (946ms)  : 901, 990
    master - mean (950ms)  : 901, 999

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7840) - mean (274ms)  : 261, 287
    master - mean (270ms)  : 265, 276

    section Bailout
    This PR (7840) - mean (272ms)  : 265, 279
    master - mean (271ms)  : 265, 277

    section CallTarget+Inlining+NGEN
    This PR (7840) - mean (943ms)  : 892, 994
    master - mean (930ms)  : 882, 978

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7840) - mean (274ms)  : 266, 282
    master - mean (269ms)  : 263, 275

    section Bailout
    This PR (7840) - mean (273ms)  : 265, 282
    master - mean (269ms)  : 264, 274

    section CallTarget+Inlining+NGEN
    This PR (7840) - mean (855ms)  : 830, 879
    master - mean (856ms)  : 835, 877

Loading

Copy link
Member

@andrewlock andrewlock left a comment

Choose a reason for hiding this comment

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

I didn't see any existing tests on the content of the requests, didn't really feel like adding some.

Will this be covered by system-tests? Historically we've broken RCM and not known about it, so I'm hesitant to just ok this as-is.

At the very least, we should manually test this against a real agent, to ensure the generated JSON is valid. And ideally then add some snapshots for the response to make sure it doesn't drift accidentally

@vandonr
Copy link
Contributor Author

vandonr commented Nov 18, 2025

Will this be covered by system-tests? Historically we've broken RCM and not known about it, so I'm hesitant to just ok this as-is.

yes it should be, though I have not enabled them yet because it's made as all-or-nothing for process tags. I'll double check.

add some snapshots for the response

We do have some tests with sample responses, in https://github.com/DataDog/dd-trace-dotnet/blob/20246d2febfbbc43aad6598e9ddebfbb36d89aa2/tracer/test/Datadog.Trace.Tests/RemoteConfigurationManagement/RcmResponses.cs, but here I modify the request, so I can create snapshots of requests, but it'd be kinda self-asserting

@vandonr vandonr changed the title add process tags to remote config Add process tags to remote config Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants