Skip to content

fix(debugger): redact nullable wrappers of configured types#8642

Merged
dudikeleti merged 2 commits into
masterfrom
codex/fix-nullable-tostring-redaction-issue
May 15, 2026
Merged

fix(debugger): redact nullable wrappers of configured types#8642
dudikeleti merged 2 commits into
masterfrom
codex/fix-nullable-tostring-redaction-issue

Conversation

@dudikeleti

Copy link
Copy Markdown
Contributor

Motivation

  • Unwrapping Nullable<T> was added to IsSafeToCallToString, but type-redaction checks still used the original wrapper type, allowing configured redacted underlying types (e.g., System.Guid) to be bypassed when serialized as Guid?.
  • This caused a confidentiality regression where nullable forms of allow-listed safe-to-ToString value types could be emitted without redaction.

Description

  • Unwrap Nullable<T> before checking/caching in Redaction.IsRedactedType so configured redacted underlying types apply to nullable wrappers as well (tracer/src/Datadog.Trace/Debugger/Snapshots/Redaction.cs).
  • Add IsRedactedType_WithConfiguredUnderlyingNullableType_Test to assert Guid? is redacted when System.Guid is configured as redacted (tracer/test/Datadog.Trace.Tests/Debugger/RedactionTests.cs).
  • Extend the combined ShouldRedact theory to include a Guid? case and include System.Guid in the test configuration to cover the end-to-end decision path.

Testing

  • Ran the focused test command dotnet test tracer/test/Datadog.Trace.Tests/Datadog.Trace.Tests.csproj --filter "FullyQualifiedName~Datadog.Trace.Tests.Debugger.RedactionTests" --no-restore, and the modified redaction tests passed on supported TFMs in this environment.
  • Some test host processes for other TFMs aborted due to missing system runtime dependencies (ICU/libssl) in this environment, which is unrelated to the change and did not affect the targeted redaction test results.

Codex Task

@dudikeleti
dudikeleti marked this pull request as ready for review May 14, 2026 17:15
@dudikeleti
dudikeleti requested a review from a team as a code owner May 14, 2026 17:15

@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: 5bd78c8852

ℹ️ 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 on lines +252 to +253
var effectiveType = Nullable.GetUnderlyingType(type) ?? type;
return _redactedTypesCache.GetOrAdd(effectiveType, CheckForRedactedType);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve nullable-wrapper redaction rules

When a user configures DD_DYNAMIC_INSTRUMENTATION_REDACTED_TYPES=System.Nullable* (or an exact nullable wrapper type name), nullable values used to match because CheckForRedactedType inspected the wrapper's FullName. After always passing only the underlying type into the cache/check, those existing wrapper-specific wildcard rules never see System.Nullable..., so nullable values can be emitted despite an active redaction rule. Consider evaluating both the original wrapper type and the underlying type.

Useful? React with 👍 / 👎.

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.

I'm not sure if this is necessary or not? 🤔 As I understand it, we didn't use to "support" nullable types at all previously? So this shouldn't break existing customers if they're currently specifying the full nullable type. And if that's the case, I think the existing fix is fine? 🤔

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.

I agree with Andrew, but let’s be on the safe side.
ea2f9a9

@pr-commenter

pr-commenter Bot commented May 14, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-05-15 12:59:14

Comparing candidate commit ea2f9a9 in PR branch codex/fix-nullable-tostring-redaction-issue with baseline commit d63034b 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.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • 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 net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0

Found 1 performance improvements and 3 performance regressions! Performance is the same for 48 metrics, 20 unstable metrics, 84 known flaky benchmarks, 42 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.StartRootSpan net6.0

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+10.108%; +10.117%]
  • 🟥 throughput [-24769.742op/s; -10122.189op/s] or [-14.038%; -5.737%]

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

  • 🟩 allocated_mem [-144 bytes; -143 bytes] or [-7.321%; -7.312%]

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

  • 🟥 throughput [-79647.155op/s; -71027.566op/s] or [-54.106%; -48.250%]

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

  • unstable execution_time [+10.520ms; +35.004ms] or [+11.761%; +39.134%]

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

  • unstable execution_time [+6.697ms; +50.608ms] or [+4.365%; +32.987%]
  • unstable throughput [-28442.139op/s; -265.256op/s] or [-20.133%; -0.188%]

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

  • unstable execution_time [-58.161ms; -23.524ms] or [-35.056%; -14.179%]
  • unstable throughput [+22668.733op/s; +47290.733op/s] or [+14.649%; +30.560%]

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

  • unstable execution_time [-33.368ms; -8.348ms] or [-30.059%; -7.520%]

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

  • unstable execution_time [+6.781ms; +21.804ms] or [+5.067%; +16.293%]
  • unstable throughput [-7130.421op/s; +14050.165op/s] or [-5.007%; +9.865%]

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

  • unstable execution_time [-32.309ms; +5.552ms] or [-21.191%; +3.642%]
  • unstable throughput [-2117.951op/s; +27384.500op/s] or [-1.258%; +16.262%]

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

  • unstable execution_time [+6.515ms; +46.542ms] or [+6.077%; +43.414%]

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

  • unstable execution_time [-84.857ms; -40.054ms] or [-39.609%; -18.696%]
  • unstable throughput [+23131.287op/s; +56482.603op/s] or [+17.648%; +43.093%]

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

  • unstable execution_time [-80.570ms; -50.542ms] or [-51.981%; -32.608%]

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

  • 🟩 allocated_mem [-144 bytes; -143 bytes] or [-9.188%; -9.180%]
  • unstable execution_time [-21.862ms; +17.895ms] or [-12.879%; +10.542%]
  • unstable throughput [-2180.954op/s; +27630.844op/s] or [-1.636%; +20.721%]

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

  • unstable execution_time [-18251.036µs; +18042.888µs] or [-16.729%; +16.538%]

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

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+8.332%; +8.340%]
  • unstable execution_time [-73.152ms; -42.092ms] or [-37.004%; -21.292%]
  • unstable throughput [+29873.316op/s; +60420.220op/s] or [+27.286%; +55.188%]

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

  • unstable execution_time [-28.941ms; -11.903ms] or [-20.068%; -8.254%]
  • 🟩 throughput [+9675.665op/s; +14939.268op/s] or [+6.121%; +9.451%]

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

  • unstable execution_time [-12978.677µs; +14730.193µs] or [-10.609%; +12.041%]
  • unstable throughput [-18142.288op/s; +6106.571op/s] or [-14.616%; +4.920%]

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

  • unstable execution_time [+11.262ms; +36.202ms] or [+12.949%; +41.623%]

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

  • unstable execution_time [-34.980ms; -4.155ms] or [-20.077%; -2.385%]
  • unstable throughput [+9656.986op/s; +24093.832op/s] or [+8.838%; +22.050%]

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

  • unstable execution_time [-19.177ms; +16.906ms] or [-17.183%; +15.148%]

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

  • unstable execution_time [+11.848ms; +28.502ms] or [+9.727%; +23.399%]
  • 🟥 throughput [-23624.624op/s; -9197.774op/s] or [-14.641%; -5.700%]

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

  • unstable execution_time [-28.587ms; +9.260ms] or [-18.891%; +6.120%]
  • unstable throughput [-16320.702op/s; +11221.959op/s] or [-10.143%; +6.975%]

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

  • unstable execution_time [-35.615ms; -10.905ms] or [-32.425%; -9.928%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-5610.566op/s; -5069.614op/s] or [-6.652%; -6.011%]

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

  • 🟩 execution_time [-70.801ms; -50.962ms] or [-35.323%; -25.425%]
  • unstable throughput [-42653.709op/s; -30750.380op/s] or [-35.852%; -25.847%]

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

  • 🟩 execution_time [-98.851ms; -96.346ms] or [-49.719%; -48.459%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+314.282ms; +330.424ms] or [+155.958%; +163.968%]
  • 🟥 throughput [-54.136op/s; -41.483op/s] or [-9.740%; -7.464%]

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

  • 🟥 execution_time [+99.285ms; +101.122ms] or [+78.441%; +79.892%]
  • 🟩 throughput [+85.049op/s; +91.676op/s] or [+11.213%; +12.087%]

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

  • 🟥 execution_time [+83.646ms; +84.591ms] or [+74.024%; +74.860%]

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

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

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

  • 🟥 allocated_mem [+439 bytes; +440 bytes] or [+9.299%; +9.310%]
  • 🟩 execution_time [-52.823ms; -34.034ms] or [-24.670%; -15.895%]
  • 🟥 throughput [-20821.161op/s; -7398.610op/s] or [-15.198%; -5.401%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.500%; +27.510%]
  • 🟩 execution_time [-31.388ms; -13.880ms] or [-14.947%; -6.609%]

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-269316.508op/s; -265060.165op/s] or [-27.499%; -27.064%]

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

  • 🟥 allocated_mem [+439 bytes; +440 bytes] or [+35.945%; +35.954%]
  • unstable execution_time [-94.622ms; -68.959ms] or [-42.197%; -30.753%]
  • unstable throughput [-245206.507op/s; -132712.799op/s] or [-26.196%; -14.178%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • unstable execution_time [-67.390ms; -41.053ms] or [-33.638%; -20.492%]
  • 🟥 throughput [-115074.522op/s; -98024.006op/s] or [-16.534%; -14.084%]

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

  • 🟩 execution_time [-29.715ms; -11.262ms] or [-14.993%; -5.682%]
  • 🟥 throughput [-31524.758op/s; -17181.762op/s] or [-20.059%; -10.932%]

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

  • 🟩 execution_time [-62.841ms; -45.139ms] or [-32.039%; -23.013%]
  • 🟩 throughput [+11103.425op/s; +13791.204op/s] or [+8.845%; +10.986%]

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

  • 🟩 execution_time [-43.391ms; -23.568ms] or [-21.454%; -11.653%]
  • unstable throughput [-495319.607op/s; -149572.490op/s] or [-16.516%; -4.987%]

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

  • unstable execution_time [-45.161ms; -22.500ms] or [-20.818%; -10.372%]
  • 🟩 throughput [+167636.625op/s; +223644.693op/s] or [+6.654%; +8.877%]

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

  • 🟥 execution_time [+301.389ms; +315.623ms] or [+150.594%; +157.706%]

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

  • unstable execution_time [+176.431ms; +225.451ms] or [+88.975%; +113.695%]

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

  • unstable execution_time [+251.377ms; +289.623ms] or [+126.624%; +145.889%]

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

  • 🟥 execution_time [+298.268ms; +311.958ms] or [+146.497%; +153.221%]

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

  • 🟥 execution_time [+242.794ms; +258.750ms] or [+118.693%; +126.493%]

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

  • 🟥 execution_time [+302.411ms; +308.296ms] or [+151.145%; +154.086%]

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

  • 🟥 execution_time [+19.879µs; +43.506µs] or [+6.346%; +13.889%]
  • 🟥 throughput [-407.768op/s; -208.910op/s] or [-12.711%; -6.512%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+300.289ms; +301.368ms] or [+149.875%; +150.414%]

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

  • unstable execution_time [+367.812ms; +399.335ms] or [+399.642%; +433.894%]
  • 🟥 throughput [-7118.397op/s; -6812.203op/s] or [-58.493%; -55.977%]

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

  • unstable execution_time [+178.920ms; +247.168ms] or [+135.852%; +187.673%]
  • 🟥 throughput [-1311.894op/s; -1063.095op/s] or [-12.700%; -10.291%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+300.779ms; +314.999ms] or [+138.295%; +144.834%]
  • 🟥 throughput [-684.701op/s; -668.070op/s] or [-62.041%; -60.534%]

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

  • unstable execution_time [-12.767ms; +134.281ms] or [-5.441%; +57.225%]
  • 🟥 throughput [-674.188op/s; -589.159op/s] or [-44.969%; -39.297%]

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

  • 🟥 allocated_mem [+2.305KB; +2.308KB] or [+5.442%; +5.450%]
  • 🟥 execution_time [+340.299ms; +348.399ms] or [+203.538%; +208.383%]
  • 🟥 throughput [-733.522op/s; -699.221op/s] or [-51.074%; -48.686%]

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

  • 🟩 execution_time [-214.360µs; -192.053µs] or [-10.859%; -9.729%]
  • 🟩 throughput [+54.905op/s; +61.904op/s] or [+10.839%; +12.220%]

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

  • 🟩 execution_time [-212.487µs; -200.573µs] or [-5.388%; -5.086%]
  • 🟩 throughput [+13.605op/s; +14.441op/s] or [+5.365%; +5.695%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+306.196ms; +319.389ms] or [+154.195%; +160.838%]

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

  • 🟥 execution_time [+268.481ms; +284.368ms] or [+134.537%; +142.497%]

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

  • 🟥 execution_time [+302.272ms; +307.529ms] or [+151.849%; +154.489%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+302.362ms; +316.398ms] or [+151.836%; +158.885%]

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

  • unstable execution_time [+154.158ms; +219.975ms] or [+76.224%; +108.768%]

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

  • 🟥 execution_time [+300.628ms; +307.846ms] or [+152.371%; +156.030%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+301.768ms; +314.668ms] or [+151.460%; +157.935%]

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

  • unstable execution_time [+226.977ms; +285.230ms] or [+113.127%; +142.161%]

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

  • 🟥 execution_time [+298.309ms; +303.585ms] or [+148.406%; +151.031%]

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

  • unstable execution_time [-73.883ms; -47.045ms] or [-34.356%; -21.876%]
  • unstable throughput [-136543.733op/s; -88863.626op/s] or [-37.458%; -24.378%]

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

  • 🟩 execution_time [-99.228ms; -95.272ms] or [-49.774%; -47.790%]

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

  • 🟩 allocated_mem [-26.502KB; -26.480KB] or [-9.667%; -9.659%]
  • unstable execution_time [-90.247µs; -37.570µs] or [-17.837%; -7.426%]
  • 🟩 throughput [+179.650op/s; +369.929op/s] or [+8.965%; +18.460%]

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

  • 🟩 allocated_mem [-15.017KB; -14.997KB] or [-5.475%; -5.467%]
  • 🟩 execution_time [-86.147µs; -30.078µs] or [-14.929%; -5.212%]
  • 🟩 throughput [+109.242op/s; +263.146op/s] or [+6.241%; +15.034%]

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

  • unstable execution_time [+1.751µs; +6.064µs] or [+4.138%; +14.334%]

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

  • unstable execution_time [-13.633µs; -4.265µs] or [-21.152%; -6.616%]
  • unstable throughput [+1305.889op/s; +3270.812op/s] or [+8.012%; +20.068%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+303.633ms; +317.855ms] or [+153.473%; +160.662%]

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

  • 🟥 execution_time [+302.579ms; +304.699ms] or [+154.012%; +155.091%]

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

  • 🟥 execution_time [+300.929ms; +305.769ms] or [+150.652%; +153.075%]

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

  • unstable execution_time [-94.232ms; -71.521ms] or [-47.101%; -35.749%]
  • unstable throughput [-104189.002op/s; -42432.696op/s] or [-19.721%; -8.032%]

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

  • unstable execution_time [-98.200ms; -73.251ms] or [-49.777%; -37.131%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.127ms; +315.325ms] or [+150.085%; +157.161%]

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

  • unstable execution_time [+143.265ms; +208.704ms] or [+71.941%; +104.801%]

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

  • 🟥 execution_time [+307.357ms; +313.632ms] or [+155.872%; +159.054%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.897ms; +300.846ms] or [+149.590%; +150.064%]
  • 🟩 throughput [+60157961.496op/s; +60483142.336op/s] or [+43.811%; +44.048%]

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

  • unstable execution_time [+376.375ms; +388.274ms] or [+468.089%; +482.888%]
  • 🟥 throughput [-7492.314op/s; -7288.838op/s] or [-57.919%; -56.346%]

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

  • 🟥 execution_time [+298.810ms; +301.767ms] or [+149.040%; +150.515%]
  • 🟥 throughput [-18443017.428op/s; -17092130.199op/s] or [-8.169%; -7.571%]

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

  • unstable execution_time [-74.155ms; -47.539ms] or [-36.320%; -23.284%]
  • unstable throughput [-251979.312op/s; -107710.775op/s] or [-23.526%; -10.057%]

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

  • unstable execution_time [-72.665ms; -46.242ms] or [-36.769%; -23.399%]
  • 🟩 throughput [+45760.490op/s; +65221.158op/s] or [+5.297%; +7.549%]

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

  • unstable execution_time [-58.482ms; -24.782ms] or [-30.470%; -12.911%]
  • unstable throughput [-288090.208op/s; -81479.238op/s] or [-22.299%; -6.307%]

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

  • 🟩 execution_time [-101.729ms; -99.878ms] or [-49.981%; -49.072%]
  • 🟩 throughput [+90736.865op/s; +100782.232op/s] or [+9.012%; +10.009%]

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

  • unstable execution_time [-44.427ms; -6.202ms] or [-22.187%; -3.097%]
  • unstable throughput [-186092.260op/s; -91767.647op/s] or [-33.791%; -16.663%]

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

  • 🟩 execution_time [-99.674ms; -95.265ms] or [-50.080%; -47.865%]

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

  • 🟩 execution_time [-109.935ms; -106.311ms] or [-54.987%; -53.174%]
  • 🟩 throughput [+70269.224op/s; +87474.362op/s] or [+7.851%; +9.773%]

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_AddEvent_Sampled net472
  • 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_SetAttributes_Sampled net472
  • 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_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_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • 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_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • 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.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net472
  • 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

@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 (8642) 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.22 ± (74.13 - 74.76) ms72.22 ± (72.29 - 72.63) ms-2.7%
.NET Framework 4.8 - Bailout
duration77.77 ± (77.69 - 78.13) ms78.99 ± (78.82 - 79.42) ms+1.6%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1097.23 ± (1096.07 - 1103.80) ms1104.85 ± (1103.51 - 1110.48) ms+0.7%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.73 ± (22.67 - 22.78) ms22.80 ± (22.73 - 22.86) ms+0.3%✅⬆️
process.time_to_main_ms84.81 ± (84.55 - 85.07) ms86.35 ± (86.00 - 86.70) ms+1.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.90 ± (10.89 - 10.90) MB10.92 ± (10.91 - 10.92) MB+0.2%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.44 ± (22.40 - 22.48) ms22.52 ± (22.47 - 22.57) ms+0.4%✅⬆️
process.time_to_main_ms85.51 ± (85.26 - 85.76) ms87.48 ± (87.23 - 87.74) ms+2.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.88 ± (10.88 - 10.89) MB10.95 ± (10.95 - 10.95) MB+0.6%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms213.18 ± (212.27 - 214.08) ms214.27 ± (213.41 - 215.14) ms+0.5%✅⬆️
process.time_to_main_ms536.75 ± (535.41 - 538.10) ms538.29 ± (536.95 - 539.63) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.34 ± (48.31 - 48.38) MB48.48 ± (48.45 - 48.51) MB+0.3%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.2%
.NET 6 - Baseline
process.internal_duration_ms21.59 ± (21.53 - 21.64) ms21.71 ± (21.65 - 21.77) ms+0.6%✅⬆️
process.time_to_main_ms75.47 ± (75.20 - 75.75) ms76.03 ± (75.75 - 76.30) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.63 ± (10.63 - 10.64) MB10.64 ± (10.64 - 10.64) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.22 ± (21.18 - 21.26) ms21.24 ± (21.20 - 21.28) ms+0.1%✅⬆️
process.time_to_main_ms75.00 ± (74.80 - 75.20) ms75.20 ± (75.01 - 75.39) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.73 ± (10.73 - 10.73) MB10.75 ± (10.75 - 10.76) MB+0.2%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms380.71 ± (378.30 - 383.11) ms378.79 ± (376.72 - 380.87) ms-0.5%
process.time_to_main_ms536.88 ± (535.76 - 538.00) ms541.36 ± (540.01 - 542.71) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.76 ± (49.74 - 49.79) MB49.90 ± (49.88 - 49.93) MB+0.3%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.7%
.NET 8 - Baseline
process.internal_duration_ms19.27 ± (19.23 - 19.31) ms19.37 ± (19.34 - 19.41) ms+0.5%✅⬆️
process.time_to_main_ms71.57 ± (71.41 - 71.73) ms72.64 ± (72.41 - 72.87) ms+1.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.66 ± (7.66 - 7.67) MB7.67 ± (7.66 - 7.67) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.34 ± (19.30 - 19.39) ms19.72 ± (19.66 - 19.78) ms+1.9%✅⬆️
process.time_to_main_ms73.93 ± (73.68 - 74.18) ms76.45 ± (76.14 - 76.77) ms+3.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.72 ± (7.72 - 7.73) MB7.72 ± (7.72 - 7.73) MB-0.0%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms293.77 ± (291.55 - 296.00) ms296.37 ± (294.04 - 298.69) ms+0.9%✅⬆️
process.time_to_main_ms493.29 ± (492.22 - 494.36) ms496.82 ± (495.59 - 498.05) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.92 ± (36.89 - 36.95) MB36.83 ± (36.81 - 36.86) MB-0.2%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-1.1%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration199.77 ± (199.04 - 199.92) ms200.46 ± (200.29 - 201.21) ms+0.3%✅⬆️
.NET Framework 4.8 - Bailout
duration201.60 ± (201.09 - 201.94) ms204.02 ± (203.66 - 204.37) ms+1.2%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1198.57 ± (1200.13 - 1207.14) ms1200.37 ± (1201.83 - 1210.16) ms+0.1%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms195.90 ± (195.44 - 196.36) ms193.63 ± (193.14 - 194.13) ms-1.2%
process.time_to_main_ms84.00 ± (83.75 - 84.24) ms83.74 ± (83.41 - 84.06) ms-0.3%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.09 ± (16.07 - 16.10) MB16.10 ± (16.07 - 16.12) MB+0.1%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.0%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms195.40 ± (194.93 - 195.88) ms194.30 ± (193.88 - 194.73) ms-0.6%
process.time_to_main_ms85.47 ± (85.17 - 85.76) ms85.78 ± (85.53 - 86.03) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.16 ± (16.13 - 16.18) MB16.14 ± (16.11 - 16.18) MB-0.1%
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (21 - 21)+0.4%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms387.78 ± (386.48 - 389.08) ms388.36 ± (387.02 - 389.71) ms+0.2%✅⬆️
process.time_to_main_ms537.06 ± (535.80 - 538.32) ms535.55 ± (534.17 - 536.93) ms-0.3%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed57.54 ± (57.35 - 57.73) MB57.91 ± (57.68 - 58.14) MB+0.7%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.3%
.NET 6 - Baseline
process.internal_duration_ms199.63 ± (199.17 - 200.09) ms198.03 ± (197.61 - 198.44) ms-0.8%
process.time_to_main_ms73.04 ± (72.76 - 73.32) ms72.95 ± (72.69 - 73.21) ms-0.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.33 ± (16.30 - 16.35) MB16.36 ± (16.33 - 16.39) MB+0.2%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.1%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms199.00 ± (198.54 - 199.47) ms197.45 ± (197.05 - 197.85) ms-0.8%
process.time_to_main_ms73.93 ± (73.67 - 74.18) ms73.80 ± (73.54 - 74.07) ms-0.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.35 ± (16.33 - 16.37) MB16.39 ± (16.37 - 16.42) MB+0.3%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms596.70 ± (594.24 - 599.16) ms591.81 ± (589.55 - 594.07) ms-0.8%
process.time_to_main_ms537.60 ± (536.49 - 538.71) ms533.77 ± (532.79 - 534.75) ms-0.7%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.56 ± (61.47 - 61.66) MB61.22 ± (61.11 - 61.33) MB-0.6%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.1%
.NET 8 - Baseline
process.internal_duration_ms196.26 ± (195.79 - 196.73) ms197.83 ± (197.47 - 198.20) ms+0.8%✅⬆️
process.time_to_main_ms72.16 ± (71.91 - 72.42) ms72.58 ± (72.28 - 72.87) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.74 ± (11.73 - 11.76) MB11.68 ± (11.66 - 11.70) MB-0.5%
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+0.7%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms195.42 ± (194.93 - 195.92) ms196.37 ± (195.91 - 196.83) ms+0.5%✅⬆️
process.time_to_main_ms72.97 ± (72.76 - 73.18) ms73.19 ± (72.95 - 73.42) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.77 ± (11.75 - 11.80) MB11.71 ± (11.69 - 11.74) MB-0.5%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.1%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms514.46 ± (511.47 - 517.45) ms516.31 ± (513.80 - 518.83) ms+0.4%✅⬆️
process.time_to_main_ms492.19 ± (491.44 - 492.94) ms492.77 ± (491.96 - 493.58) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.68 ± (50.65 - 50.72) MB50.49 ± (50.45 - 50.52) MB-0.4%
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 (8642) - mean (72ms)  : 70, 75
    master - mean (74ms)  : 70, 79

    section Bailout
    This PR (8642) - mean (79ms)  : 74, 84
    master - mean (78ms)  : 74, 81

    section CallTarget+Inlining+NGEN
    This PR (8642) - mean (1,107ms)  : 1057, 1157
    master - mean (1,100ms)  : 1043, 1157

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 (8642) - mean (116ms)  : 109, 124
    master - mean (115ms)  : 110, 119

    section Bailout
    This PR (8642) - mean (117ms)  : 112, 122
    master - mean (115ms)  : 111, 118

    section CallTarget+Inlining+NGEN
    This PR (8642) - mean (790ms)  : 763, 816
    master - mean (787ms)  : 758, 816

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8642) - mean (104ms)  : 98, 110
    master - mean (104ms)  : 98, 109

    section Bailout
    This PR (8642) - mean (103ms)  : 101, 105
    master - mean (103ms)  : 99, 106

    section CallTarget+Inlining+NGEN
    This PR (8642) - mean (948ms)  : 909, 987
    master - mean (945ms)  : 904, 986

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

    section Bailout
    This PR (8642) - mean (104ms)  : 98, 110
    master - mean (101ms)  : 97, 105

    section CallTarget+Inlining+NGEN
    This PR (8642) - mean (825ms)  : 789, 861
    master - mean (819ms)  : 774, 865

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 (8642) - mean (201ms)  : 196, 206
    master - mean (199ms)  : 195, 204

    section Bailout
    This PR (8642) - mean (204ms)  : 201, 207
    master - mean (202ms)  : 197, 206

    section CallTarget+Inlining+NGEN
    This PR (8642) - mean (1,206ms)  : 1142, 1270
    master - mean (1,204ms)  : 1154, 1253

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 (8642) - mean (286ms)  : 280, 293
    master - mean (289ms)  : 278, 299

    section Bailout
    This PR (8642) - mean (289ms)  : 282, 295
    master - mean (290ms)  : 281, 298

    section CallTarget+Inlining+NGEN
    This PR (8642) - mean (965ms)  : 947, 983
    master - mean (965ms)  : 948, 982

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8642) - mean (279ms)  : 274, 284
    master - mean (281ms)  : 273, 289

    section Bailout
    This PR (8642) - mean (279ms)  : 274, 285
    master - mean (281ms)  : 274, 289

    section CallTarget+Inlining+NGEN
    This PR (8642) - mean (1,156ms)  : 1125, 1187
    master - mean (1,170ms)  : 1132, 1208

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8642) - mean (280ms)  : 275, 286
    master - mean (278ms)  : 271, 285

    section Bailout
    This PR (8642) - mean (279ms)  : 273, 285
    master - mean (279ms)  : 271, 286

    section CallTarget+Inlining+NGEN
    This PR (8642) - mean (1,038ms)  : 990, 1086
    master - mean (1,039ms)  : 993, 1084

Loading

@andrewlock andrewlock left a comment

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.

Thanks!

Comment on lines +252 to +253
var effectiveType = Nullable.GetUnderlyingType(type) ?? type;
return _redactedTypesCache.GetOrAdd(effectiveType, CheckForRedactedType);

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.

I'm not sure if this is necessary or not? 🤔 As I understand it, we didn't use to "support" nullable types at all previously? So this shouldn't break existing customers if they're currently specifying the full nullable type. And if that's the case, I think the existing fix is fine? 🤔

@dudikeleti
dudikeleti force-pushed the codex/fix-nullable-tostring-redaction-issue branch from 5bd78c8 to ea2f9a9 Compare May 15, 2026 12:00
@dudikeleti
dudikeleti enabled auto-merge (squash) May 15, 2026 12:03
@dudikeleti
dudikeleti merged commit 2f3caa0 into master May 15, 2026
140 checks passed
@dudikeleti
dudikeleti deleted the codex/fix-nullable-tostring-redaction-issue branch May 15, 2026 13:29
@github-actions github-actions Bot added this to the vNext-v3 milestone May 15, 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.

3 participants