Skip to content

[ADO.NET] Fix flaky Microsoft.Data.SqlClient test#8928

Draft
NachoEchevarria wants to merge 2 commits into
masterfrom
nacho/FixSqlClientTest
Draft

[ADO.NET] Fix flaky Microsoft.Data.SqlClient test#8928
NachoEchevarria wants to merge 2 commits into
masterfrom
nacho/FixSqlClientTest

Conversation

@NachoEchevarria

@NachoEchevarria NachoEchevarria commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Summary of changes

Update the Microsoft.Data.SqlClient sample to complete and flush each command executor trace before starting the next one. The shared database harness exposes this as opt-in behavior, preserving the existing behavior for other database samples.

Reason for change

The test has been detected as flaky when the first large trace is dropped before reaching the mock agent.

2026-07-21T11:51:00.1449146Z 11:51:00 [DBG]   Failed Datadog.Trace.ClrProfiler.IntegrationTests.AdoNet.MicrosoftDataSqlClientTests.SubmitsTraces(packageVersion: "1.1.4", metadataSchemaVersion: "v1", propagation: "full") [22 s]
2026-07-21T11:51:00.1450474Z 11:51:00 [DBG]   Error Message:
2026-07-21T11:51:00.1467490Z 11:51:00 [DBG]    Expected relevantSpans to contain at least 147 item(s) because we want to ensure that we don't timeout while waiting for spans from the mock tracer agent, but found 69

Splitting the workload into smaller completed traces and flushing each one makes delivery deterministic without changing the tracer configuration used by the test. Only the sample detected as flaky opts into this behavior.

Test coverage

@github-actions github-actions Bot added the area:tests unit tests, integration tests label Jul 22, 2026
@pr-commenter

pr-commenter Bot commented Jul 22, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-07-23 09:27:43

Comparing candidate commit 45114f7 in PR branch nacho/FixSqlClientTest with baseline commit 1217267 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 1 performance regressions! Performance is the same for 71 metrics, 0 unstable metrics, 63 known flaky benchmarks, 63 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 [-7053.502op/s; -6460.317op/s] or [-8.052%; -7.375%]

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 [-7566.268op/s; -7134.051op/s] or [-8.971%; -8.459%]

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

  • 🟥 throughput [-8249.397op/s; -6820.801op/s] or [-8.388%; -6.935%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+304.829ms; +312.381ms] or [+151.267%; +155.014%]
  • 🟥 throughput [-43.461op/s; -39.458op/s] or [-7.819%; -7.099%]

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

  • 🟥 execution_time [+378.353ms; +380.089ms] or [+298.922%; +300.294%]
  • 🟩 throughput [+94.195op/s; +97.158op/s] or [+12.419%; +12.810%]

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

  • 🟥 execution_time [+396.135ms; +400.711ms] or [+350.564%; +354.614%]

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 [-15.599ms; -11.427ms] or [-7.285%; -5.337%]
  • 🟩 throughput [+7521.344op/s; +10346.639op/s] or [+5.490%; +7.552%]

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 [-259333.743op/s; -254950.337op/s] or [-26.479%; -26.032%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.557%; +38.566%]
  • 🟩 execution_time [-25.712ms; -20.856ms] or [-11.466%; -9.301%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟥 throughput [-165903.137op/s; -149847.201op/s] or [-23.837%; -21.530%]

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

  • 🟩 throughput [+8647.373op/s; +11539.051op/s] or [+5.502%; +7.342%]

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

  • 🟩 throughput [+9019.250op/s; +11660.637op/s] or [+7.185%; +9.289%]

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

  • 🟩 throughput [+436176.634op/s; +458628.884op/s] or [+14.544%; +15.293%]

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

  • 🟩 execution_time [-18.493ms; -14.160ms] or [-8.525%; -6.527%]

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

  • 🟥 execution_time [+299.890ms; +300.774ms] or [+149.845%; +150.287%]

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

  • 🟥 execution_time [+299.640ms; +303.013ms] or [+151.109%; +152.810%]

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

  • 🟥 execution_time [+300.644ms; +303.648ms] or [+151.441%; +152.954%]

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

  • 🟥 execution_time [+296.352ms; +298.120ms] or [+145.557%; +146.425%]

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

  • 🟥 execution_time [+293.833ms; +295.667ms] or [+143.644%; +144.541%]

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

  • 🟥 execution_time [+299.663ms; +301.711ms] or [+149.771%; +150.795%]

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

  • 🟥 execution_time [+21.492µs; +45.185µs] or [+6.861%; +14.425%]
  • 🟥 throughput [-421.546op/s; -222.242op/s] or [-13.141%; -6.928%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.968ms; +300.938ms] or [+149.715%; +150.199%]

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

  • 🟥 execution_time [+410.182ms; +417.718ms] or [+445.680%; +453.868%]
  • 🟩 throughput [+739.863op/s; +898.642op/s] or [+6.080%; +7.384%]

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

  • unstable execution_time [+304.316ms; +358.831ms] or [+231.064%; +272.457%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+286.761ms; +362.261ms] or [+131.850%; +166.564%]
  • 🟥 throughput [-549.671op/s; -488.819op/s] or [-49.806%; -44.292%]

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

  • unstable execution_time [+212.893ms; +346.094ms] or [+90.726%; +147.491%]
  • 🟥 throughput [-675.940op/s; -592.347op/s] or [-45.085%; -39.510%]

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

  • 🟥 execution_time [+347.853ms; +362.580ms] or [+208.057%; +216.865%]
  • 🟥 throughput [-418.551op/s; -380.309op/s] or [-29.143%; -26.480%]

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

  • 🟩 execution_time [-67.211µs; -61.912µs] or [-6.233%; -5.742%]
  • 🟩 throughput [+56.723op/s; +61.434op/s] or [+6.116%; +6.624%]

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

  • 🟩 execution_time [-169.813µs; -137.332µs] or [-8.602%; -6.957%]
  • 🟩 throughput [+38.520op/s; +48.017op/s] or [+7.604%; +9.479%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+301.135ms; +302.857ms] or [+151.646%; +152.513%]

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

  • 🟥 execution_time [+298.514ms; +301.561ms] or [+149.586%; +151.113%]

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

  • 🟥 execution_time [+302.705ms; +306.492ms] or [+152.066%; +153.969%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+299.522ms; +301.051ms] or [+150.410%; +151.178%]

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

  • 🟥 execution_time [+299.278ms; +301.516ms] or [+147.980%; +149.086%]

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

  • 🟥 execution_time [+301.384ms; +305.503ms] or [+152.754%; +154.842%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+299.041ms; +301.132ms] or [+150.091%; +151.141%]

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

  • 🟥 execution_time [+298.242ms; +300.824ms] or [+148.646%; +149.933%]
  • 🟩 throughput [+53914.383op/s; +58218.838op/s] or [+10.706%; +11.560%]

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

  • 🟥 execution_time [+300.529ms; +303.931ms] or [+149.511%; +151.203%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472

  • 🟥 throughput [-16078.791op/s; -14498.886op/s] or [-6.466%; -5.830%]

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

  • 🟩 execution_time [-16.423ms; -12.737ms] or [-7.637%; -5.923%]
  • 🟩 throughput [+21441.119op/s; +28878.049op/s] or [+5.882%; +7.922%]

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

  • unstable execution_time [+18.222µs; +69.593µs] or [+4.501%; +17.190%]

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

  • 🟩 allocated_mem [-18.677KB; -18.653KB] or [-6.813%; -6.804%]
  • unstable execution_time [-20.666µs; +36.585µs] or [-4.085%; +7.231%]

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

  • unstable execution_time [-68.112µs; -5.281µs] or [-11.803%; -0.915%]
  • unstable throughput [+35.588op/s; +212.128op/s] or [+2.033%; +12.119%]

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

  • unstable execution_time [+11.527µs; +17.956µs] or [+27.246%; +42.442%]
  • 🟥 throughput [-6878.270op/s; -4687.670op/s] or [-28.955%; -19.734%]

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

  • unstable execution_time [-15.681µs; -8.753µs] or [-24.329%; -13.580%]
  • 🟩 throughput [+2217.340op/s; +3704.589op/s] or [+13.604%; +22.729%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.725ms; +303.796ms] or [+153.014%; +153.555%]

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

  • 🟥 execution_time [+303.631ms; +305.802ms] or [+154.547%; +155.653%]

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

  • 🟥 execution_time [+300.631ms; +302.935ms] or [+150.503%; +151.656%]

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

  • 🟩 throughput [+42873.512op/s; +49530.097op/s] or [+8.115%; +9.375%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+299.583ms; +301.150ms] or [+149.315%; +150.096%]

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

  • 🟥 execution_time [+299.931ms; +301.980ms] or [+150.611%; +151.640%]

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

  • 🟥 execution_time [+305.138ms; +307.811ms] or [+154.747%; +156.102%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.208ms; +300.095ms] or [+149.247%; +149.689%]
  • 🟩 throughput [+61148581.453op/s; +61473432.852op/s] or [+44.532%; +44.769%]

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

  • 🟥 execution_time [+417.239ms; +421.362ms] or [+518.910%; +524.038%]

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

  • 🟥 execution_time [+299.275ms; +300.372ms] or [+149.272%; +149.819%]

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

  • 🟩 throughput [+105366.901op/s; +111858.348op/s] or [+9.838%; +10.444%]

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

  • 🟩 throughput [+47975.048op/s; +67943.080op/s] or [+5.553%; +7.864%]

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

  • 🟩 throughput [+92703.046op/s; +122892.271op/s] or [+7.175%; +9.512%]

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

  • 🟩 throughput [+81980.059op/s; +89798.953op/s] or [+8.142%; +8.918%]

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

  • 🟩 throughput [+50588.435op/s; +55396.008op/s] or [+9.186%; +10.059%]

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

  • 🟩 throughput [+23579.546op/s; +33279.789op/s] or [+5.278%; +7.449%]

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

  • 🟩 throughput [+56194.808op/s; +75861.146op/s] or [+6.278%; +8.476%]

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 netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice netcoreapp3.1
  • 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 netcoreapp3.1
  • 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

@NachoEchevarria NachoEchevarria changed the title Update MicrosoftDataSqlClientTests.cs [ADO.NET] Fix flaky Microsoft.Data.SqlClient test Jul 22, 2026
@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8928) 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.56 ± (73.53 - 74.14) ms73.79 ± (73.96 - 74.52) ms+0.3%✅⬆️
.NET Framework 4.8 - Bailout
duration77.51 ± (77.53 - 78.12) ms81.23 ± (80.67 - 81.28) ms+4.8%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1088.08 ± (1088.06 - 1095.06) ms1087.94 ± (1089.22 - 1095.78) ms-0.0%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.41 ± (22.35 - 22.46) ms23.28 ± (23.22 - 23.33) ms+3.9%✅⬆️
process.time_to_main_ms84.60 ± (84.28 - 84.93) ms85.01 ± (84.69 - 85.33) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed11.01 ± (11.00 - 11.01) MB11.01 ± (11.01 - 11.01) MB+0.0%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.07 ± (22.04 - 22.10) ms22.95 ± (22.91 - 22.99) ms+4.0%✅⬆️
process.time_to_main_ms83.30 ± (83.12 - 83.48) ms83.50 ± (83.26 - 83.74) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed11.04 ± (11.03 - 11.04) MB11.05 ± (11.05 - 11.06) MB+0.2%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms209.88 ± (209.09 - 210.67) ms211.04 ± (210.26 - 211.82) ms+0.6%✅⬆️
process.time_to_main_ms538.10 ± (536.67 - 539.54) ms538.97 ± (537.69 - 540.26) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.43 ± (49.40 - 49.47) MB49.40 ± (49.36 - 49.43) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.2%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms20.83 ± (20.81 - 20.86) ms22.26 ± (22.21 - 22.31) ms+6.8%✅⬆️
process.time_to_main_ms70.80 ± (70.66 - 70.94) ms73.94 ± (73.64 - 74.23) ms+4.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.72 ± (10.72 - 10.72) MB10.80 ± (10.79 - 10.80) MB+0.7%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.06 ± (21.01 - 21.12) ms22.09 ± (22.05 - 22.14) ms+4.9%✅⬆️
process.time_to_main_ms73.89 ± (73.63 - 74.16) ms74.15 ± (73.89 - 74.41) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.85 ± (10.85 - 10.85) MB10.91 ± (10.90 - 10.91) MB+0.5%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms371.16 ± (369.11 - 373.21) ms371.03 ± (368.66 - 373.41) ms-0.0%
process.time_to_main_ms541.55 ± (540.48 - 542.61) ms543.14 ± (542.01 - 544.27) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.57 ± (50.55 - 50.59) MB50.54 ± (50.52 - 50.56) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.0%
.NET 8 - Baseline
process.internal_duration_ms19.24 ± (19.20 - 19.27) ms19.57 ± (19.55 - 19.60) ms+1.8%✅⬆️
process.time_to_main_ms71.33 ± (71.09 - 71.58) ms69.94 ± (69.80 - 70.08) ms-2.0%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.76 ± (7.76 - 7.77) MB7.75 ± (7.75 - 7.76) MB-0.1%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.13 ± (19.11 - 19.16) ms19.79 ± (19.74 - 19.84) ms+3.4%✅⬆️
process.time_to_main_ms71.47 ± (71.36 - 71.58) ms73.73 ± (73.44 - 74.02) ms+3.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.82 ± (7.81 - 7.83) MB7.81 ± (7.81 - 7.82) MB-0.1%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms299.99 ± (297.77 - 302.20) ms296.50 ± (294.09 - 298.90) ms-1.2%
process.time_to_main_ms493.63 ± (492.42 - 494.84) ms493.35 ± (492.30 - 494.39) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.97 ± (37.94 - 37.99) MB38.00 ± (37.97 - 38.03) MB+0.1%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)+0.2%✅⬆️

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration208.90 ± (208.92 - 210.16) ms204.32 ± (204.06 - 204.96) ms-2.2%
.NET Framework 4.8 - Bailout
duration211.69 ± (211.77 - 212.76) ms206.88 ± (206.56 - 207.48) ms-2.3%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1243.09 ± (1242.21 - 1249.33) ms1228.48 ± (1227.97 - 1236.19) ms-1.2%
.NET Core 3.1 - Baseline
process.internal_duration_ms204.61 ± (203.94 - 205.27) ms198.36 ± (197.83 - 198.89) ms-3.1%
process.time_to_main_ms88.34 ± (88.05 - 88.63) ms86.02 ± (85.79 - 86.25) ms-2.6%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.02 ± (16.01 - 16.04) MB16.17 ± (16.15 - 16.19) MB+0.9%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.3%
.NET Core 3.1 - Bailout
process.internal_duration_ms206.99 ± (206.27 - 207.71) ms198.80 ± (198.12 - 199.48) ms-4.0%
process.time_to_main_ms90.33 ± (90.00 - 90.65) ms87.42 ± (87.22 - 87.62) ms-3.2%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.07 ± (16.06 - 16.09) MB16.18 ± (16.16 - 16.19) MB+0.6%✅⬆️
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)-0.8%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms396.11 ± (394.59 - 397.63) ms389.56 ± (388.29 - 390.84) ms-1.7%
process.time_to_main_ms562.44 ± (560.96 - 563.93) ms554.29 ± (552.96 - 555.62) ms-1.5%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed59.71 ± (59.56 - 59.86) MB59.01 ± (58.78 - 59.23) MB-1.2%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.7%
.NET 6 - Baseline
process.internal_duration_ms210.93 ± (210.01 - 211.85) ms203.53 ± (203.03 - 204.04) ms-3.5%
process.time_to_main_ms77.34 ± (77.06 - 77.63) ms75.46 ± (75.26 - 75.67) ms-2.4%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.39 ± (16.37 - 16.41) MB16.50 ± (16.48 - 16.51) MB+0.7%✅⬆️
runtime.dotnet.threads.count20 ± (19 - 20)19 ± (19 - 20)-0.0%
.NET 6 - Bailout
process.internal_duration_ms205.89 ± (205.21 - 206.57) ms207.12 ± (206.48 - 207.76) ms+0.6%✅⬆️
process.time_to_main_ms77.49 ± (77.28 - 77.69) ms77.67 ± (77.46 - 77.88) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.38 ± (16.36 - 16.40) MB16.53 ± (16.51 - 16.54) MB+0.9%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.1%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms583.14 ± (580.58 - 585.71) ms577.92 ± (575.74 - 580.09) ms-0.9%
process.time_to_main_ms569.28 ± (568.13 - 570.42) ms566.23 ± (565.06 - 567.41) ms-0.5%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.65 ± (61.56 - 61.73) MB61.54 ± (61.49 - 61.59) MB-0.2%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)+0.4%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms205.16 ± (204.42 - 205.90) ms202.80 ± (202.20 - 203.40) ms-1.1%
process.time_to_main_ms75.59 ± (75.38 - 75.81) ms75.29 ± (75.07 - 75.51) ms-0.4%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.76 ± (11.74 - 11.77) MB11.85 ± (11.83 - 11.86) MB+0.8%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.2%
.NET 8 - Bailout
process.internal_duration_ms211.77 ± (210.78 - 212.77) ms206.69 ± (205.94 - 207.45) ms-2.4%
process.time_to_main_ms77.93 ± (77.71 - 78.16) ms77.61 ± (77.41 - 77.81) ms-0.4%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.75 ± (11.73 - 11.77) MB11.81 ± (11.80 - 11.83) MB+0.6%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.1%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms539.98 ± (532.60 - 547.36) ms528.89 ± (522.66 - 535.12) ms-2.1%
process.time_to_main_ms521.29 ± (520.36 - 522.22) ms516.71 ± (515.47 - 517.95) ms-0.9%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed51.62 ± (51.54 - 51.71) MB51.44 ± (51.38 - 51.51) 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 (8928) - mean (74ms)  : 70, 78
    master - mean (74ms)  : 69, 78

    section Bailout
    This PR (8928) - mean (81ms)  : 76, 86
    master - mean (78ms)  : 74, 82

    section CallTarget+Inlining+NGEN
    This PR (8928) - mean (1,093ms)  : 1046, 1139
    master - mean (1,092ms)  : 1042, 1141

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

    section Bailout
    This PR (8928) - mean (113ms)  : 108, 118
    master - mean (112ms)  : 108, 116

    section CallTarget+Inlining+NGEN
    This PR (8928) - mean (785ms)  : 761, 810
    master - mean (785ms)  : 762, 808

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

    section Bailout
    This PR (8928) - mean (103ms)  : 96, 109
    master - mean (102ms)  : 95, 109

    section CallTarget+Inlining+NGEN
    This PR (8928) - mean (945ms)  : 907, 984
    master - mean (943ms)  : 903, 984

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

    section Bailout
    This PR (8928) - mean (101ms)  : 94, 108
    master - mean (97ms)  : 96, 99

    section CallTarget+Inlining+NGEN
    This PR (8928) - mean (819ms)  : 783, 856
    master - mean (829ms)  : 781, 877

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 (8928) - mean (205ms)  : 198, 211
    master - mean (210ms)  : 201, 219

    section Bailout
    This PR (8928) - mean (207ms)  : 203, 211
    master - mean (212ms)  : 205, 219

    section CallTarget+Inlining+NGEN
    This PR (8928) - mean (1,232ms)  : 1172, 1293
    master - mean (1,246ms)  : 1194, 1297

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 (8928) - mean (294ms)  : 283, 305
    master - mean (304ms)  : 290, 317

    section Bailout
    This PR (8928) - mean (296ms)  : 282, 310
    master - mean (308ms)  : 290, 327

    section CallTarget+Inlining+NGEN
    This PR (8928) - mean (986ms)  : 963, 1010
    master - mean (1,002ms)  : 976, 1027

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8928) - mean (289ms)  : 280, 299
    master - mean (298ms)  : 281, 315

    section Bailout
    This PR (8928) - mean (295ms)  : 281, 310
    master - mean (292ms)  : 280, 305

    section CallTarget+Inlining+NGEN
    This PR (8928) - mean (1,184ms)  : 1140, 1227
    master - mean (1,189ms)  : 1147, 1231

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8928) - mean (290ms)  : 279, 301
    master - mean (292ms)  : 277, 307

    section Bailout
    This PR (8928) - mean (297ms)  : 280, 314
    master - mean (301ms)  : 283, 319

    section CallTarget+Inlining+NGEN
    This PR (8928) - mean (1,079ms)  : 989, 1169
    master - mean (1,095ms)  : 985, 1205

Loading

Comment on lines +59 to +60
SetEnvironmentVariable("DD_TRACE_PARTIAL_FLUSH_ENABLED", "true");
SetEnvironmentVariable("DD_TRACE_PARTIAL_FLUSH_MIN_SPANS", "20");

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Ah we may need to enable this for all of them as I was just manually calling this 🤔

@andrewlock

Copy link
Copy Markdown
Member

The test has been detected as flaky when the first large trace is dropped before reaching the mock agent.

Are we sure that this is what happened 🤔 I'm wondering, because the size of the trace is deterministic, so if we're flushing before each trace is written it should be deterministic I think? Did we check the logs and see that it was explicitly dropped due to an overfull buffer?

@NachoEchevarria

Copy link
Copy Markdown
Collaborator Author

Are we sure that this is what happened 🤔 I'm wondering, because the size of the trace is deterministic, so if we're flushing before each trace is written it should be deterministic I think? Did we check the logs and see that it was explicitly dropped due to an overfull buffer?

We got this: 2026-07-21 11:50:37.805 +00:00 [WRN] 1 traces were dropped since the last flush operation. { MachineName: ".", Process: "[3883 dotnet]", AppDomain: "[1 Samples.Microsoft.Data.SqlClient]", AssemblyLoadContext: """ Datadog.Trace.ClrProfiler.Managed.Loader.ManagedProfilerAssemblyLoadContext #1", TracerVersion: "3.50.0.0" }

It seems that this message could mean either that the individual trace could not fit or buffers being unavailable/full.
It's true that the buffer issue could be a better explanation since seems intermitent.
Anyway, we should probaly improve our logs to give a more detailed message in these cases. Maybe we could be facing a real tracer issue?
I was thinking that we could improve the logs and wait for the next flake and see what we get, WDYT?

@NachoEchevarria

Copy link
Copy Markdown
Collaborator Author

The test has been detected as flaky when the first large trace is dropped before reaching the mock agent.

Are we sure that this is what happened 🤔 I'm wondering, because the size of the trace is deterministic, so if we're flushing before each trace is written it should be deterministic I think? Did we check the logs and see that it was explicitly dropped due to an overfull buffer?

Related PR: https://github.com/DataDog/dd-trace-dotnet/pull/8931/changes

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