Skip to content

[DBM] Skip telemetry for DBM errors#8679

Merged
andrewlock merged 2 commits into
masterfrom
andrew/null-in-dbm
Jun 16, 2026
Merged

[DBM] Skip telemetry for DBM errors#8679
andrewlock merged 2 commits into
masterfrom
andrew/null-in-dbm

Conversation

@andrewlock

@andrewlock andrewlock commented May 22, 2026

Copy link
Copy Markdown
Member

Summary of changes

Skips telemetry for errors when executing a command with DBM

Reason for change

We're making a "real" SQL request, so it could fail for all sorts of reasons

Implementation details

Suppress the errors - there's too much noise.

Test coverage

Meh

Other details

Fixes this error - among others

@github-actions github-actions Bot added the area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations) label May 22, 2026
@pr-commenter

pr-commenter Bot commented May 22, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-06-16 13:42:18

Comparing candidate commit 98f5ae0 in PR branch andrew/null-in-dbm with baseline commit f308e58 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 2 performance regressions! Performance is the same for 70 metrics, 0 unstable metrics, 61 known flaky benchmarks, 65 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.DbCommandBenchmark.ExecuteNonQuery net472

  • 🟥 throughput [-22281.660op/s; -18983.379op/s] or [-6.276%; -5.347%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-5347.843op/s; -5025.679op/s] or [-6.105%; -5.737%]

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 [-6882.135op/s; -6302.741op/s] or [-8.160%; -7.473%]

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

  • 🟥 throughput [-7772.478op/s; -5346.664op/s] or [-7.903%; -5.436%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+310.113ms; +317.256ms] or [+153.889%; +157.434%]
  • 🟥 throughput [-42.360op/s; -38.314op/s] or [-7.621%; -6.893%]

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

  • 🟥 execution_time [+379.192ms; +380.773ms] or [+299.585%; +300.834%]
  • 🟩 throughput [+93.023op/s; +95.750op/s] or [+12.265%; +12.624%]

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

  • 🟥 execution_time [+390.400ms; +393.242ms] or [+345.489%; +348.004%]

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.300ms; -12.121ms] or [-7.613%; -5.661%]

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 [-271971.622op/s; -268046.934op/s] or [-27.770%; -27.369%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.557%; +38.566%]
  • 🟩 execution_time [-26.332ms; -21.453ms] or [-11.743%; -9.567%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟥 throughput [-156126.429op/s; -140360.106op/s] or [-22.432%; -20.167%]

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

  • 🟩 throughput [+10073.983op/s; +12777.596op/s] or [+8.025%; +10.179%]

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

  • 🟩 throughput [+468309.014op/s; +486143.780op/s] or [+15.615%; +16.210%]

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

  • 🟩 execution_time [-18.983ms; -14.618ms] or [-8.750%; -6.739%]
  • 🟩 throughput [+165742.749op/s; +219590.874op/s] or [+6.579%; +8.716%]

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

  • 🟥 execution_time [+299.086ms; +299.903ms] or [+149.443%; +149.851%]

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

  • 🟥 execution_time [+299.221ms; +302.676ms] or [+150.898%; +152.640%]

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

  • 🟥 execution_time [+300.141ms; +303.225ms] or [+151.188%; +152.741%]

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

  • 🟥 execution_time [+297.001ms; +297.745ms] or [+145.875%; +146.240%]

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

  • 🟥 execution_time [+294.371ms; +296.412ms] or [+143.907%; +144.905%]

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

  • 🟥 execution_time [+301.186ms; +304.114ms] or [+150.532%; +151.996%]

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

  • 🟥 execution_time [+26.490µs; +50.475µs] or [+8.457%; +16.114%]
  • 🟥 throughput [-463.823op/s; -262.417op/s] or [-14.459%; -8.180%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.993ms; +300.838ms] or [+149.727%; +150.149%]

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

  • 🟥 execution_time [+408.830ms; +417.220ms] or [+444.211%; +453.326%]
  • 🟩 throughput [+791.279op/s; +1037.727op/s] or [+6.502%; +8.527%]

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

  • unstable execution_time [+250.280ms; +313.639ms] or [+190.035%; +238.143%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+315.384ms; +364.070ms] or [+145.011%; +167.396%]
  • 🟥 throughput [-559.214op/s; -510.631op/s] or [-50.670%; -46.268%]

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

  • unstable execution_time [+145.946ms; +292.259ms] or [+62.196%; +124.549%]
  • 🟥 throughput [-666.597op/s; -583.053op/s] or [-44.462%; -38.890%]

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

  • 🟥 execution_time [+338.617ms; +353.099ms] or [+202.532%; +211.194%]
  • 🟥 throughput [-411.916op/s; -374.443op/s] or [-28.681%; -26.072%]

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

  • unstable execution_time [-262.103µs; -42.259µs] or [-14.042%; -2.264%]
  • unstable throughput [+34.514op/s; +176.100op/s] or [+6.442%; +32.870%]

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

  • 🟩 execution_time [-206.959µs; -190.607µs] or [-10.484%; -9.655%]
  • 🟩 throughput [+54.301op/s; +59.433op/s] or [+10.720%; +11.733%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+302.568ms; +304.707ms] or [+152.367%; +153.445%]

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

  • 🟥 execution_time [+299.700ms; +301.205ms] or [+150.180%; +150.934%]
  • 🟩 throughput [+31857.943op/s; +36571.949op/s] or [+5.023%; +5.766%]

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

  • 🟥 execution_time [+299.990ms; +304.406ms] or [+150.702%; +152.921%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+298.424ms; +300.656ms] or [+149.858%; +150.979%]

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

  • 🟥 execution_time [+299.350ms; +301.951ms] or [+148.015%; +149.301%]

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

  • 🟥 execution_time [+303.848ms; +307.584ms] or [+154.004%; +155.897%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+301.244ms; +302.930ms] or [+151.197%; +152.043%]

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

  • 🟥 execution_time [+302.646ms; +304.776ms] or [+150.841%; +151.903%]
  • 🟩 throughput [+42182.909op/s; +50453.681op/s] or [+8.376%; +10.018%]

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

  • 🟥 execution_time [+300.538ms; +303.470ms] or [+149.515%; +150.974%]

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

  • 🟩 execution_time [-16.358ms; -12.706ms] or [-7.607%; -5.909%]
  • 🟩 throughput [+21724.673op/s; +29162.245op/s] or [+5.960%; +8.000%]

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

  • unstable execution_time [+6.238µs; +53.841µs] or [+1.541%; +13.299%]

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

  • 🟩 allocated_mem [-25.034KB; -25.011KB] or [-9.132%; -9.123%]
  • unstable execution_time [-36.807µs; +18.749µs] or [-7.275%; +3.706%]

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

  • 🟩 allocated_mem [-28.072KB; -28.054KB] or [-10.233%; -10.227%]
  • unstable execution_time [-66.797µs; -3.728µs] or [-11.575%; -0.646%]
  • unstable throughput [+30.518op/s; +209.171op/s] or [+1.744%; +11.950%]

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

  • unstable execution_time [+6.320µs; +11.899µs] or [+14.938%; +28.126%]
  • 🟥 throughput [-4991.828op/s; -3034.828op/s] or [-21.014%; -12.776%]

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

  • unstable execution_time [-15.233µs; -7.525µs] or [-23.633%; -11.675%]
  • unstable throughput [+1979.391op/s; +3626.943op/s] or [+12.144%; +22.252%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.762ms; +304.594ms] or [+153.033%; +153.959%]

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

  • 🟥 execution_time [+302.018ms; +304.736ms] or [+153.726%; +155.110%]

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

  • 🟥 execution_time [+300.415ms; +303.174ms] or [+150.395%; +151.776%]

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

  • 🟩 throughput [+34938.929op/s; +40148.727op/s] or [+6.613%; +7.599%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+298.104ms; +300.093ms] or [+148.578%; +149.569%]

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

  • 🟥 execution_time [+301.690ms; +303.008ms] or [+151.494%; +152.156%]

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

  • 🟥 execution_time [+304.605ms; +307.222ms] or [+154.476%; +155.803%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+300.386ms; +301.281ms] or [+149.834%; +150.280%]
  • 🟩 throughput [+65918185.503op/s; +66239629.809op/s] or [+48.006%; +48.240%]

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

  • 🟥 execution_time [+420.330ms; +424.307ms] or [+522.755%; +527.702%]

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

  • 🟥 execution_time [+299.559ms; +300.730ms] or [+149.413%; +149.997%]
  • 🟩 throughput [+18043742.454op/s; +19041643.752op/s] or [+7.992%; +8.434%]

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

  • 🟩 throughput [+56940.198op/s; +106779.606op/s] or [+5.316%; +9.970%]

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

  • 🟩 throughput [+50753.747op/s; +70298.451op/s] or [+5.875%; +8.137%]

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

  • 🟩 throughput [+94731.995op/s; +125443.295op/s] or [+7.332%; +9.710%]

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

  • 🟩 throughput [+88142.961op/s; +97136.938op/s] or [+8.754%; +9.647%]

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

  • 🟩 throughput [+30358.816op/s; +37634.524op/s] or [+5.513%; +6.834%]

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

  • 🟩 throughput [+23279.224op/s; +32983.611op/s] or [+5.211%; +7.383%]

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

  • 🟩 throughput [+90356.920op/s; +108645.448op/s] or [+10.095%; +12.138%]

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.ObjectExtractorMoreComplexBody net6.0
  • 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.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472
  • 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

@dd-trace-dotnet-ci-bot

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8679) 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
duration72.38 ± (72.45 - 72.81) ms72.51 ± (72.46 - 72.80) ms+0.2%✅⬆️
.NET Framework 4.8 - Bailout
duration77.37 ± (77.32 - 77.80) ms78.46 ± (78.39 - 78.96) ms+1.4%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1108.72 ± (1107.14 - 1113.14) ms1109.25 ± (1105.14 - 1112.86) ms+0.0%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.52 ± (22.47 - 22.56) ms22.71 ± (22.65 - 22.77) ms+0.9%✅⬆️
process.time_to_main_ms85.18 ± (84.94 - 85.43) ms86.38 ± (86.08 - 86.69) ms+1.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.91 ± (10.91 - 10.91) MB10.91 ± (10.91 - 10.92) MB+0.0%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.72 ± (22.66 - 22.78) ms22.75 ± (22.67 - 22.82) ms+0.1%✅⬆️
process.time_to_main_ms89.07 ± (88.75 - 89.39) ms87.98 ± (87.57 - 88.38) ms-1.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.94 ± (10.94 - 10.95) 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_ms214.68 ± (213.75 - 215.60) ms213.84 ± (213.00 - 214.68) ms-0.4%
process.time_to_main_ms544.34 ± (542.97 - 545.70) ms544.02 ± (542.84 - 545.20) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.57 ± (48.54 - 48.61) MB48.57 ± (48.54 - 48.60) MB-0.0%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.3%
.NET 6 - Baseline
process.internal_duration_ms21.13 ± (21.08 - 21.17) ms21.71 ± (21.65 - 21.78) ms+2.8%✅⬆️
process.time_to_main_ms73.77 ± (73.59 - 73.94) ms76.67 ± (76.38 - 76.97) ms+3.9%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.61 - 10.62) MB10.64 ± (10.63 - 10.64) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.59 ± (21.53 - 21.65) ms21.21 ± (21.17 - 21.24) ms-1.8%
process.time_to_main_ms78.13 ± (77.86 - 78.40) ms75.55 ± (75.37 - 75.73) ms-3.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.73 ± (10.73 - 10.73) MB10.76 ± (10.76 - 10.76) MB+0.3%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms367.73 ± (365.79 - 369.68) ms370.53 ± (368.26 - 372.80) ms+0.8%✅⬆️
process.time_to_main_ms550.27 ± (548.96 - 551.57) ms549.72 ± (548.45 - 550.99) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.98 ± (49.96 - 50.00) MB50.04 ± (50.02 - 50.07) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.48 ± (19.44 - 19.51) ms19.49 ± (19.43 - 19.54) ms+0.0%✅⬆️
process.time_to_main_ms72.74 ± (72.57 - 72.91) ms73.67 ± (73.38 - 73.96) ms+1.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.66 ± (7.66 - 7.66) MB7.70 ± (7.69 - 7.70) MB+0.4%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.44 ± (19.40 - 19.47) ms19.72 ± (19.66 - 19.78) ms+1.5%✅⬆️
process.time_to_main_ms73.69 ± (73.51 - 73.87) ms76.73 ± (76.44 - 77.02) ms+4.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.71 ± (7.71 - 7.72) MB7.74 ± (7.74 - 7.75) MB+0.4%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms299.00 ± (297.08 - 300.93) ms293.51 ± (291.27 - 295.74) ms-1.8%
process.time_to_main_ms500.88 ± (499.70 - 502.06) ms501.64 ± (500.49 - 502.79) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.87 ± (36.84 - 36.90) MB36.95 ± (36.91 - 36.98) MB+0.2%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)+0.0%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration198.25 ± (197.84 - 198.83) ms197.05 ± (197.03 - 198.14) ms-0.6%
.NET Framework 4.8 - Bailout
duration200.76 ± (200.57 - 201.35) ms199.76 ± (199.67 - 200.59) ms-0.5%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1180.62 ± (1182.34 - 1190.86) ms1192.41 ± (1191.11 - 1196.82) ms+1.0%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms191.66 ± (191.12 - 192.20) ms192.31 ± (191.85 - 192.77) ms+0.3%✅⬆️
process.time_to_main_ms83.57 ± (83.21 - 83.94) ms83.01 ± (82.71 - 83.31) ms-0.7%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.06 ± (16.04 - 16.09) MB16.11 ± (16.09 - 16.14) MB+0.3%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (19 - 20)-0.3%
.NET Core 3.1 - Bailout
process.internal_duration_ms190.99 ± (190.57 - 191.40) ms191.08 ± (190.60 - 191.56) ms+0.0%✅⬆️
process.time_to_main_ms84.31 ± (84.07 - 84.55) ms84.22 ± (83.96 - 84.48) ms-0.1%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.15 ± (16.13 - 16.17) MB16.18 ± (16.16 - 16.21) MB+0.2%✅⬆️
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (20 - 21)-0.2%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms382.43 ± (381.29 - 383.56) ms386.36 ± (384.92 - 387.80) ms+1.0%✅⬆️
process.time_to_main_ms535.59 ± (534.44 - 536.74) ms532.56 ± (531.51 - 533.61) ms-0.6%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed57.12 ± (57.03 - 57.21) MB57.43 ± (57.25 - 57.61) MB+0.5%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.3%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms195.35 ± (194.94 - 195.76) ms197.34 ± (196.87 - 197.80) ms+1.0%✅⬆️
process.time_to_main_ms71.78 ± (71.50 - 72.05) ms72.27 ± (72.01 - 72.53) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.37 ± (16.34 - 16.39) MB16.39 ± (16.36 - 16.42) MB+0.2%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.9%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms195.31 ± (194.85 - 195.77) ms195.73 ± (195.27 - 196.18) ms+0.2%✅⬆️
process.time_to_main_ms72.53 ± (72.31 - 72.76) ms73.11 ± (72.88 - 73.34) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.30 ± (16.19 - 16.41) MB16.43 ± (16.40 - 16.46) MB+0.8%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.7%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms586.29 ± (583.62 - 588.96) ms587.26 ± (584.94 - 589.57) ms+0.2%✅⬆️
process.time_to_main_ms542.00 ± (540.93 - 543.06) ms541.64 ± (540.45 - 542.83) ms-0.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.16 ± (61.06 - 61.27) MB61.24 ± (61.15 - 61.33) MB+0.1%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.2%
.NET 8 - Baseline
process.internal_duration_ms195.24 ± (194.85 - 195.63) ms194.19 ± (193.70 - 194.67) ms-0.5%
process.time_to_main_ms71.51 ± (71.32 - 71.69) ms71.18 ± (70.92 - 71.44) ms-0.5%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.69 ± (11.67 - 11.70) MB11.69 ± (11.67 - 11.72) MB+0.1%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+0.1%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms193.67 ± (193.36 - 193.99) ms193.33 ± (192.85 - 193.81) ms-0.2%
process.time_to_main_ms72.50 ± (72.33 - 72.66) ms72.18 ± (71.96 - 72.39) ms-0.4%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.75 ± (11.73 - 11.77) MB11.76 ± (11.73 - 11.78) MB+0.0%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.0%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms513.20 ± (510.40 - 515.99) ms513.91 ± (511.67 - 516.16) ms+0.1%✅⬆️
process.time_to_main_ms491.80 ± (490.97 - 492.64) ms489.53 ± (488.74 - 490.32) ms-0.5%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.63 ± (50.59 - 50.67) MB50.56 ± (50.52 - 50.60) MB-0.1%
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 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 (8679) - mean (73ms)  : 70, 75
    master - mean (73ms)  : 70, 75

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

    section CallTarget+Inlining+NGEN
    This PR (8679) - mean (1,109ms)  : 1052, 1166
    master - mean (1,110ms)  : 1067, 1153

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 (8679) - mean (116ms)  : 111, 121
    master - mean (115ms)  : 110, 119

    section Bailout
    This PR (8679) - mean (118ms)  : 112, 123
    master - mean (119ms)  : 113, 125

    section CallTarget+Inlining+NGEN
    This PR (8679) - mean (794ms)  : 767, 821
    master - mean (796ms)  : 771, 821

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

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

    section CallTarget+Inlining+NGEN
    This PR (8679) - mean (950ms)  : 902, 998
    master - mean (947ms)  : 905, 989

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

    section Bailout
    This PR (8679) - mean (105ms)  : 99, 111
    master - mean (101ms)  : 98, 103

    section CallTarget+Inlining+NGEN
    This PR (8679) - mean (827ms)  : 782, 872
    master - mean (829ms)  : 789, 869

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 (8679) - mean (198ms)  : 190, 205
    master - mean (198ms)  : 192, 205

    section Bailout
    This PR (8679) - mean (200ms)  : 195, 205
    master - mean (201ms)  : 197, 205

    section CallTarget+Inlining+NGEN
    This PR (8679) - mean (1,194ms)  : 1153, 1235
    master - mean (1,187ms)  : 1132, 1241

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 (8679) - mean (285ms)  : 277, 292
    master - mean (284ms)  : 276, 293

    section Bailout
    This PR (8679) - mean (284ms)  : 278, 290
    master - mean (284ms)  : 278, 290

    section CallTarget+Inlining+NGEN
    This PR (8679) - mean (956ms)  : 932, 981
    master - mean (957ms)  : 939, 975

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

    section Bailout
    This PR (8679) - mean (277ms)  : 271, 283
    master - mean (276ms)  : 270, 282

    section CallTarget+Inlining+NGEN
    This PR (8679) - mean (1,157ms)  : 1121, 1193
    master - mean (1,156ms)  : 1114, 1199

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8679) - mean (275ms)  : 269, 282
    master - mean (277ms)  : 268, 285

    section Bailout
    This PR (8679) - mean (275ms)  : 269, 282
    master - mean (276ms)  : 272, 280

    section CallTarget+Inlining+NGEN
    This PR (8679) - mean (1,036ms)  : 1001, 1071
    master - mean (1,037ms)  : 988, 1087

Loading

// when it's private _socket field is set to null by a prior network error,
// without it being set in ConnectionState. This is an internal SqlClient
// race condition that we (and customer) can't act on, so suppress telemetry.
const string messageTemplate = "Error setting context_info [{ContextValue}] for DB query, falling back to service only propagation mode. There won't be any link with APM traces. (will log this error {N} more time and then stop)";

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.

FWIW, probably worth checking / verifying but I think all of the currently remaining errors for DBM propagation here are really things out of our control so I wonder if we can just send everything to ErrorSkipTelemetry

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, agreed, switched as you suggested

@andrewlock
andrewlock force-pushed the andrew/null-in-dbm branch from 5dbf486 to 8983424 Compare June 9, 2026 08:14
@andrewlock andrewlock changed the title [DBM] Downgrade error for NullReferenceException [DBM] Skip telemetry for DBM errors Jun 9, 2026
@andrewlock
andrewlock marked this pull request as ready for review June 9, 2026 08:18
@andrewlock
andrewlock requested review from a team as code owners June 9, 2026 08:18
@andrewlock
andrewlock requested review from vandonr and removed request for a team June 9, 2026 08:18
@datadog-official

This comment has been minimized.

@andrewlock
andrewlock force-pushed the andrew/null-in-dbm branch from af3b310 to 015be4a Compare June 11, 2026 20:52
@andrewlock
andrewlock enabled auto-merge (squash) June 11, 2026 20:53
@andrewlock
andrewlock merged commit 586e97e into master Jun 16, 2026
140 checks passed
@andrewlock
andrewlock deleted the andrew/null-in-dbm branch June 16, 2026 17:15
@github-actions github-actions Bot added this to the vNext-v3 milestone Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:database-monitoring area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations) identified-by:telemetry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants