Skip to content

Remove debugging blocks leaking environment variables in tests#8781

Merged
bouwkast merged 3 commits into
masterfrom
tony/remove-debugging-blocks-leaking-env-vars
Jun 11, 2026
Merged

Remove debugging blocks leaking environment variables in tests#8781
bouwkast merged 3 commits into
masterfrom
tony/remove-debugging-blocks-leaking-env-vars

Conversation

@tonyredondo

Copy link
Copy Markdown
Member

Summary of changes

This PR removes blocks that can leak environment variables.

Reason for change

Implementation details

Test coverage

Other details

@tonyredondo
tonyredondo requested a review from a team as a code owner June 11, 2026 12:30
@github-actions github-actions Bot added the area:tests unit tests, integration tests label Jun 11, 2026
@andrewlock andrewlock changed the title Remove debugging blocks leaking environment variables Remove debugging blocks leaking environment variables in tests Jun 11, 2026
@andrewlock
andrewlock requested review from a team as code owners June 11, 2026 13:14
@andrewlock
andrewlock requested review from vandonr and removed request for a team June 11, 2026 13:14
@datadog-datadog-prod-us1

This comment has been minimized.

@pr-commenter

pr-commenter Bot commented Jun 11, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-06-11 15:46:19

Comparing candidate commit a273270 in PR branch tony/remove-debugging-blocks-leaking-env-vars with baseline commit 4f368a2 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 1 performance regressions! Performance is the same for 71 metrics, 0 unstable metrics, 57 known flaky benchmarks, 69 flaky benchmarks without significant changes.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-5350.091op/s; -5039.788op/s] or [-6.108%; -5.753%]

Known flaky benchmarks

These benchmarks are marked as flaky and will not trigger a failure. Modify FLAKY_BENCHMARKS_REGEX to control which benchmarks are marked as flaky.

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-7082.450op/s; -6498.918op/s] or [-8.398%; -7.706%]

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

  • 🟥 throughput [-7990.771op/s; -6253.515op/s] or [-8.125%; -6.358%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+304.478ms; +312.448ms] or [+151.092%; +155.048%]
  • 🟥 throughput [-43.200op/s; -39.400op/s] or [-7.773%; -7.089%]

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

  • 🟥 execution_time [+377.237ms; +379.924ms] or [+298.040%; +300.163%]
  • 🟩 throughput [+94.522op/s; +99.086op/s] or [+12.462%; +13.064%]

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

  • 🟥 execution_time [+391.410ms; +395.046ms] or [+346.383%; +349.600%]

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 [+471 bytes; +472 bytes] or [+9.976%; +9.987%]
  • 🟩 execution_time [-16.795ms; -12.592ms] or [-7.844%; -5.881%]
  • 🟩 throughput [+7824.836op/s; +10650.669op/s] or [+5.712%; +7.774%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.500%; +27.510%]

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-268166.709op/s; -265092.825op/s] or [-27.381%; -27.067%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.557%; +38.566%]
  • 🟩 execution_time [-26.546ms; -21.682ms] or [-11.838%; -9.669%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟥 throughput [-158557.868op/s; -142352.635op/s] or [-22.782%; -20.453%]

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

  • 🟩 throughput [+9721.381op/s; +12619.772op/s] or [+6.186%; +8.030%]

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

  • 🟩 throughput [+8972.316op/s; +11665.674op/s] or [+7.148%; +9.293%]

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

  • 🟩 throughput [+442149.498op/s; +462273.071op/s] or [+14.743%; +15.414%]

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

  • 🟩 execution_time [-19.137ms; -14.793ms] or [-8.821%; -6.819%]
  • 🟩 throughput [+187417.785op/s; +241276.414op/s] or [+7.439%; +9.577%]

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

  • 🟥 execution_time [+299.963ms; +300.818ms] or [+149.881%; +150.309%]

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

  • 🟥 execution_time [+299.183ms; +302.320ms] or [+150.879%; +152.461%]
  • 🟩 throughput [+714.592op/s; +927.058op/s] or [+5.466%; +7.091%]

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

  • 🟥 execution_time [+299.723ms; +302.165ms] or [+150.977%; +152.207%]

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

  • 🟥 execution_time [+295.177ms; +295.924ms] or [+144.979%; +145.346%]

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

  • 🟥 execution_time [+296.851ms; +300.669ms] or [+145.119%; +146.986%]

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

  • 🟥 execution_time [+298.963ms; +301.816ms] or [+149.421%; +150.847%]

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

  • 🟥 execution_time [+21.860µs; +45.461µs] or [+6.979%; +14.513%]
  • 🟥 throughput [-424.198op/s; -225.580op/s] or [-13.224%; -7.032%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.750ms; +300.459ms] or [+149.606%; +149.960%]

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

  • unstable execution_time [+248.810ms; +335.149ms] or [+270.343%; +364.154%]
  • 🟩 throughput [+681.969op/s; +913.525op/s] or [+5.604%; +7.507%]

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

  • unstable execution_time [+201.614ms; +265.081ms] or [+153.083%; +201.273%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+328.468ms; +371.025ms] or [+151.026%; +170.594%]
  • 🟥 throughput [-517.248op/s; -476.443op/s] or [-46.868%; -43.170%]

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

  • unstable execution_time [+142.897ms; +288.372ms] or [+60.897%; +122.892%]
  • 🟥 throughput [-687.420op/s; -603.608op/s] or [-45.851%; -40.261%]

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

  • 🟥 execution_time [+329.628ms; +339.182ms] or [+197.156%; +202.870%]
  • 🟥 throughput [-388.515op/s; -351.906op/s] or [-27.052%; -24.503%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+301.790ms; +303.127ms] or [+151.976%; +152.649%]

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

  • 🟥 execution_time [+300.531ms; +302.222ms] or [+150.597%; +151.444%]

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

  • 🟥 execution_time [+300.438ms; +303.765ms] or [+150.927%; +152.599%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+303.350ms; +305.608ms] or [+152.332%; +153.466%]

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

  • 🟥 execution_time [+293.897ms; +298.691ms] or [+145.319%; +147.689%]

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

  • 🟥 execution_time [+303.482ms; +308.004ms] or [+153.818%; +156.110%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+300.685ms; +302.738ms] or [+150.917%; +151.947%]

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

  • 🟥 execution_time [+301.134ms; +304.196ms] or [+150.088%; +151.614%]
  • 🟩 throughput [+36576.066op/s; +41727.934op/s] or [+7.263%; +8.286%]

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

  • 🟥 execution_time [+298.497ms; +301.822ms] or [+148.500%; +150.154%]

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

  • unstable execution_time [+3.586µs; +50.316µs] or [+0.886%; +12.429%]

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

  • 🟩 allocated_mem [-20.607KB; -20.583KB] or [-7.517%; -7.508%]
  • unstable execution_time [-30.552µs; +27.434µs] or [-6.038%; +5.422%]
  • unstable throughput [-96.825op/s; +103.806op/s] or [-4.832%; +5.180%]

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

  • unstable execution_time [-58.163µs; +3.854µs] or [-10.079%; +0.668%]

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

  • unstable execution_time [+6.420µs; +10.723µs] or [+15.175%; +25.345%]
  • 🟥 throughput [-4876.280op/s; -3057.543op/s] or [-20.528%; -12.871%]

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

  • unstable execution_time [-15.080µs; -7.930µs] or [-23.396%; -12.304%]
  • 🟩 throughput [+1977.467op/s; +3500.365op/s] or [+12.132%; +21.476%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.184ms; +303.490ms] or [+152.740%; +153.401%]

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

  • 🟥 execution_time [+310.524ms; +313.912ms] or [+158.056%; +159.780%]

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

  • 🟥 execution_time [+301.577ms; +305.447ms] or [+150.976%; +152.914%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.246ms; +304.846ms] or [+150.642%; +151.938%]

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

  • 🟥 execution_time [+302.215ms; +303.802ms] or [+151.758%; +152.555%]

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

  • 🟥 execution_time [+303.038ms; +305.597ms] or [+153.681%; +154.979%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.639ms; +300.540ms] or [+149.461%; +149.911%]
  • 🟩 throughput [+61061092.123op/s; +61352295.832op/s] or [+44.468%; +44.681%]

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

  • unstable execution_time [+341.627ms; +399.328ms] or [+424.874%; +496.636%]

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

  • 🟥 execution_time [+298.967ms; +299.979ms] or [+149.118%; +149.623%]

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

  • 🟩 throughput [+103657.275op/s; +112109.834op/s] or [+9.678%; +10.467%]

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

  • 🟩 throughput [+52184.595op/s; +71607.640op/s] or [+6.040%; +8.288%]

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

  • 🟩 throughput [+89979.018op/s; +119070.980op/s] or [+6.965%; +9.216%]

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

  • 🟩 throughput [+85487.617op/s; +94416.921op/s] or [+8.490%; +9.377%]

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

  • 🟩 throughput [+40628.315op/s; +61975.451op/s] or [+7.377%; +11.254%]

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

  • 🟩 throughput [+74301.913op/s; +92230.632op/s] or [+8.301%; +10.304%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.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 net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net6.0
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog netcoreapp3.1
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net6.0
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes netcoreapp3.1
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

The builds aren't showing up so just re-pushing
to cause a rebuild
@dd-trace-dotnet-ci-bot

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8781) 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
duration73.07 ± (72.97 - 73.45) ms72.62 ± (72.62 - 72.93) ms-0.6%
.NET Framework 4.8 - Bailout
duration76.32 ± (76.05 - 76.43) ms79.60 ± (79.34 - 79.92) ms+4.3%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1095.39 ± (1091.61 - 1099.04) ms1102.96 ± (1102.04 - 1111.65) ms+0.7%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.71 ± (22.65 - 22.77) ms22.69 ± (22.63 - 22.75) ms-0.1%
process.time_to_main_ms84.30 ± (84.04 - 84.56) ms85.65 ± (85.29 - 86.01) ms+1.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.90 ± (10.89 - 10.90) MB10.91 ± (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.46 ± (22.42 - 22.50) ms22.64 ± (22.59 - 22.69) ms+0.8%✅⬆️
process.time_to_main_ms84.38 ± (84.19 - 84.56) ms86.47 ± (86.24 - 86.69) ms+2.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.94 ± (10.93 - 10.94) MB10.95 ± (10.95 - 10.96) MB+0.1%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms215.25 ± (214.40 - 216.10) ms215.48 ± (214.66 - 216.29) ms+0.1%✅⬆️
process.time_to_main_ms540.52 ± (539.23 - 541.81) ms541.78 ± (540.66 - 542.90) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.28 ± (48.25 - 48.31) MB48.36 ± (48.33 - 48.39) MB+0.2%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.3%
.NET 6 - Baseline
process.internal_duration_ms21.23 ± (21.17 - 21.28) ms21.57 ± (21.51 - 21.64) ms+1.6%✅⬆️
process.time_to_main_ms72.69 ± (72.47 - 72.91) ms74.92 ± (74.61 - 75.23) ms+3.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.61 ± (10.60 - 10.61) MB10.62 ± (10.62 - 10.63) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.37 ± (21.33 - 21.42) ms21.36 ± (21.31 - 21.41) ms-0.1%
process.time_to_main_ms75.35 ± (75.10 - 75.59) ms74.62 ± (74.45 - 74.80) ms-1.0%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.73 ± (10.73 - 10.73) MB10.74 ± (10.74 - 10.74) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms368.14 ± (366.15 - 370.13) ms369.55 ± (367.64 - 371.46) ms+0.4%✅⬆️
process.time_to_main_ms544.48 ± (543.32 - 545.64) ms547.78 ± (546.39 - 549.16) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.76 ± (49.74 - 49.78) MB49.75 ± (49.72 - 49.77) MB-0.0%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.29 ± (19.26 - 19.32) ms19.48 ± (19.44 - 19.52) ms+1.0%✅⬆️
process.time_to_main_ms71.77 ± (71.63 - 71.92) ms72.01 ± (71.83 - 72.19) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.66 ± (7.65 - 7.67) 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.21 ± (19.17 - 19.25) ms19.63 ± (19.58 - 19.68) ms+2.2%✅⬆️
process.time_to_main_ms72.45 ± (72.33 - 72.58) ms75.68 ± (75.44 - 75.91) ms+4.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.71 ± (7.70 - 7.71) MB7.72 ± (7.71 - 7.72) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms297.60 ± (295.48 - 299.71) ms296.14 ± (293.82 - 298.46) ms-0.5%
process.time_to_main_ms495.08 ± (494.13 - 496.02) ms496.40 ± (495.30 - 497.50) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.90 ± (36.87 - 36.92) MB36.85 ± (36.82 - 36.88) MB-0.1%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.5%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration199.34 ± (199.22 - 200.22) ms200.65 ± (200.09 - 201.01) ms+0.7%✅⬆️
.NET Framework 4.8 - Bailout
duration202.45 ± (202.48 - 203.42) ms203.33 ± (202.88 - 203.83) ms+0.4%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1193.87 ± (1195.59 - 1201.34) ms1203.57 ± (1205.70 - 1212.50) ms+0.8%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms192.18 ± (191.74 - 192.62) ms193.99 ± (193.57 - 194.40) ms+0.9%✅⬆️
process.time_to_main_ms83.17 ± (82.90 - 83.43) ms84.02 ± (83.71 - 84.33) ms+1.0%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.14 ± (16.12 - 16.17) MB16.13 ± (16.10 - 16.15) MB-0.1%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (19 - 20)-0.2%
.NET Core 3.1 - Bailout
process.internal_duration_ms192.65 ± (192.21 - 193.09) ms192.89 ± (192.53 - 193.25) ms+0.1%✅⬆️
process.time_to_main_ms84.74 ± (84.53 - 84.95) ms84.71 ± (84.51 - 84.91) ms-0.0%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.11 ± (16.07 - 16.14) MB16.16 ± (16.13 - 16.19) MB+0.3%✅⬆️
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+0.0%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms384.61 ± (383.35 - 385.88) ms384.10 ± (382.84 - 385.36) ms-0.1%
process.time_to_main_ms535.07 ± (533.97 - 536.17) ms537.19 ± (535.88 - 538.49) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed57.36 ± (57.18 - 57.53) MB57.36 ± (57.18 - 57.53) MB-0.0%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.0%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms198.43 ± (198.09 - 198.76) ms199.28 ± (198.85 - 199.71) ms+0.4%✅⬆️
process.time_to_main_ms72.29 ± (72.05 - 72.54) ms73.13 ± (72.84 - 73.42) ms+1.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.36 ± (16.34 - 16.38) MB16.40 ± (16.37 - 16.43) MB+0.3%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.5%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms196.72 ± (196.31 - 197.12) ms198.69 ± (198.24 - 199.14) ms+1.0%✅⬆️
process.time_to_main_ms73.35 ± (73.10 - 73.59) ms73.91 ± (73.69 - 74.13) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.41 ± (16.38 - 16.43) MB16.42 ± (16.39 - 16.44) MB+0.1%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.4%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms586.98 ± (584.43 - 589.52) ms585.87 ± (583.22 - 588.53) ms-0.2%
process.time_to_main_ms544.90 ± (543.76 - 546.05) ms548.70 ± (547.70 - 549.69) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.06 ± (60.98 - 61.15) MB60.96 ± (60.88 - 61.05) MB-0.2%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.3%
.NET 8 - Baseline
process.internal_duration_ms194.34 ± (193.93 - 194.74) ms195.92 ± (195.53 - 196.31) ms+0.8%✅⬆️
process.time_to_main_ms71.05 ± (70.77 - 71.34) ms72.04 ± (71.79 - 72.28) ms+1.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.75 ± (11.73 - 11.78) MB11.74 ± (11.72 - 11.76) MB-0.1%
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+0.3%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms194.37 ± (194.07 - 194.67) ms194.86 ± (194.40 - 195.33) ms+0.3%✅⬆️
process.time_to_main_ms72.45 ± (72.22 - 72.69) ms72.54 ± (72.31 - 72.77) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.82 ± (11.80 - 11.84) MB11.83 ± (11.81 - 11.86) MB+0.1%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.3%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms517.23 ± (514.71 - 519.74) ms515.34 ± (512.86 - 517.82) ms-0.4%
process.time_to_main_ms493.35 ± (492.56 - 494.14) ms497.55 ± (496.52 - 498.58) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.65 ± (50.62 - 50.69) MB50.65 ± (50.61 - 50.69) MB-0.0%
runtime.dotnet.threads.count30 ± (29 - 30)29 ± (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 (8781) - mean (73ms)  : 70, 75
    master - mean (73ms)  : 70, 77

    section Bailout
    This PR (8781) - mean (80ms)  : 75, 84
    master - mean (76ms)  : 74, 78

    section CallTarget+Inlining+NGEN
    This PR (8781) - mean (1,107ms)  : 1034, 1179
    master - mean (1,095ms)  : 1041, 1150

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 (8781) - mean (115ms)  : 109, 122
    master - mean (114ms)  : 108, 120

    section Bailout
    This PR (8781) - mean (116ms)  : 112, 121
    master - mean (113ms)  : 111, 116

    section CallTarget+Inlining+NGEN
    This PR (8781) - mean (793ms)  : 763, 823
    master - mean (793ms)  : 767, 818

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

    section Bailout
    This PR (8781) - mean (102ms)  : 99, 106
    master - mean (103ms)  : 99, 108

    section CallTarget+Inlining+NGEN
    This PR (8781) - mean (947ms)  : 909, 984
    master - mean (944ms)  : 902, 986

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

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

    section CallTarget+Inlining+NGEN
    This PR (8781) - mean (824ms)  : 781, 866
    master - mean (821ms)  : 782, 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 (8781) - mean (201ms)  : 195, 206
    master - mean (200ms)  : 192, 207

    section Bailout
    This PR (8781) - mean (203ms)  : 199, 208
    master - mean (203ms)  : 198, 208

    section CallTarget+Inlining+NGEN
    This PR (8781) - mean (1,209ms)  : 1159, 1259
    master - mean (1,198ms)  : 1157, 1240

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 (8781) - mean (286ms)  : 279, 294
    master - mean (284ms)  : 277, 292

    section Bailout
    This PR (8781) - mean (286ms)  : 282, 291
    master - mean (286ms)  : 281, 291

    section CallTarget+Inlining+NGEN
    This PR (8781) - mean (961ms)  : 941, 982
    master - mean (959ms)  : 940, 978

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

    section Bailout
    This PR (8781) - mean (281ms)  : 274, 287
    master - mean (278ms)  : 274, 283

    section CallTarget+Inlining+NGEN
    This PR (8781) - mean (1,163ms)  : 1125, 1200
    master - mean (1,160ms)  : 1125, 1196

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8781) - mean (278ms)  : 272, 284
    master - mean (276ms)  : 270, 281

    section Bailout
    This PR (8781) - mean (278ms)  : 272, 283
    master - mean (277ms)  : 273, 280

    section CallTarget+Inlining+NGEN
    This PR (8781) - mean (1,045ms)  : 1004, 1086
    master - mean (1,040ms)  : 1003, 1078

Loading

@bouwkast
bouwkast enabled auto-merge (squash) June 11, 2026 16:28
@bouwkast
bouwkast merged commit c6f007b into master Jun 11, 2026
137 of 138 checks passed
@bouwkast
bouwkast deleted the tony/remove-debugging-blocks-leaking-env-vars branch June 11, 2026 17:28
@github-actions github-actions Bot added this to the vNext-v3 milestone Jun 11, 2026
zacharycmontoya pushed a commit that referenced this pull request Jun 16, 2026
## Summary of changes

This PR removes blocks that can leak environment variables.

## Reason for change

## Implementation details

## Test coverage

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


<!--  ⚠️ Note:

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

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

---------

Co-authored-by: Andrew Lock <[email protected]>
Co-authored-by: Steven Bouwkamp <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:tests unit tests, integration tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants