Skip to content

fix(debugger): apply redaction to dictionary iterator key/value#8641

Merged
dudikeleti merged 6 commits into
masterfrom
codex/fix-debugger-dictionary-key-redaction
May 20, 2026
Merged

fix(debugger): apply redaction to dictionary iterator key/value#8641
dudikeleti merged 6 commits into
masterfrom
codex/fix-debugger-dictionary-key-redaction

Conversation

@dudikeleti

Copy link
Copy Markdown
Contributor

Motivation

  • The debugger expression language added @key/@value for dictionary iteration but exposed a bypass that allowed reading values stored under redacted keys without applying the existing redaction rules.

Description

  • Apply redaction checks to dictionary iterator projections by updating TryGetCollectionIteratorProperty to return an Expression and wrap Key/Value projections with a conditional that returns RedactedValue() when the entry key matches redaction rules in tracer/src/Datadog.Trace/Debugger/Expressions/ProbeExpressionParser.Collection.cs.
  • Add helper functions RedactDictionaryValueWhenKeyMatches and ShouldRedactDictionaryKey to centralize the key redaction lookup and produce an Expression.Condition for the redaction decision.
  • Add a regression test ProbeExpressionParser_DictionaryIteratorValue_RedactsSensitiveKeys in tracer/test/Datadog.Trace.Tests/Debugger/DebuggerExpressionLanguageTests.cs that verifies a dictionary entry under the key "password" is surfaced as redacted when accessed through the iterator/filter/index/member path.

Testing

  • Added the unit test ProbeExpressionParser_DictionaryIteratorValue_RedactsSensitiveKeys and executed focused dotnet test runs against the test project with a filter for the new test (dotnet test tracer/test/Datadog.Trace.Tests/Datadog.Trace.Tests.csproj -f net10.0 --filter "ProbeExpressionParser_DictionaryIteratorValue_RedactsSensitiveKeys"), iterating until the parsing code produced the expected redaction behavior locally.
  • Full cross-TFM test runs in this environment were unreliable due to test-host/runtime environment issues (ICU/libssl), so CI should validate the change across all target frameworks; targeted runs during development validated the regression fix.

Codex Task

@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented May 14, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8641) 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.70 ± (74.66 - 75.31) ms74.44 ± (74.34 - 74.99) ms-0.3%
.NET Framework 4.8 - Bailout
duration77.77 ± (77.56 - 77.89) ms77.25 ± (77.22 - 77.60) ms-0.7%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1103.38 ± (1102.83 - 1110.12) ms1103.03 ± (1102.67 - 1109.09) ms-0.0%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.64 ± (22.58 - 22.69) ms22.51 ± (22.46 - 22.57) ms-0.5%
process.time_to_main_ms85.03 ± (84.75 - 85.32) ms84.65 ± (84.42 - 84.89) ms-0.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.90 ± (10.89 - 10.90) 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.44 ± (22.39 - 22.48) ms22.28 ± (22.24 - 22.31) ms-0.7%
process.time_to_main_ms85.61 ± (85.40 - 85.82) ms84.91 ± (84.73 - 85.08) ms-0.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.94 ± (10.93 - 10.94) MB10.93 ± (10.93 - 10.94) MB-0.1%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms213.17 ± (212.18 - 214.15) ms212.09 ± (211.23 - 212.95) ms-0.5%
process.time_to_main_ms543.35 ± (541.86 - 544.84) ms542.73 ± (541.28 - 544.17) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.35 ± (48.31 - 48.40) MB48.54 ± (48.51 - 48.58) MB+0.4%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.1%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms21.32 ± (21.27 - 21.37) ms21.26 ± (21.22 - 21.30) ms-0.3%
process.time_to_main_ms74.60 ± (74.35 - 74.85) ms74.21 ± (74.01 - 74.42) ms-0.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.61 - 10.62) MB10.62 ± (10.62 - 10.63) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.48 ± (21.43 - 21.54) ms21.58 ± (21.52 - 21.64) ms+0.4%✅⬆️
process.time_to_main_ms76.95 ± (76.68 - 77.22) ms77.73 ± (77.43 - 78.04) ms+1.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.74 ± (10.74 - 10.74) MB10.73 ± (10.73 - 10.73) MB-0.1%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms370.09 ± (367.81 - 372.37) ms371.31 ± (369.06 - 373.57) ms+0.3%✅⬆️
process.time_to_main_ms552.35 ± (550.70 - 554.01) ms548.82 ± (547.40 - 550.24) ms-0.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.01 ± (49.98 - 50.03) MB49.98 ± (49.96 - 50.01) MB-0.0%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.1%
.NET 8 - Baseline
process.internal_duration_ms19.26 ± (19.23 - 19.30) ms19.33 ± (19.29 - 19.36) ms+0.3%✅⬆️
process.time_to_main_ms72.00 ± (71.86 - 72.15) ms72.62 ± (72.44 - 72.81) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.69 ± (7.68 - 7.69) MB7.67 ± (7.67 - 7.68) MB-0.2%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.60 ± (19.54 - 19.65) ms19.34 ± (19.30 - 19.38) ms-1.3%
process.time_to_main_ms75.35 ± (75.06 - 75.63) ms73.86 ± (73.69 - 74.03) ms-2.0%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.73 ± (7.73 - 7.73) MB7.72 ± (7.72 - 7.73) MB-0.1%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms294.62 ± (292.47 - 296.76) ms295.67 ± (293.28 - 298.05) ms+0.4%✅⬆️
process.time_to_main_ms496.16 ± (495.19 - 497.13) ms499.87 ± (498.61 - 501.14) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.88 ± (36.84 - 36.91) MB36.87 ± (36.84 - 36.90) MB-0.0%
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
duration201.92 ± (201.65 - 202.70) ms201.08 ± (200.65 - 201.63) ms-0.4%
.NET Framework 4.8 - Bailout
duration203.97 ± (203.72 - 204.57) ms203.61 ± (203.50 - 204.35) ms-0.2%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1207.31 ± (1205.83 - 1212.12) ms1209.68 ± (1209.95 - 1215.64) ms+0.2%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms196.33 ± (195.82 - 196.83) ms197.16 ± (196.65 - 197.66) ms+0.4%✅⬆️
process.time_to_main_ms85.02 ± (84.71 - 85.33) ms84.85 ± (84.55 - 85.15) ms-0.2%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.11 ± (16.08 - 16.13) MB16.07 ± (16.05 - 16.10) MB-0.2%
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (19 - 20)-0.1%
.NET Core 3.1 - Bailout
process.internal_duration_ms196.43 ± (196.00 - 196.87) ms195.82 ± (195.32 - 196.32) ms-0.3%
process.time_to_main_ms86.31 ± (86.01 - 86.62) ms86.26 ± (85.98 - 86.53) ms-0.1%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.11 ± (16.09 - 16.13) MB16.09 ± (16.07 - 16.11) MB-0.1%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+0.2%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms391.38 ± (389.79 - 392.96) ms389.24 ± (388.00 - 390.49) ms-0.5%
process.time_to_main_ms541.71 ± (540.34 - 543.07) ms540.73 ± (539.46 - 542.01) ms-0.2%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.16 ± (57.94 - 58.39) MB57.91 ± (57.69 - 58.14) MB-0.4%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.5%
.NET 6 - Baseline
process.internal_duration_ms199.84 ± (199.37 - 200.30) ms199.56 ± (199.09 - 200.02) ms-0.1%
process.time_to_main_ms73.70 ± (73.40 - 73.99) ms73.23 ± (72.93 - 73.52) ms-0.6%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.31 ± (16.28 - 16.34) MB16.30 ± (16.28 - 16.32) MB-0.1%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.3%
.NET 6 - Bailout
process.internal_duration_ms197.99 ± (197.50 - 198.49) ms198.57 ± (198.08 - 199.06) ms+0.3%✅⬆️
process.time_to_main_ms73.46 ± (73.26 - 73.67) ms74.05 ± (73.79 - 74.32) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.45 ± (16.42 - 16.48) MB16.38 ± (16.35 - 16.40) MB-0.4%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.6%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms586.58 ± (584.00 - 589.15) ms580.05 ± (577.42 - 582.68) ms-1.1%
process.time_to_main_ms549.39 ± (548.22 - 550.56) ms548.97 ± (547.76 - 550.17) ms-0.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.18 ± (61.09 - 61.27) MB61.03 ± (60.96 - 61.10) MB-0.2%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)+0.3%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms198.21 ± (197.76 - 198.65) ms197.71 ± (197.24 - 198.18) ms-0.3%
process.time_to_main_ms72.71 ± (72.44 - 72.97) ms72.76 ± (72.53 - 72.98) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.64 ± (11.62 - 11.66) MB11.73 ± (11.71 - 11.75) MB+0.8%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.2%
.NET 8 - Bailout
process.internal_duration_ms196.74 ± (196.25 - 197.23) ms197.36 ± (196.92 - 197.80) ms+0.3%✅⬆️
process.time_to_main_ms73.47 ± (73.25 - 73.69) ms73.54 ± (73.32 - 73.75) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.70 ± (11.68 - 11.71) MB11.79 ± (11.77 - 11.81) MB+0.7%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.1%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms515.67 ± (512.89 - 518.45) ms510.57 ± (507.78 - 513.37) ms-1.0%
process.time_to_main_ms498.83 ± (497.99 - 499.66) ms497.28 ± (496.48 - 498.09) ms-0.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.73 ± (50.69 - 50.77) MB50.59 ± (50.55 - 50.62) MB-0.3%
runtime.dotnet.threads.count29 ± (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 (8641) - mean (75ms)  : 70, 80
    master - mean (75ms)  : 70, 80

    section Bailout
    This PR (8641) - mean (77ms)  : 75, 80
    master - mean (78ms)  : 76, 80

    section CallTarget+Inlining+NGEN
    This PR (8641) - mean (1,106ms)  : 1060, 1152
    master - mean (1,106ms)  : 1051, 1162

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 (8641) - mean (114ms)  : 109, 119
    master - mean (115ms)  : 109, 120

    section Bailout
    This PR (8641) - mean (114ms)  : 112, 116
    master - mean (115ms)  : 112, 118

    section CallTarget+Inlining+NGEN
    This PR (8641) - mean (794ms)  : 769, 818
    master - mean (794ms)  : 766, 822

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8641) - mean (102ms)  : 98, 106
    master - mean (102ms)  : 97, 108

    section Bailout
    This PR (8641) - mean (106ms)  : 100, 112
    master - mean (105ms)  : 100, 110

    section CallTarget+Inlining+NGEN
    This PR (8641) - mean (949ms)  : 909, 989
    master - mean (950ms)  : 910, 989

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

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

    section CallTarget+Inlining+NGEN
    This PR (8641) - mean (826ms)  : 784, 868
    master - mean (820ms)  : 781, 860

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 (8641) - mean (201ms)  : 195, 208
    master - mean (202ms)  : 196, 208

    section Bailout
    This PR (8641) - mean (204ms)  : 200, 208
    master - mean (204ms)  : 200, 208

    section CallTarget+Inlining+NGEN
    This PR (8641) - mean (1,213ms)  : 1172, 1253
    master - mean (1,209ms)  : 1164, 1254

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 (8641) - mean (291ms)  : 284, 299
    master - mean (290ms)  : 284, 296

    section Bailout
    This PR (8641) - mean (291ms)  : 282, 299
    master - mean (292ms)  : 286, 298

    section CallTarget+Inlining+NGEN
    This PR (8641) - mean (969ms)  : 949, 988
    master - mean (973ms)  : 947, 999

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

    section Bailout
    This PR (8641) - mean (281ms)  : 275, 288
    master - mean (280ms)  : 273, 288

    section CallTarget+Inlining+NGEN
    This PR (8641) - mean (1,159ms)  : 1118, 1200
    master - mean (1,165ms)  : 1126, 1204

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8641) - mean (281ms)  : 272, 289
    master - mean (281ms)  : 273, 289

    section Bailout
    This PR (8641) - mean (281ms)  : 275, 287
    master - mean (280ms)  : 270, 291

    section CallTarget+Inlining+NGEN
    This PR (8641) - mean (1,041ms)  : 998, 1084
    master - mean (1,048ms)  : 1005, 1091

Loading

@pr-commenter

pr-commenter Bot commented May 14, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-05-20 17:24:18

Comparing candidate commit 47425fe in PR branch codex/fix-debugger-dictionary-key-redaction with baseline commit 234b1b7 in branch master.

Some scenarios are present only in baseline or only in candidate runs. If you didn't create or remove some scenarios in your branch, this maybe a sign of crashed benchmarks 💥💥💥
Check Gitlab CI job log to find if any benchmark has crashed.

Scenarios present only in baseline:

  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0

Found 3 performance improvements and 6 performance regressions! Performance is the same for 48 metrics, 15 unstable metrics, 88 known flaky benchmarks, 38 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.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartActiveSpan net6.0

  • 🟥 throughput [-27374.178op/s; -12166.808op/s] or [-14.835%; -6.594%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan net6.0

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+10.108%; +10.117%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan_GetCurrentSpan net6.0

  • 🟩 allocated_mem [-144 bytes; -143 bytes] or [-9.188%; -9.180%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan_SetActive net6.0

  • 🟥 throughput [-21523.931op/s; -8550.344op/s] or [-13.790%; -5.478%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-5900.504op/s; -4794.131op/s] or [-6.736%; -5.473%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net6.0

  • 🟥 throughput [-70400.912op/s; -63820.812op/s] or [-47.825%; -43.355%]
  • 🟩 execution_time [-40.930ms; -26.534ms] or [-20.311%; -13.167%]

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

  • 🟥 throughput [-38513.217op/s; -33261.162op/s] or [-19.311%; -16.677%]
  • 🟩 execution_time [-83.606ms; -79.035ms] or [-42.282%; -39.970%]

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.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net6.0

  • unstable execution_time [-95.233ms; -59.419ms] or [-44.641%; -27.853%]
  • unstable throughput [+34395.208op/s; +65479.642op/s] or [+26.498%; +50.446%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan netcoreapp3.1

  • unstable execution_time [+27.485ms; +58.408ms] or [+30.446%; +64.702%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0

  • unstable execution_time [-21.533ms; +3.040ms] or [-14.200%; +2.005%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1

  • unstable execution_time [-34.442ms; -9.235ms] or [-30.682%; -8.227%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0

  • unstable execution_time [+3.251ms; +19.292ms] or [+2.527%; +14.997%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1

  • unstable execution_time [+25.492ms; +64.286ms] or [+22.697%; +57.238%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0

  • unstable execution_time [-27.093ms; +5.612ms] or [-14.456%; +2.995%]
  • unstable throughput [+4634.755op/s; +22805.010op/s] or [+4.069%; +20.023%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1

  • unstable execution_time [-42.351ms; -3.666ms] or [-31.151%; -2.696%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0

  • unstable execution_time [-16.392ms; +20.756ms] or [-11.188%; +14.167%]
  • unstable throughput [-28740.403op/s; +1353.728op/s] or [-16.627%; +0.783%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1

  • unstable execution_time [+10.004ms; +35.184ms] or [+11.251%; +39.570%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0

  • unstable execution_time [-21.203ms; -3.301ms] or [-15.703%; -2.445%]
  • unstable throughput [+5378.121op/s; +24816.418op/s] or [+3.062%; +14.130%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1

  • unstable execution_time [-18.917ms; +16.858ms] or [-16.889%; +15.051%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net6.0

  • 🟩 allocated_mem [-144 bytes; -143 bytes] or [-9.188%; -9.180%]
  • unstable execution_time [+18.268ms; +42.142ms] or [+14.571%; +33.615%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1

  • unstable execution_time [-36.317ms; -11.781ms] or [-32.272%; -10.469%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0

  • unstable execution_time [-35.332ms; -13.704ms] or [-22.733%; -8.817%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1

  • unstable execution_time [+11.634ms; +35.853ms] or [+13.309%; +41.015%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+6.738%; +6.746%]
  • unstable execution_time [-24.897ms; +2.457ms] or [-16.166%; +1.596%]
  • unstable throughput [-2540.987op/s; +19425.769op/s] or [-1.777%; +13.583%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1

  • unstable execution_time [-38.027ms; -13.440ms] or [-34.211%; -12.091%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0

  • 🟩 allocated_mem [-144 bytes; -143 bytes] or [-5.210%; -5.202%]
  • unstable execution_time [-63.019ms; -40.879ms] or [-38.674%; -25.086%]
  • unstable throughput [+35024.420op/s; +53464.136op/s] or [+39.926%; +60.946%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1

  • unstable execution_time [-63.167ms; -22.408ms] or [-40.963%; -14.531%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0

  • unstable execution_time [+21.580ms; +48.627ms] or [+14.985%; +33.766%]
  • 🟥 throughput [-19341.215op/s; -7027.165op/s] or [-15.483%; -5.625%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1

  • unstable execution_time [+28.573ms; +58.512ms] or [+31.308%; +64.112%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0

  • unstable execution_time [+24.645ms; +56.766ms] or [+19.599%; +45.144%]
  • unstable throughput [-37144.191op/s; -16359.653op/s] or [-23.512%; -10.356%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1

  • unstable execution_time [-18168.153µs; +18357.393µs] or [-16.792%; +16.967%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+10.108%; +10.117%]
  • unstable execution_time [+10.177ms; +45.561ms] or [+7.092%; +31.750%]
  • unstable throughput [-30582.284op/s; -5772.731op/s] or [-19.190%; -3.622%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1

  • unstable execution_time [-43.299ms; -2.776ms] or [-32.727%; -2.098%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-6623.523op/s; -5954.228op/s] or [-7.854%; -7.060%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net6.0

  • unstable execution_time [-44.450ms; -13.462ms] or [-22.176%; -6.716%]
  • unstable throughput [-56279.232op/s; -43239.769op/s] or [-47.305%; -36.345%]

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

  • unstable execution_time [-70.992ms; -43.536ms] or [-35.707%; -21.897%]
  • 🟥 throughput [-7091.767op/s; -5954.309op/s] or [-7.211%; -6.054%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+315.573ms; +330.160ms] or [+156.598%; +163.837%]
  • 🟥 throughput [-60.913op/s; -48.172op/s] or [-10.960%; -8.667%]

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

  • 🟥 execution_time [+99.150ms; +102.987ms] or [+78.335%; +81.366%]
  • 🟩 throughput [+79.170op/s; +92.169op/s] or [+10.438%; +12.152%]

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

  • 🟥 execution_time [+84.665ms; +85.865ms] or [+74.925%; +75.987%]

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

  • 🟥 allocated_mem [+1.308KB; +1.308KB] or [+27.528%; +27.540%]
  • 🟥 throughput [-6978.029op/s; -6573.098op/s] or [-5.429%; -5.114%]

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

  • 🟥 allocated_mem [+439 bytes; +440 bytes] or [+9.299%; +9.310%]
  • 🟩 execution_time [-62.433ms; -44.623ms] or [-29.158%; -20.841%]
  • 🟥 throughput [-20545.583op/s; -7751.029op/s] or [-14.997%; -5.658%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.500%; +27.510%]
  • 🟩 execution_time [-62.154ms; -41.651ms] or [-29.597%; -19.834%]

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-314518.740op/s; -308792.168op/s] or [-32.114%; -31.529%]

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

  • 🟥 allocated_mem [+439 bytes; +440 bytes] or [+35.945%; +35.954%]
  • unstable execution_time [-76.222ms; -50.119ms] or [-33.992%; -22.351%]
  • unstable throughput [-335120.769op/s; -215803.096op/s] or [-35.801%; -23.055%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟩 execution_time [-76.261ms; -56.643ms] or [-38.066%; -28.274%]
  • 🟥 throughput [-131984.207op/s; -115554.606op/s] or [-18.964%; -16.603%]

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

  • 🟩 execution_time [-55.212ms; -36.622ms] or [-27.857%; -18.478%]

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

  • 🟩 execution_time [-61.161ms; -44.752ms] or [-31.182%; -22.816%]
  • 🟩 throughput [+10352.414op/s; +12994.323op/s] or [+8.247%; +10.352%]

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

  • 🟩 execution_time [-71.296ms; -56.827ms] or [-35.251%; -28.097%]

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

  • unstable execution_time [-64.801ms; -39.606ms] or [-29.871%; -18.257%]
  • 🟩 throughput [+137200.768op/s; +193252.679op/s] or [+5.446%; +7.671%]

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

  • 🟥 execution_time [+301.641ms; +315.532ms] or [+150.720%; +157.661%]

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

  • unstable execution_time [+147.538ms; +186.024ms] or [+74.404%; +93.812%]

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

  • 🟥 execution_time [+299.889ms; +306.485ms] or [+151.061%; +154.383%]

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

  • 🟥 execution_time [+297.598ms; +311.345ms] or [+146.168%; +152.921%]

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

  • 🟥 execution_time [+238.450ms; +255.559ms] or [+116.569%; +124.933%]

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

  • 🟥 execution_time [+279.022ms; +292.999ms] or [+139.455%; +146.441%]

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

  • 🟥 execution_time [+20.579µs; +44.287µs] or [+6.570%; +14.138%]
  • 🟥 throughput [-413.995op/s; -214.544op/s] or [-12.905%; -6.688%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+300.298ms; +301.123ms] or [+149.880%; +150.291%]

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

  • unstable execution_time [+346.727ms; +358.171ms] or [+376.733%; +389.168%]
  • 🟥 throughput [-6920.565op/s; -6763.185op/s] or [-56.867%; -55.574%]

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

  • unstable execution_time [+175.611ms; +252.277ms] or [+133.340%; +191.552%]
  • 🟥 throughput [-1760.179op/s; -1518.309op/s] or [-17.040%; -14.698%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+299.213ms; +315.449ms] or [+137.575%; +145.040%]
  • 🟥 throughput [-684.491op/s; -666.797op/s] or [-62.022%; -60.418%]

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

  • unstable execution_time [-51.756ms; +82.074ms] or [-22.056%; +34.977%]
  • 🟥 throughput [-706.160op/s; -614.406op/s] or [-47.101%; -40.981%]

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

  • 🟥 allocated_mem [+2.305KB; +2.308KB] or [+5.442%; +5.450%]
  • 🟥 execution_time [+340.745ms; +348.960ms] or [+203.805%; +208.718%]
  • 🟥 throughput [-734.227op/s; -699.909op/s] or [-51.123%; -48.734%]

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

  • 🟩 execution_time [-200.827µs; -189.730µs] or [-10.173%; -9.611%]
  • 🟩 throughput [+53.947op/s; +57.404op/s] or [+10.650%; +11.332%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+306.314ms; +320.600ms] or [+154.254%; +161.448%]

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

  • 🟥 execution_time [+232.560ms; +241.542ms] or [+116.536%; +121.037%]

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

  • 🟥 execution_time [+300.685ms; +307.875ms] or [+151.051%; +154.663%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+302.573ms; +315.255ms] or [+151.942%; +158.310%]

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

  • unstable execution_time [+221.794ms; +245.826ms] or [+109.667%; +121.550%]

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

  • 🟥 execution_time [+302.142ms; +309.896ms] or [+153.139%; +157.069%]
  • 🟩 throughput [+25309.420op/s; +35612.023op/s] or [+5.465%; +7.690%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+302.442ms; +315.734ms] or [+151.798%; +158.470%]

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

  • 🟥 execution_time [+302.891ms; +309.341ms] or [+150.963%; +154.178%]
  • 🟩 throughput [+51034.848op/s; +58985.020op/s] or [+10.134%; +11.713%]

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

  • 🟥 execution_time [+303.486ms; +310.052ms] or [+150.982%; +154.248%]

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

  • unstable execution_time [-92.267ms; -64.976ms] or [-42.905%; -30.214%]
  • unstable throughput [-91319.532op/s; -39431.029op/s] or [-25.051%; -10.817%]

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

  • 🟩 execution_time [-96.242ms; -92.086ms] or [-48.277%; -46.191%]

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

  • 🟩 allocated_mem [-24.953KB; -24.931KB] or [-9.102%; -9.094%]
  • 🟩 execution_time [-98.191µs; -47.775µs] or [-19.407%; -9.442%]
  • 🟩 throughput [+225.776op/s; +404.797op/s] or [+11.266%; +20.200%]

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

  • unstable execution_time [+1.775µs; +6.224µs] or [+4.195%; +14.712%]

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

  • unstable execution_time [-13.762µs; -4.552µs] or [-21.351%; -7.063%]
  • unstable throughput [+1359.571op/s; +3328.172op/s] or [+8.341%; +20.419%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.274ms; +316.644ms] or [+152.786%; +160.049%]

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

  • 🟥 execution_time [+277.611ms; +296.896ms] or [+141.303%; +151.119%]

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

  • 🟥 execution_time [+301.559ms; +308.352ms] or [+150.968%; +154.368%]

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

  • 🟩 execution_time [-99.451ms; -95.117ms] or [-49.710%; -47.544%]
  • 🟥 throughput [-69670.546op/s; -48527.852op/s] or [-13.187%; -9.185%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1

  • unstable execution_time [-32.924ms; -7.682ms] or [-16.689%; -3.894%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+303.695ms; +317.657ms] or [+151.365%; +158.323%]

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

  • unstable execution_time [+198.984ms; +259.424ms] or [+99.920%; +130.270%]

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

  • 🟥 execution_time [+304.406ms; +310.461ms] or [+154.375%; +157.446%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+300.561ms; +301.275ms] or [+149.921%; +150.277%]
  • 🟩 throughput [+60333859.075op/s; +60610105.660op/s] or [+43.939%; +44.140%]

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

  • unstable execution_time [+370.125ms; +380.488ms] or [+460.316%; +473.204%]
  • 🟥 throughput [-7620.519op/s; -7420.428op/s] or [-58.910%; -57.364%]

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

  • 🟥 execution_time [+302.951ms; +306.113ms] or [+151.105%; +152.682%]
  • 🟥 throughput [-30795899.166op/s; -29378855.810op/s] or [-13.641%; -13.013%]

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

  • unstable execution_time [-91.291ms; -68.540ms] or [-44.713%; -33.570%]
  • unstable throughput [-99872.605op/s; +25684.625op/s] or [-9.325%; +2.398%]

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

  • unstable execution_time [-90.571ms; -68.915ms] or [-45.830%; -34.871%]

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

  • unstable execution_time [-63.953ms; -39.583ms] or [-33.320%; -20.623%]
  • unstable throughput [-252121.301op/s; -76895.361op/s] or [-19.515%; -5.952%]

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

  • unstable execution_time [-94.264ms; -71.842ms] or [-46.314%; -35.297%]
  • 🟩 throughput [+73672.306op/s; +84510.295op/s] or [+7.317%; +8.393%]

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

  • unstable execution_time [-49.219ms; -14.824ms] or [-24.580%; -7.403%]
  • unstable throughput [-120337.689op/s; -31244.946op/s] or [-21.851%; -5.674%]

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

  • unstable execution_time [-32.098ms; -9.670ms] or [-16.127%; -4.859%]

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

  • unstable execution_time [-99.658ms; -76.426ms] or [-49.846%; -38.226%]
  • unstable throughput [-72454.272op/s; +44040.263op/s] or [-8.095%; +4.920%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • 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.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net472
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark netcoreapp3.1
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472
  • 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

@dudikeleti
dudikeleti force-pushed the codex/fix-debugger-dictionary-key-redaction branch from d848e1d to 16c76e6 Compare May 20, 2026 09:51
@dudikeleti
dudikeleti requested a review from Copilot May 20, 2026 09:51
@dudikeleti
dudikeleti marked this pull request as ready for review May 20, 2026 09:51
@dudikeleti
dudikeleti requested a review from a team as a code owner May 20, 2026 09:51

@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: 16c76e6c0e

ℹ️ 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/Debugger/Expressions/ProbeExpressionParser.Collection.cs Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR closes a redaction bypass in the debugger expression language where dictionary iterator projections (@key/@value) could expose values under sensitive keys without applying existing redaction rules.

Changes:

  • Updated dictionary iterator property resolution to allow wrapping @key/@value with a redaction-aware expression.
  • Added helper logic to decide whether a dictionary entry key should be considered sensitive for redaction purposes.
  • Added a regression test ensuring sensitive dictionary keys redact both iterator key and value projections.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
tracer/src/Datadog.Trace/Debugger/Expressions/ProbeExpressionParser.Collection.cs Wraps dictionary iterator Key/Value projections with redaction checks.
tracer/test/Datadog.Trace.Tests/Debugger/DebuggerExpressionLanguageTests.cs Adds regression coverage for redacting @key/@value when iterating over sensitive dictionary entries.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tracer/src/Datadog.Trace/Debugger/Expressions/ProbeExpressionParser.Collection.cs Outdated
Comment thread tracer/src/Datadog.Trace/Debugger/Expressions/ProbeExpressionParser.Collection.cs Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented May 20, 2026

Copy link
Copy Markdown

Pipelines

Fix all issues with BitsAI

⚠️ Warnings

🚦 2 Pipeline jobs failed

DataDog/apm-reliability/dd-trace-dotnet | check-big-regressions   View in Datadog   GitLab

🔧 Fix in code (Fix with Cursor). Execution of Regression Check failed with exit code 5.

Copilot | copilot-pull-request-reviewer   View in Datadog   GitHub Actions

🔄 Retry job. This looks flaky and may succeed on retry. Error creating PR review request: You've hit your rate limit. Please wait for your limit to reset in 3 hours 12 minutes or switch to auto model to continue.

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 47425fe | Docs | Datadog PR Page | Give us feedback!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Comment thread tracer/src/Datadog.Trace/Debugger/Expressions/ProbeExpressionParser.Collection.cs Outdated
@dudikeleti
dudikeleti disabled auto-merge May 20, 2026 14:53
@dudikeleti
dudikeleti force-pushed the codex/fix-debugger-dictionary-key-redaction branch from aa034c5 to 47425fe Compare May 20, 2026 16:26
@dudikeleti
dudikeleti requested a review from Copilot May 20, 2026 16:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@dudikeleti
dudikeleti enabled auto-merge (squash) May 20, 2026 16:47
@dudikeleti
dudikeleti merged commit 17a15a6 into master May 20, 2026
140 of 141 checks passed
@dudikeleti
dudikeleti deleted the codex/fix-debugger-dictionary-key-redaction branch May 20, 2026 17:59
@github-actions github-actions Bot added this to the vNext-v3 milestone May 20, 2026
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