Skip to content

[Code Origin] Improve ASP.NET Core code origin endpoint detection#8595

Merged
dudikeleti merged 3 commits into
masterfrom
dudik/co/endpoint-fixes
May 11, 2026
Merged

[Code Origin] Improve ASP.NET Core code origin endpoint detection#8595
dudikeleti merged 3 commits into
masterfrom
dudik/co/endpoint-fixes

Conversation

@dudikeleti

Copy link
Copy Markdown
Contributor

Summary of changes

  • Improves ASP.NET Core code origin extraction for endpoint routing spans.
  • Adds a shared AspNetCoreEndpointCodeOrigin helper used by both ASP.NET Core diagnostic observers.
  • Allows endpoint detection to recognize MVC actions decorated with [AcceptVerbs] or method-level [Route].
  • Adds focused unit coverage for endpoint detector behavior and endpoint code-origin extraction paths.

Reason for change

  • Some ASP.NET Core endpoints did not get code origin metadata when the route endpoint method.
  • MVC actions using [AcceptVerbs] or method-level [Route] were missing from endpoint method detection.

Implementation details

  • Centralizes route endpoint type/method extraction so both single-span and non-single-span ASP.NET Core observers use the same behavior.
  • Preserves the existing RequestDelegate.Method path and adds the reviewed fallback through RequestDelegate.Target.handler.
  • Updates EndpointDetector to match AcceptVerbsAttribute and RouteAttribute.

Test coverage

  • AspNetCoreDiagnosticObserverTests

@dudikeleti
dudikeleti requested review from a team as code owners May 11, 2026 09:23

@andrewlock andrewlock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for extracting this from #8272, makes it much easier to reason about!

One thing that's tricky to follow (not your fault, just the way it works 😅) is whether for MVC apps we're running the code origin code twice - once in onendpointrouting and once in mvcbeforeaction? 🤔 If so, we can probably skip the latter if/when we know the former has executed?

Comment thread tracer/src/Datadog.Trace/DiagnosticListeners/AspNetCoreEndpointCodeOrigin.cs Outdated
@pr-commenter

pr-commenter Bot commented May 11, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-05-11 13:05:42

Comparing candidate commit 432aa38 in PR branch dudik/co/endpoint-fixes with baseline commit d1e3a68 in branch master.

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

Scenarios present only in baseline:

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

Found 1 performance improvements and 5 performance regressions! Performance is the same for 47 metrics, 19 unstable metrics, 89 known flaky benchmarks, 37 flaky benchmarks without significant changes.

Explanation

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

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

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

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

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

More details about the CI and significant changes

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

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

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

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

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

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

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

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

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

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

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-5176.272op/s; -4534.017op/s] or [-5.909%; -5.176%]

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

  • 🟥 throughput [-79195.491op/s; -72080.434op/s] or [-53.799%; -48.965%]

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

  • 🟥 throughput [-35854.156op/s; -26072.591op/s] or [-17.977%; -13.073%]
  • 🟩 execution_time [-77.118ms; -65.864ms] or [-39.001%; -33.309%]

Known flaky benchmarks

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

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

  • unstable execution_time [-19.276ms; -2.781ms] or [-13.846%; -1.998%]

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

  • unstable execution_time [-41.727ms; +0.566ms] or [-26.727%; +0.363%]

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

  • unstable execution_time [+24.551ms; +60.833ms] or [+17.560%; +43.511%]
  • unstable throughput [-15830.104op/s; +21193.320op/s] or [-10.378%; +13.894%]

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

  • unstable execution_time [+25.770ms; +65.103ms] or [+23.194%; +58.595%]

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

  • unstable execution_time [-29.910ms; -3.643ms] or [-19.440%; -2.367%]
  • unstable throughput [+18388.825op/s; +43587.788op/s] or [+12.564%; +29.782%]

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

  • unstable execution_time [+27.332ms; +57.321ms] or [+30.224%; +63.386%]

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

  • unstable execution_time [+9.638ms; +40.015ms] or [+7.125%; +29.578%]
  • unstable throughput [-21560.569op/s; -4557.793op/s] or [-15.280%; -3.230%]

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

  • unstable execution_time [-35.682ms; -10.603ms] or [-31.508%; -9.363%]

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

  • unstable execution_time [+19.508ms; +55.423ms] or [+14.002%; +39.780%]
  • unstable throughput [-47535.839op/s; -17666.747op/s] or [-26.861%; -9.983%]

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

  • unstable execution_time [-59.212ms; -27.816ms] or [-44.235%; -20.780%]

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

  • unstable execution_time [-25.313ms; +14.624ms] or [-14.776%; +8.536%]
  • unstable throughput [-2170.855op/s; +29182.983op/s] or [-1.324%; +17.798%]

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

  • unstable execution_time [+2.283ms; +40.100ms] or [+2.001%; +35.133%]

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

  • unstable execution_time [-26.505ms; -8.641ms] or [-18.476%; -6.023%]
  • unstable throughput [-22664.948op/s; +8879.425op/s] or [-12.226%; +4.790%]

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

  • unstable execution_time [-41.819ms; -2.372ms] or [-31.191%; -1.769%]

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

  • 🟩 allocated_mem [-144 bytes; -143 bytes] or [-7.698%; -7.691%]
  • unstable execution_time [+19.201ms; +53.226ms] or [+14.657%; +40.629%]
  • unstable throughput [-29909.337op/s; -10303.646op/s] or [-20.662%; -7.118%]

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

  • unstable execution_time [+27.532ms; +58.359ms] or [+30.513%; +64.678%]

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

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+10.108%; +10.117%]
  • unstable execution_time [-20.035ms; -1.796ms] or [-14.299%; -1.282%]

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

  • unstable execution_time [+10.264ms; +37.131ms] or [+11.962%; +43.276%]

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

  • 🟩 allocated_mem [-144 bytes; -143 bytes] or [-5.210%; -5.202%]
  • unstable execution_time [-30.350ms; -13.203ms] or [-24.602%; -10.702%]
  • unstable throughput [+15208.077op/s; +33848.675op/s] or [+13.140%; +29.246%]

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

  • unstable execution_time [-33.731ms; -9.419ms] or [-30.554%; -8.532%]

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

  • unstable execution_time [-40.976ms; -10.199ms] or [-23.321%; -5.805%]
  • unstable throughput [+14964.225op/s; +28750.332op/s] or [+13.985%; +26.870%]

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

  • unstable execution_time [-15.409ms; +18.850ms] or [-13.742%; +16.811%]

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

  • unstable execution_time [-15.777ms; +8.186ms] or [-11.092%; +5.755%]
  • 🟩 throughput [+9470.906op/s; +22828.712op/s] or [+6.653%; +16.036%]

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

  • unstable execution_time [-91.423ms; -54.058ms] or [-46.428%; -27.453%]
  • unstable throughput [+26201.548op/s; +53363.664op/s] or [+18.857%; +38.406%]

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

  • unstable execution_time [-17750.807µs; +17788.103µs] or [-15.985%; +16.018%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-8954.733op/s; -8233.141op/s] or [-10.618%; -9.762%]

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

  • unstable execution_time [-46.558ms; -15.247ms] or [-23.228%; -7.607%]
  • unstable throughput [-55739.848op/s; -43070.815op/s] or [-46.852%; -36.203%]

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

  • 🟩 execution_time [-101.864ms; -99.293ms] or [-51.234%; -49.941%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+325.980ms; +339.949ms] or [+161.763%; +168.695%]
  • 🟥 throughput [-52.120op/s; -39.701op/s] or [-9.377%; -7.143%]

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

  • unstable execution_time [+99.347ms; +146.851ms] or [+78.490%; +116.022%]

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

  • 🟥 execution_time [+82.651ms; +83.464ms] or [+73.143%; +73.863%]

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

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

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

  • 🟥 allocated_mem [+439 bytes; +440 bytes] or [+9.299%; +9.310%]
  • unstable execution_time [-46.788ms; -24.732ms] or [-21.851%; -11.551%]
  • unstable throughput [-33694.250op/s; -18824.936op/s] or [-24.595%; -13.741%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.500%; +27.510%]
  • 🟩 execution_time [-34.375ms; -16.180ms] or [-16.369%; -7.705%]

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-265947.635op/s; -262124.746op/s] or [-27.155%; -26.764%]

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

  • 🟥 allocated_mem [+439 bytes; +440 bytes] or [+35.945%; +35.954%]
  • unstable execution_time [-83.783ms; -51.024ms] or [-37.363%; -22.754%]
  • unstable throughput [-275899.584op/s; -153927.714op/s] or [-29.475%; -16.444%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟩 execution_time [-89.881ms; -85.211ms] or [-44.865%; -42.533%]
  • 🟥 throughput [-124177.232op/s; -107404.161op/s] or [-17.842%; -15.432%]

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

  • 🟩 execution_time [-44.267ms; -27.178ms] or [-22.335%; -13.713%]

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

  • unstable execution_time [-53.564ms; -31.338ms] or [-27.309%; -15.977%]
  • 🟩 throughput [+10697.694op/s; +13358.218op/s] or [+8.522%; +10.642%]

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

  • unstable execution_time [-56.378ms; -36.017ms] or [-27.875%; -17.808%]
  • unstable throughput [-262391.943op/s; +88853.626op/s] or [-8.749%; +2.963%]

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

  • unstable execution_time [-46.279ms; -24.208ms] or [-21.333%; -11.159%]
  • 🟩 throughput [+159314.884op/s; +217434.133op/s] or [+6.324%; +8.631%]

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

  • 🟥 execution_time [+299.471ms; +313.792ms] or [+149.635%; +156.791%]

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

  • unstable execution_time [+146.897ms; +185.348ms] or [+74.081%; +93.472%]

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

  • unstable execution_time [+253.246ms; +290.605ms] or [+127.566%; +146.384%]

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

  • 🟥 execution_time [+297.099ms; +310.746ms] or [+145.923%; +152.626%]

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

  • 🟥 execution_time [+236.402ms; +243.781ms] or [+115.568%; +119.175%]

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

  • 🟥 execution_time [+289.546ms; +302.641ms] or [+144.715%; +151.260%]

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

  • 🟥 execution_time [+17.627µs; +41.271µs] or [+5.627%; +13.176%]
  • 🟥 throughput [-388.793op/s; -189.779op/s] or [-12.120%; -5.916%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+300.088ms; +300.829ms] or [+149.775%; +150.145%]

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

  • unstable execution_time [+362.661ms; +376.949ms] or [+394.046%; +409.571%]
  • 🟥 throughput [-6919.028op/s; -6741.646op/s] or [-56.855%; -55.397%]

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

  • unstable execution_time [+215.149ms; +281.305ms] or [+163.360%; +213.592%]
  • 🟥 throughput [-1302.647op/s; -1060.368op/s] or [-12.610%; -10.265%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+302.284ms; +317.396ms] or [+138.987%; +145.936%]
  • 🟥 throughput [-686.342op/s; -669.384op/s] or [-62.189%; -60.653%]

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

  • unstable execution_time [-53.042ms; +80.804ms] or [-22.604%; +34.435%]
  • 🟥 throughput [-701.741op/s; -610.255op/s] or [-46.806%; -40.704%]

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

  • 🟥 allocated_mem [+2.305KB; +2.308KB] or [+5.442%; +5.450%]
  • 🟥 execution_time [+340.975ms; +348.788ms] or [+203.943%; +208.616%]
  • 🟥 throughput [-734.240op/s; -700.085op/s] or [-51.124%; -48.746%]

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

  • 🟩 execution_time [-173.098µs; -151.527µs] or [-8.769%; -7.676%]
  • 🟩 throughput [+42.372op/s; +48.878op/s] or [+8.365%; +9.649%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+305.047ms; +317.564ms] or [+153.616%; +159.919%]

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

  • unstable execution_time [+181.955ms; +237.906ms] or [+91.178%; +119.215%]

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

  • 🟥 execution_time [+300.561ms; +306.371ms] or [+150.989%; +153.908%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+304.111ms; +317.756ms] or [+152.715%; +159.566%]

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

  • unstable execution_time [+186.925ms; +238.910ms] or [+92.426%; +118.131%]

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

  • 🟥 execution_time [+305.628ms; +313.170ms] or [+154.906%; +158.728%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+305.801ms; +318.442ms] or [+153.485%; +159.829%]

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

  • unstable execution_time [+213.728ms; +281.937ms] or [+106.524%; +140.520%]
  • 🟩 throughput [+36236.193op/s; +46955.793op/s] or [+7.195%; +9.324%]

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

  • 🟥 execution_time [+300.592ms; +307.886ms] or [+149.542%; +153.171%]

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

  • unstable execution_time [-35.850ms; -5.976ms] or [-16.670%; -2.779%]
  • unstable throughput [-146466.272op/s; -88840.318op/s] or [-40.180%; -24.371%]

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

  • unstable execution_time [-51.794ms; -24.009ms] or [-25.981%; -12.043%]

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

  • 🟩 allocated_mem [-24.985KB; -24.963KB] or [-9.114%; -9.106%]
  • unstable execution_time [-90.395µs; -39.107µs] or [-17.866%; -7.729%]
  • 🟩 throughput [+183.273op/s; +365.544op/s] or [+9.145%; +18.241%]

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

  • 🟩 allocated_mem [-26.381KB; -26.363KB] or [-9.617%; -9.610%]
  • 🟩 execution_time [-99.405µs; -44.404µs] or [-17.226%; -7.695%]
  • 🟩 throughput [+161.474op/s; +312.563op/s] or [+9.225%; +17.857%]

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

  • unstable execution_time [+2.394µs; +8.253µs] or [+5.659%; +19.506%]
  • 🟥 throughput [-3392.481op/s; -1221.417op/s] or [-14.281%; -5.142%]

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

  • unstable execution_time [-13.393µs; -4.053µs] or [-20.779%; -6.288%]
  • unstable throughput [+1228.555op/s; +3193.917op/s] or [+7.538%; +19.596%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+304.074ms; +316.587ms] or [+153.696%; +160.020%]

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

  • 🟥 execution_time [+303.920ms; +310.702ms] or [+154.695%; +158.146%]

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

  • 🟥 execution_time [+301.954ms; +306.197ms] or [+151.165%; +153.290%]

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

  • unstable execution_time [-80.972ms; -51.036ms] or [-40.474%; -25.510%]
  • unstable throughput [-155030.973op/s; -79936.945op/s] or [-29.344%; -15.130%]

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

  • unstable execution_time [-31.947ms; -6.896ms] or [-16.194%; -3.496%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.737ms; +316.991ms] or [+150.887%; +157.992%]

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

  • unstable execution_time [+270.487ms; +299.208ms] or [+135.826%; +150.248%]

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

  • 🟥 execution_time [+305.456ms; +311.435ms] or [+154.908%; +157.940%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+300.030ms; +300.742ms] or [+149.656%; +150.012%]
  • 🟩 throughput [+59970542.839op/s; +60258353.256op/s] or [+43.674%; +43.884%]

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

  • unstable execution_time [+371.890ms; +383.493ms] or [+462.512%; +476.942%]
  • 🟥 throughput [-7349.069op/s; -7149.712op/s] or [-56.812%; -55.271%]

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

  • 🟥 execution_time [+301.422ms; +303.323ms] or [+150.342%; +151.290%]
  • 🟥 throughput [-29618721.546op/s; -28533520.614op/s] or [-13.119%; -12.638%]

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

  • unstable execution_time [-56.255ms; -28.063ms] or [-27.553%; -13.745%]
  • unstable throughput [-333519.263op/s; -180484.332op/s] or [-31.140%; -16.851%]

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

  • 🟩 execution_time [-99.667ms; -95.559ms] or [-50.432%; -48.353%]

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

  • unstable execution_time [-79.899ms; -57.264ms] or [-41.628%; -29.835%]

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

  • unstable execution_time [-75.658ms; -49.006ms] or [-37.172%; -24.078%]
  • 🟩 throughput [+57579.665op/s; +74770.706op/s] or [+5.719%; +7.426%]

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

  • unstable execution_time [-84.485ms; -52.989ms] or [-42.191%; -26.462%]
  • unstable throughput [-75581.482op/s; -122.488op/s] or [-13.724%; -0.022%]

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

  • unstable execution_time [-51.645ms; -24.423ms] or [-25.948%; -12.271%]

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

  • unstable execution_time [-98.686ms; -75.479ms] or [-49.361%; -37.753%]
  • unstable throughput [-83560.127op/s; +32169.250op/s] or [-9.336%; +3.594%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

  • unstable execution_time [-29.264ms; -6.168ms] or [-14.863%; -3.132%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net472
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

@dd-trace-dotnet-ci-bot

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8595) and master.

✅ No regressions detected - check the details below

Full Metrics Comparison

FakeDbCommand

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration74.22 ± (74.40 - 74.96) ms73.00 ± (72.89 - 73.31) ms-1.6%
.NET Framework 4.8 - Bailout
duration77.55 ± (77.53 - 77.89) ms78.17 ± (78.08 - 78.68) ms+0.8%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1121.23 ± (1119.79 - 1128.46) ms1130.12 ± (1127.78 - 1134.53) ms+0.8%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.48 ± (22.43 - 22.52) ms22.74 ± (22.69 - 22.80) ms+1.2%✅⬆️
process.time_to_main_ms84.21 ± (84.01 - 84.41) ms86.38 ± (86.05 - 86.71) ms+2.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.88 ± (10.88 - 10.89) MB10.92 ± (10.92 - 10.93) MB+0.4%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.74 ± (22.68 - 22.79) ms22.68 ± (22.62 - 22.74) ms-0.2%
process.time_to_main_ms88.17 ± (87.87 - 88.46) ms88.37 ± (87.88 - 88.87) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.89 ± (10.88 - 10.89) MB10.95 ± (10.95 - 10.96) MB+0.6%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms205.34 ± (204.81 - 205.87) ms204.48 ± (204.02 - 204.95) ms-0.4%
process.time_to_main_ms567.26 ± (565.82 - 568.71) ms565.62 ± (564.28 - 566.96) ms-0.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.63 ± (49.61 - 49.66) MB49.84 ± (49.81 - 49.87) MB+0.4%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.2%
.NET 6 - Baseline
process.internal_duration_ms21.35 ± (21.30 - 21.40) ms21.44 ± (21.38 - 21.50) ms+0.4%✅⬆️
process.time_to_main_ms74.08 ± (73.89 - 74.26) ms75.78 ± (75.47 - 76.10) ms+2.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.60 ± (10.60 - 10.60) MB10.63 ± (10.63 - 10.63) MB+0.3%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.42 ± (21.37 - 21.48) ms21.40 ± (21.34 - 21.47) ms-0.1%
process.time_to_main_ms76.22 ± (75.98 - 76.45) ms76.92 ± (76.62 - 77.21) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.71 ± (10.71 - 10.71) MB10.75 ± (10.75 - 10.75) MB+0.4%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms354.76 ± (352.93 - 356.59) ms355.74 ± (353.75 - 357.73) ms+0.3%✅⬆️
process.time_to_main_ms561.79 ± (560.51 - 563.08) ms563.59 ± (562.14 - 565.04) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.98 ± (50.96 - 51.00) MB51.18 ± (51.16 - 51.20) MB+0.4%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.5%
.NET 8 - Baseline
process.internal_duration_ms19.35 ± (19.32 - 19.39) ms19.43 ± (19.40 - 19.47) ms+0.4%✅⬆️
process.time_to_main_ms72.98 ± (72.79 - 73.17) ms72.43 ± (72.26 - 72.59) ms-0.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.66 ± (7.66 - 7.67) MB7.67 ± (7.66 - 7.68) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.68 ± (19.64 - 19.73) ms19.74 ± (19.69 - 19.80) ms+0.3%✅⬆️
process.time_to_main_ms75.75 ± (75.51 - 75.99) ms75.51 ± (75.23 - 75.80) ms-0.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.70 ± (7.70 - 7.71) MB7.71 ± (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_ms280.79 ± (278.54 - 283.05) ms281.84 ± (278.91 - 284.76) ms+0.4%✅⬆️
process.time_to_main_ms520.70 ± (519.56 - 521.84) ms524.06 ± (522.71 - 525.40) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.96 ± (37.93 - 37.98) MB37.87 ± (37.85 - 37.90) MB-0.2%
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
duration195.73 ± (195.54 - 196.27) ms193.31 ± (193.24 - 194.00) ms-1.2%
.NET Framework 4.8 - Bailout
duration198.47 ± (198.20 - 198.70) ms198.08 ± (197.72 - 198.29) ms-0.2%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1205.41 ± (1205.15 - 1211.95) ms1214.93 ± (1213.57 - 1219.20) ms+0.8%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms188.21 ± (187.87 - 188.55) ms188.32 ± (187.94 - 188.70) ms+0.1%✅⬆️
process.time_to_main_ms82.00 ± (81.75 - 82.25) ms81.51 ± (81.28 - 81.74) ms-0.6%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.13 ± (16.10 - 16.16) MB16.07 ± (16.04 - 16.09) MB-0.4%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.3%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms187.59 ± (187.31 - 187.86) ms186.40 ± (186.13 - 186.67) ms-0.6%
process.time_to_main_ms83.22 ± (83.08 - 83.36) ms82.57 ± (82.40 - 82.74) ms-0.8%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.23 ± (16.20 - 16.25) MB16.12 ± (16.09 - 16.15) MB-0.6%
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (21 - 21)+0.2%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms371.56 ± (370.31 - 372.81) ms368.75 ± (367.53 - 369.97) ms-0.8%
process.time_to_main_ms550.72 ± (549.26 - 552.17) ms548.59 ± (547.13 - 550.05) ms-0.4%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.56 ± (58.53 - 58.60) MB58.53 ± (58.48 - 58.58) MB-0.1%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.2%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms191.87 ± (191.64 - 192.10) ms192.01 ± (191.64 - 192.38) ms+0.1%✅⬆️
process.time_to_main_ms70.87 ± (70.70 - 71.05) ms70.99 ± (70.76 - 71.22) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.31 ± (16.20 - 16.41) MB16.38 ± (16.29 - 16.47) MB+0.4%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 19)19 ± (19 - 19)+2.5%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms191.14 ± (190.89 - 191.38) ms191.65 ± (191.38 - 191.91) ms+0.3%✅⬆️
process.time_to_main_ms71.78 ± (71.64 - 71.91) ms72.04 ± (71.92 - 72.15) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.02 ± (15.86 - 16.17) MB16.41 ± (16.32 - 16.51) MB+2.5%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)20 ± (20 - 20)+3.6%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms568.02 ± (565.41 - 570.62) ms570.05 ± (567.47 - 572.62) ms+0.4%✅⬆️
process.time_to_main_ms546.97 ± (545.43 - 548.50) ms551.02 ± (549.79 - 552.26) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.92 ± (61.89 - 61.96) MB62.02 ± (61.99 - 62.05) MB+0.2%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.8%
.NET 8 - Baseline
process.internal_duration_ms191.82 ± (191.45 - 192.20) ms189.42 ± (189.18 - 189.67) ms-1.3%
process.time_to_main_ms71.03 ± (70.84 - 71.22) ms70.06 ± (69.91 - 70.21) ms-1.4%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.72 ± (11.70 - 11.75) MB11.79 ± (11.76 - 11.82) MB+0.6%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.5%
.NET 8 - Bailout
process.internal_duration_ms188.58 ± (188.30 - 188.87) ms188.14 ± (187.90 - 188.38) ms-0.2%
process.time_to_main_ms71.14 ± (71.03 - 71.24) ms71.11 ± (71.03 - 71.19) ms-0.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.86 ± (11.83 - 11.89) MB11.88 ± (11.85 - 11.91) MB+0.2%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.1%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms490.76 ± (488.47 - 493.06) ms489.30 ± (486.84 - 491.75) ms-0.3%
process.time_to_main_ms499.06 ± (498.20 - 499.93) ms501.62 ± (500.70 - 502.54) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed51.53 ± (51.50 - 51.56) MB51.54 ± (51.51 - 51.57) MB+0.0%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)-0.4%
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 (8595) - mean (73ms)  : 70, 76
    master - mean (75ms)  : 70, 79

    section Bailout
    This PR (8595) - mean (78ms)  : 74, 83
    master - mean (78ms)  : 76, 80

    section CallTarget+Inlining+NGEN
    This PR (8595) - mean (1,131ms)  : 1081, 1181
    master - mean (1,124ms)  : 1081, 1168

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 (8595) - mean (116ms)  : 111, 122
    master - mean (113ms)  : 110, 117

    section Bailout
    This PR (8595) - mean (118ms)  : 109, 127
    master - mean (118ms)  : 112, 124

    section CallTarget+Inlining+NGEN
    This PR (8595) - mean (807ms)  : 779, 834
    master - mean (810ms)  : 782, 838

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

    section Bailout
    This PR (8595) - mean (105ms)  : 99, 111
    master - mean (104ms)  : 99, 110

    section CallTarget+Inlining+NGEN
    This PR (8595) - mean (950ms)  : 914, 987
    master - mean (944ms)  : 909, 980

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

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

    section CallTarget+Inlining+NGEN
    This PR (8595) - mean (836ms)  : 782, 891
    master - mean (833ms)  : 792, 874

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 (8595) - mean (194ms)  : 190, 197
    master - mean (196ms)  : 192, 199

    section Bailout
    This PR (8595) - mean (198ms)  : 195, 201
    master - mean (198ms)  : 196, 201

    section CallTarget+Inlining+NGEN
    This PR (8595) - mean (1,216ms)  : 1176, 1257
    master - mean (1,209ms)  : 1158, 1259

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 (8595) - mean (279ms)  : 272, 285
    master - mean (279ms)  : 274, 285

    section Bailout
    This PR (8595) - mean (277ms)  : 273, 281
    master - mean (279ms)  : 276, 283

    section CallTarget+Inlining+NGEN
    This PR (8595) - mean (958ms)  : 938, 977
    master - mean (962ms)  : 934, 990

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8595) - mean (271ms)  : 267, 276
    master - mean (271ms)  : 267, 275

    section Bailout
    This PR (8595) - mean (272ms)  : 268, 276
    master - mean (271ms)  : 268, 274

    section CallTarget+Inlining+NGEN
    This PR (8595) - mean (1,151ms)  : 1112, 1191
    master - mean (1,147ms)  : 1107, 1187

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8595) - mean (269ms)  : 265, 274
    master - mean (273ms)  : 267, 278

    section Bailout
    This PR (8595) - mean (269ms)  : 266, 272
    master - mean (269ms)  : 266, 273

    section CallTarget+Inlining+NGEN
    This PR (8595) - mean (1,024ms)  : 981, 1067
    master - mean (1,022ms)  : 986, 1059

Loading

@dudikeleti
dudikeleti force-pushed the dudik/co/endpoint-fixes branch from a70f0aa to 432aa38 Compare May 11, 2026 12:07
@dudikeleti
dudikeleti requested a review from jpbempel May 11, 2026 12:27
Comment thread tracer/src/Datadog.Trace/Debugger/SpanCodeOrigin/SpanCodeOrigin.cs
@dudikeleti
dudikeleti enabled auto-merge (squash) May 11, 2026 12:29
@dudikeleti
dudikeleti requested a review from tylfin May 11, 2026 12:46
@dudikeleti
dudikeleti removed the request for review from tylfin May 11, 2026 13:50
@dudikeleti
dudikeleti merged commit 3fc62dc into master May 11, 2026
72 of 75 checks passed
@dudikeleti
dudikeleti deleted the dudik/co/endpoint-fixes branch May 11, 2026 14:14
@github-actions github-actions Bot added this to the vNext-v3 milestone May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants