Skip to content

Fix OTLP traces export routed through APM Unix domain socket instead of OTLP endpoint#8460

Open
duncanhewett wants to merge 2 commits intomasterfrom
duncan.hewett/fix-otlp-traces-uds-transport
Open

Fix OTLP traces export routed through APM Unix domain socket instead of OTLP endpoint#8460
duncanhewett wants to merge 2 commits intomasterfrom
duncan.hewett/fix-otlp-traces-uds-transport

Conversation

@duncanhewett
Copy link
Copy Markdown

Summary of changes

Fix OTLP traces transport to use the OTLP endpoint directly instead of the APM trace transport strategy.

Reason for change

On Linux, when the default APM Unix domain socket (/var/run/datadog/apm.socket) exists, OTLP trace requests were incorrectly routed through it instead of the configured OTLP HTTP endpoint, resulting in 404 errors.

Implementation details

ManagedApiOtlp now creates an HttpClientRequestFactory from ExporterSettings.OtlpTracesEndpoint instead of delegating to TracesTransportStrategy/AgentTransportStrategy, which selects transport based on the configuration.

Test coverage

Unit tests in ManagedApiOtlpTests verifying the factory type and endpoint correctness when APM UDS is present.

Other details

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@duncanhewett duncanhewett requested a review from a team as a code owner April 15, 2026 13:29
@duncanhewett duncanhewett added the AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos label Apr 15, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4c035d619e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

var otlpEndpoint = exporterSettings.OtlpTracesEndpoint;
var baseEndpoint = new Uri($"{otlpEndpoint.Scheme}://{otlpEndpoint.Authority}");
Log.Debug("Using " + nameof(HttpClientRequestFactory) + " for OTLP traces transport to {Endpoint}", baseEndpoint);
return new HttpClientRequestFactory(baseEndpoint, defaultHeaders: []);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve anti-instrumentation header for OTLP exporter requests

Constructing HttpClientRequestFactory with defaultHeaders: [] drops the x-datadog-tracing-enabled: false header that was previously applied through TracesTransportStrategy/AgentHttpHeaderNames.DefaultHeaders. In OTLP mode this means the tracer can instrument its own exporter HTTP calls (see HttpMessageHandlerCommon.IsTracingEnabled), creating self-generated spans and avoidable export traffic on every flush. This regression appears whenever OTLP traces are sent through HttpClient with HTTP client instrumentation enabled (default behavior).

Useful? React with 👍 / 👎.

@pr-commenter
Copy link
Copy Markdown

pr-commenter bot commented Apr 15, 2026

Benchmarks

Benchmark execution time: 2026-04-15 14:28:06

Comparing candidate commit 4c035d6 in PR branch duncan.hewett/fix-otlp-traces-uds-transport with baseline commit 6963bde in branch master.

Found 0 performance improvements and 1 performance regressions! Performance is the same for 26 metrics, 0 unstable metrics, 87 known flaky benchmarks.

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 [-5817.228op/s; -5505.067op/s] or [-6.641%; -6.284%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.005%]
  • ignore execution_time [-1336.618µs; -345.513µs] or [-0.664%; -0.172%]
  • ignore throughput [-827.030op/s; +168.022op/s] or [-0.981%; +0.199%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.007%]
  • ignore execution_time [-1315.560µs; +2185.321µs] or [-0.656%; +1.090%]
  • 🟩 throughput [+9661.145op/s; +11934.822op/s] or [+8.121%; +10.032%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.007%]
  • ignore execution_time [-611.308µs; +1738.789µs] or [-0.307%; +0.875%]
  • ignore throughput [-1130.134op/s; +19.409op/s] or [-1.149%; +0.020%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • ignore allocated_mem [-20 bytes; -19 bytes] or [-0.613%; -0.600%]
  • 🟥 execution_time [+313.882ms; +316.287ms] or [+155.759%; +156.953%]
  • ignore throughput [-0.316op/s; +3.798op/s] or [-0.057%; +0.683%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.009%; +0.002%]
  • 🟥 execution_time [+381.269ms; +384.171ms] or [+301.226%; +303.519%]
  • ignore throughput [+9.517op/s; +12.888op/s] or [+1.255%; +1.699%]

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

  • ignore allocated_mem [+1 bytes; +2 bytes] or [+0.065%; +0.075%]
  • 🟥 execution_time [+394.066ms; +396.696ms] or [+348.733%; +351.061%]
  • ignore throughput [-4.784op/s; -1.334op/s] or [-0.676%; -0.188%]

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

  • 🟥 allocated_mem [+1.308KB; +1.308KB] or [+27.529%; +27.541%]
  • ignore execution_time [-168.479µs; +464.763µs] or [-0.084%; +0.232%]
  • ignore throughput [-4001.861op/s; -3518.903op/s] or [-3.114%; -2.738%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+9.977%; +9.987%]
  • 🟩 execution_time [-15.384ms; -11.123ms] or [-7.185%; -5.195%]
  • ignore throughput [+4497.898op/s; +7320.323op/s] or [+3.283%; +5.343%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.502%; +27.510%]
  • ignore execution_time [-12.699ms; -8.565ms] or [-6.047%; -4.079%]
  • ignore throughput [-1178.667op/s; +1100.724op/s] or [-1.066%; +0.995%]

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.746%; +105.759%]
  • ignore execution_time [-452.717µs; +219.590µs] or [-0.225%; +0.109%]
  • 🟥 throughput [-256027.256op/s; -250563.342op/s] or [-26.142%; -25.584%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.558%; +38.566%]
  • 🟩 execution_time [-26.210ms; -21.345ms] or [-11.688%; -9.519%]
  • 🟥 throughput [-88662.593op/s; -64845.915op/s] or [-9.472%; -6.928%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.292%; +105.304%]
  • ignore execution_time [-2373.013µs; +2162.959µs] or [-1.185%; +1.080%]
  • 🟥 throughput [-139752.638op/s; -123590.531op/s] or [-20.080%; -17.758%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.003%]
  • ignore execution_time [-949.618µs; +102.053µs] or [-0.473%; +0.051%]
  • ignore throughput [-216.257op/s; +585.135op/s] or [-0.146%; +0.394%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.003%]
  • ignore execution_time [-1282.902µs; +2260.312µs] or [-0.647%; +1.140%]
  • 🟩 throughput [+11551.219op/s; +14489.619op/s] or [+7.350%; +9.220%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.003%]
  • ignore execution_time [+1.330ms; +5.308ms] or [+0.678%; +2.706%]
  • 🟩 throughput [+7581.113op/s; +10247.059op/s] or [+6.039%; +8.163%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.004%]
  • ignore execution_time [-277.111µs; -75.463µs] or [-0.138%; -0.038%]
  • ignore throughput [+108653.762op/s; +115170.672op/s] or [+3.305%; +3.504%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.008%]
  • ignore execution_time [-2.517ms; -1.457ms] or [-1.244%; -0.721%]
  • 🟩 throughput [+500741.630op/s; +517231.140op/s] or [+16.697%; +17.247%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.004%]
  • 🟩 execution_time [-19.130ms; -14.771ms] or [-8.818%; -6.809%]
  • 🟩 throughput [+201549.147op/s; +254978.447op/s] or [+8.000%; +10.121%]

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

  • ignore allocated_mem [+0 bytes; +2 bytes] or [-0.001%; +0.007%]
  • 🟥 execution_time [+299.154ms; +299.843ms] or [+149.477%; +149.821%]
  • ignore throughput [+195.613op/s; +212.610op/s] or [+2.161%; +2.348%]

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

  • ignore allocated_mem [-1 bytes; +2 bytes] or [-0.004%; +0.008%]
  • 🟥 execution_time [+300.780ms; +304.068ms] or [+151.684%; +153.342%]
  • ignore throughput [+247.611op/s; +463.482op/s] or [+1.894%; +3.545%]

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

  • ignore allocated_mem [-1 bytes; +2 bytes] or [-0.004%; +0.008%]
  • 🟥 execution_time [+299.963ms; +302.642ms] or [+151.098%; +152.448%]
  • ignore throughput [+119.489op/s; +247.999op/s] or [+1.154%; +2.394%]

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

  • ignore allocated_mem [+2 bytes; +3 bytes] or [+0.137%; +0.150%]
  • 🟥 execution_time [+298.238ms; +298.933ms] or [+146.483%; +146.824%]
  • ignore throughput [+16.139op/s; +22.547op/s] or [+0.428%; +0.598%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • 🟥 execution_time [+294.999ms; +296.756ms] or [+144.214%; +145.073%]
  • ignore throughput [+62.536op/s; +85.447op/s] or [+0.909%; +1.241%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • 🟥 execution_time [+301.877ms; +304.091ms] or [+150.878%; +151.984%]
  • ignore throughput [+29.683op/s; +53.882op/s] or [+0.589%; +1.070%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [+1.568µs; +5.340µs] or [+0.322%; +1.096%]
  • ignore throughput [-21.992op/s; -6.375op/s] or [-1.071%; -0.310%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.000%; +0.010%]
  • ignore execution_time [+19.013µs; +46.106µs] or [+4.361%; +10.575%]
  • ignore throughput [-225.044op/s; -103.432op/s] or [-9.784%; -4.497%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.003%]
  • ignore execution_time [+12.586µs; +34.632µs] or [+2.697%; +7.420%]
  • ignore throughput [-167.069op/s; -85.958op/s] or [-7.712%; -3.968%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-7.046µs; -3.256µs] or [-1.902%; -0.879%]
  • ignore throughput [+24.634op/s; +52.011op/s] or [+0.912%; +1.926%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.007%]
  • 🟥 execution_time [+21.825µs; +45.553µs] or [+6.968%; +14.543%]
  • 🟥 throughput [-423.701op/s; -224.152op/s] or [-13.208%; -6.987%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.003%]
  • ignore execution_time [-15.770µs; +6.592µs] or [-4.314%; +1.803%]
  • ignore throughput [-82.587op/s; +50.819op/s] or [-2.964%; +1.824%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+299.647ms; +300.349ms] or [+149.555%; +149.905%]
  • ignore throughput [+2908460.972op/s; +3479280.591op/s] or [+1.457%; +1.743%]

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

  • ignore allocated_mem [+73 bytes; +75 bytes] or [+0.411%; +0.422%]
  • 🟥 execution_time [+414.795ms; +419.532ms] or [+450.692%; +455.839%]
  • 🟩 throughput [+1099.295op/s; +1233.281op/s] or [+9.033%; +10.134%]

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

  • ignore allocated_mem [+48 bytes; +50 bytes] or [+0.232%; +0.243%]
  • unstable execution_time [+334.767ms; +362.380ms] or [+254.185%; +275.152%]
  • 🟩 throughput [+672.889op/s; +874.153op/s] or [+6.514%; +8.462%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • ignore allocated_mem [+2.751KB; +2.755KB] or [+4.887%; +4.895%]
  • unstable execution_time [+384.631ms; +453.022ms] or [+176.849%; +208.295%]
  • 🟥 throughput [-619.711op/s; -556.261op/s] or [-56.152%; -50.403%]

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

  • ignore allocated_mem [-1.268KB; -1.266KB] or [-2.991%; -2.985%]
  • unstable execution_time [+202.183ms; +335.394ms] or [+86.162%; +142.931%]
  • 🟥 throughput [-743.239op/s; -659.815op/s] or [-49.574%; -44.010%]

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

  • ignore allocated_mem [+583 bytes; +586 bytes] or [+1.378%; +1.385%]
  • 🟥 execution_time [+337.201ms; +344.860ms] or [+201.686%; +206.266%]
  • 🟥 throughput [-398.639op/s; -362.570op/s] or [-27.757%; -25.245%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-54.794µs; -39.765µs] or [-2.757%; -2.001%]
  • ignore throughput [+10.466op/s; +14.435op/s] or [+2.080%; +2.868%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-25.561µs; -13.865µs] or [-1.756%; -0.953%]
  • ignore throughput [+6.835op/s; +12.510op/s] or [+0.995%; +1.821%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-71.802µs; -58.604µs] or [-2.498%; -2.039%]
  • ignore throughput [+7.292op/s; +8.952op/s] or [+2.096%; +2.573%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-16.265µs; -7.446µs] or [-1.405%; -0.643%]
  • ignore throughput [+5.963op/s; +12.464op/s] or [+0.690%; +1.443%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-37.281µs; -22.710µs] or [-3.458%; -2.106%]
  • ignore throughput [+20.555op/s; +34.818op/s] or [+2.216%; +3.754%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [+1.696µs; +9.958µs] or [+0.091%; +0.533%]
  • ignore throughput [-2.839op/s; -0.468op/s] or [-0.530%; -0.087%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472

  • ignore allocated_mem [-43 bytes; +21 bytes] or [-0.007%; +0.003%]
  • ignore execution_time [+80.469µs; +96.808µs] or [+3.143%; +3.781%]
  • ignore throughput [-14.163op/s; -11.800op/s] or [-3.626%; -3.021%]

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

  • ignore allocated_mem [-38 bytes; +46 bytes] or [-0.006%; +0.007%]
  • 🟩 execution_time [-181.937µs; -142.174µs] or [-9.216%; -7.202%]
  • 🟩 throughput [+41.486op/s; +52.103op/s] or [+8.190%; +10.286%]

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

  • ignore allocated_mem [-42 bytes; +23 bytes] or [-0.007%; +0.004%]
  • ignore execution_time [-86.910µs; -26.496µs] or [-2.204%; -0.672%]
  • ignore throughput [+2.177op/s; +5.979op/s] or [+0.859%; +2.358%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.001%; +0.008%]
  • 🟥 execution_time [+303.846ms; +305.224ms] or [+153.011%; +153.705%]
  • ignore throughput [+2310.538op/s; +4863.114op/s] or [+0.743%; +1.565%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+301.955ms; +303.851ms] or [+151.310%; +152.260%]
  • 🟩 throughput [+42240.973op/s; +46077.845op/s] or [+6.660%; +7.265%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+301.082ms; +304.467ms] or [+151.251%; +152.951%]
  • ignore throughput [+15158.690op/s; +22823.235op/s] or [+3.193%; +4.808%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.004%]
  • 🟥 execution_time [+298.776ms; +300.291ms] or [+150.035%; +150.796%]
  • ignore throughput [-1260.596op/s; +1725.644op/s] or [-0.422%; +0.578%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.006%]
  • 🟥 execution_time [+297.560ms; +299.291ms] or [+147.130%; +147.986%]
  • 🟩 throughput [+36443.714op/s; +42169.469op/s] or [+5.872%; +6.794%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+301.428ms; +305.185ms] or [+152.777%; +154.681%]
  • ignore throughput [-7416.995op/s; +1218.231op/s] or [-1.602%; +0.263%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • ignore allocated_mem [+0 bytes; +1 bytes] or [+0.108%; +0.119%]
  • 🟥 execution_time [+301.544ms; +303.017ms] or [+151.348%; +152.087%]
  • ignore throughput [-6357.503op/s; -2979.331op/s] or [-1.649%; -0.773%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.006%]
  • 🟥 execution_time [+299.742ms; +301.739ms] or [+149.394%; +150.389%]
  • 🟩 throughput [+62738.946op/s; +67863.173op/s] or [+12.458%; +13.475%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.006%]
  • 🟥 execution_time [+299.641ms; +302.339ms] or [+149.069%; +150.411%]
  • ignore throughput [-9068.014op/s; -3306.571op/s] or [-2.146%; -0.783%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.006%]
  • ignore execution_time [-1098.012µs; -172.166µs] or [-0.546%; -0.086%]
  • ignore throughput [-6755.583op/s; -4684.723op/s] or [-2.717%; -1.884%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.003%]
  • 🟩 execution_time [-16.111ms; -12.463ms] or [-7.492%; -5.795%]
  • 🟩 throughput [+19042.984op/s; +25702.499op/s] or [+5.224%; +7.051%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.008%]
  • ignore execution_time [-0.869ms; +3.057ms] or [-0.436%; +1.534%]
  • ignore throughput [+7243.047op/s; +12959.173op/s] or [+2.644%; +4.730%]

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

  • ignore allocated_mem [-4.459KB; -4.431KB] or [-1.623%; -1.613%]
  • unstable execution_time [+8.433µs; +50.830µs] or [+2.083%; +12.555%]
  • ignore throughput [-256.209op/s; -47.783op/s] or [-10.310%; -1.923%]

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

  • 🟩 allocated_mem [-20.279KB; -20.258KB] or [-7.397%; -7.390%]
  • unstable execution_time [-41.390µs; +11.212µs] or [-8.180%; +2.216%]
  • ignore throughput [-32.747op/s; +150.489op/s] or [-1.634%; +7.509%]

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

  • ignore allocated_mem [+371 bytes; +388 bytes] or [+0.136%; +0.142%]
  • ignore execution_time [-70.516µs; -14.349µs] or [-12.220%; -2.487%]
  • ignore throughput [+62.108op/s; +215.908op/s] or [+3.548%; +12.335%]

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

  • ignore allocated_mem [-2 bytes; +2 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [-919.329ns; +483.996ns] or [-1.593%; +0.838%]
  • ignore throughput [-125.091op/s; +275.015op/s] or [-0.722%; +1.587%]

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

  • ignore allocated_mem [-4 bytes; +0 bytes] or [-0.010%; -0.001%]
  • 🟥 execution_time [+4.589µs; +8.534µs] or [+10.847%; +20.171%]
  • 🟥 throughput [-3995.594op/s; -2240.580op/s] or [-16.820%; -9.432%]

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

  • ignore allocated_mem [-1 bytes; +1 bytes] or [-0.002%; +0.002%]
  • unstable execution_time [-14.914µs; -7.946µs] or [-23.139%; -12.328%]
  • 🟩 throughput [+2056.572op/s; +3529.480op/s] or [+12.618%; +21.655%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • ignore allocated_mem [+1 bytes; +2 bytes] or [+0.039%; +0.050%]
  • 🟥 execution_time [+300.740ms; +302.237ms] or [+152.011%; +152.767%]
  • ignore throughput [-129.988op/s; -106.882op/s] or [-2.172%; -1.786%]

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

  • ignore allocated_mem [-1 bytes; +0 bytes] or [-0.027%; -0.017%]
  • 🟥 execution_time [+302.063ms; +304.404ms] or [+153.749%; +154.941%]
  • ignore throughput [-104.553op/s; -29.161op/s] or [-1.297%; -0.362%]

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

  • ignore allocated_mem [-1 bytes; +0 bytes] or [-0.027%; -0.017%]
  • 🟥 execution_time [+298.431ms; +302.468ms] or [+149.402%; +151.422%]
  • ignore throughput [-186.660op/s; -104.964op/s] or [-2.378%; -1.337%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.005%]
  • ignore execution_time [-691.379µs; -122.028µs] or [-0.345%; -0.061%]
  • 🟥 throughput [-23161.171op/s; -21089.271op/s] or [-6.412%; -5.838%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.007%]
  • ignore execution_time [-0.607ms; +2.922ms] or [-0.304%; +1.460%]
  • 🟩 throughput [+36186.798op/s; +44662.437op/s] or [+6.849%; +8.454%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.006%]
  • ignore execution_time [+1.765ms; +9.960ms] or [+0.895%; +5.049%]
  • ignore throughput [-8454.011op/s; +3399.368op/s] or [-2.001%; +0.805%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • 🟥 execution_time [+300.030ms; +301.934ms] or [+149.538%; +150.487%]
  • ignore throughput [-124.879op/s; +932.874op/s] or [-0.082%; +0.616%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+0.000%; +0.009%]
  • 🟥 execution_time [+302.213ms; +303.492ms] or [+151.757%; +152.399%]
  • ignore throughput [+5949.395op/s; +7542.101op/s] or [+2.587%; +3.280%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.003%]
  • 🟥 execution_time [+304.428ms; +306.906ms] or [+154.386%; +155.643%]
  • ignore throughput [+5113.341op/s; +7097.485op/s] or [+2.880%; +3.997%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+300.142ms; +300.756ms] or [+149.712%; +150.018%]
  • 🟩 throughput [+65243463.601op/s; +65490435.183op/s] or [+47.514%; +47.694%]

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

  • ignore allocated_mem [+59 bytes; +61 bytes] or [+0.349%; +0.359%]
  • unstable execution_time [+317.951ms; +369.441ms] or [+395.429%; +459.466%]
  • 🟩 throughput [+795.646op/s; +978.431op/s] or [+6.151%; +7.564%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+299.769ms; +300.719ms] or [+149.518%; +149.992%]
  • 🟩 throughput [+18174223.626op/s; +19121817.953op/s] or [+8.050%; +8.470%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [+65.198µs; +577.686µs] or [+0.033%; +0.289%]
  • ignore throughput [-31259.972op/s; -20598.682op/s] or [-3.489%; -2.299%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.007%]
  • ignore execution_time [-4.754ms; -3.581ms] or [-2.328%; -1.754%]
  • 🟩 throughput [+86141.223op/s; +95308.593op/s] or [+8.043%; +8.899%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.006%]
  • ignore execution_time [+1.726ms; +5.835ms] or [+0.873%; +2.953%]
  • 🟩 throughput [+46871.244op/s; +66222.201op/s] or [+5.425%; +7.665%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.000%; +0.009%]
  • ignore execution_time [+126.375µs; +547.282µs] or [+0.063%; +0.274%]
  • ignore throughput [-19375.279op/s; -16307.052op/s] or [-1.774%; -1.493%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.004%]
  • ignore execution_time [+5.914ms; +10.011ms] or [+3.081%; +5.216%]
  • 🟩 throughput [+88575.800op/s; +119347.527op/s] or [+6.856%; +9.238%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.001%; +0.008%]
  • ignore execution_time [-3.456ms; -2.009ms] or [-1.698%; -0.987%]
  • 🟩 throughput [+88744.004op/s; +95842.011op/s] or [+8.814%; +9.519%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.002%]
  • ignore execution_time [-738.440µs; +636.215µs] or [-0.368%; +0.317%]
  • ignore throughput [+1962.918op/s; +6141.489op/s] or [+0.437%; +1.368%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • ignore execution_time [-802.479µs; +741.241µs] or [-0.401%; +0.370%]
  • 🟩 throughput [+51716.064op/s; +57285.607op/s] or [+9.391%; +10.402%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • ignore execution_time [-0.472ms; +3.668ms] or [-0.237%; +1.843%]
  • ignore throughput [+19618.203op/s; +29347.143op/s] or [+4.391%; +6.569%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [-998.740µs; -56.631µs] or [-0.498%; -0.028%]
  • 🟥 throughput [-49123.291op/s; -41630.582op/s] or [-7.189%; -6.093%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.007%]
  • ignore execution_time [-1270.456µs; +2231.101µs] or [-0.635%; +1.116%]
  • 🟩 throughput [+51755.373op/s; +72240.236op/s] or [+5.782%; +8.071%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.005%]
  • ignore execution_time [+1.580ms; +5.489ms] or [+0.803%; +2.788%]
  • ignore throughput [+22571.202op/s; +37809.671op/s] or [+3.152%; +5.279%]

@dd-trace-dotnet-ci-bot
Copy link
Copy Markdown

dd-trace-dotnet-ci-bot bot commented Apr 15, 2026

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8460) 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.05 ± (72.02 - 72.35) ms73.88 ± (73.76 - 74.17) ms+2.5%✅⬆️
.NET Framework 4.8 - Bailout
duration76.10 ± (75.91 - 76.27) ms77.46 ± (77.38 - 77.79) ms+1.8%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1059.98 ± (1063.04 - 1069.60) ms1076.80 ± (1076.62 - 1083.06) ms+1.6%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.49 ± (22.45 - 22.53) ms22.58 ± (22.54 - 22.63) ms+0.4%✅⬆️
process.time_to_main_ms84.28 ± (84.11 - 84.45) ms84.01 ± (83.80 - 84.23) ms-0.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.92 ± (10.91 - 10.92) MB10.90 ± (10.90 - 10.91) MB-0.1%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.42 ± (22.39 - 22.45) ms22.45 ± (22.41 - 22.49) ms+0.1%✅⬆️
process.time_to_main_ms85.78 ± (85.61 - 85.95) ms84.71 ± (84.51 - 84.91) ms-1.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.95 ± (10.94 - 10.95) MB10.93 ± (10.93 - 10.94) MB-0.1%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms227.19 ± (225.82 - 228.57) ms231.48 ± (230.38 - 232.57) ms+1.9%✅⬆️
process.time_to_main_ms520.40 ± (519.29 - 521.51) ms529.26 ± (527.87 - 530.65) ms+1.7%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.45 ± (48.41 - 48.49) MB48.43 ± (48.40 - 48.46) MB-0.0%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%
.NET 6 - Baseline
process.internal_duration_ms21.09 ± (21.06 - 21.12) ms21.38 ± (21.33 - 21.43) ms+1.4%✅⬆️
process.time_to_main_ms72.45 ± (72.30 - 72.61) ms74.11 ± (73.88 - 74.34) ms+2.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.60 ± (10.60 - 10.60) MB10.61 ± (10.61 - 10.61) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.81 ± (20.78 - 20.85) ms21.30 ± (21.26 - 21.35) ms+2.3%✅⬆️
process.time_to_main_ms72.51 ± (72.36 - 72.66) ms75.23 ± (75.00 - 75.46) ms+3.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.71 ± (10.71 - 10.72) MB10.73 ± (10.73 - 10.74) MB+0.2%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms384.37 ± (382.61 - 386.12) ms386.20 ± (384.24 - 388.16) ms+0.5%✅⬆️
process.time_to_main_ms518.40 ± (517.57 - 519.22) ms525.72 ± (524.48 - 526.96) ms+1.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.08 ± (50.05 - 50.10) MB50.03 ± (50.00 - 50.05) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.4%
.NET 8 - Baseline
process.internal_duration_ms19.30 ± (19.27 - 19.33) ms19.33 ± (19.31 - 19.36) ms+0.2%✅⬆️
process.time_to_main_ms71.82 ± (71.66 - 71.97) ms71.78 ± (71.65 - 71.91) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.68 ± (7.67 - 7.68) MB7.65 ± (7.64 - 7.65) MB-0.4%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.31 ± (19.28 - 19.34) ms19.42 ± (19.37 - 19.46) ms+0.5%✅⬆️
process.time_to_main_ms72.56 ± (72.42 - 72.71) ms73.26 ± (73.08 - 73.44) ms+1.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.70 ± (7.69 - 7.71) MB7.71 ± (7.70 - 7.72) MB+0.2%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms304.90 ± (302.54 - 307.26) ms303.67 ± (301.28 - 306.07) ms-0.4%
process.time_to_main_ms479.47 ± (478.70 - 480.24) ms488.25 ± (487.22 - 489.28) ms+1.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.07 ± (37.04 - 37.09) MB37.04 ± (37.02 - 37.07) MB-0.1%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.1%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration211.87 ± (211.61 - 212.55) ms207.86 ± (207.48 - 208.38) ms-1.9%
.NET Framework 4.8 - Bailout
duration215.11 ± (214.99 - 215.82) ms210.01 ± (209.91 - 210.65) ms-2.4%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1227.96 ± (1227.14 - 1234.21) ms1206.94 ± (1206.85 - 1213.50) ms-1.7%
.NET Core 3.1 - Baseline
process.internal_duration_ms205.90 ± (205.44 - 206.36) ms200.56 ± (200.09 - 201.02) ms-2.6%
process.time_to_main_ms90.96 ± (90.68 - 91.23) ms87.36 ± (87.13 - 87.59) ms-4.0%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed15.90 ± (15.88 - 15.93) MB15.91 ± (15.89 - 15.93) MB+0.0%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (19 - 20)-1.4%
.NET Core 3.1 - Bailout
process.internal_duration_ms204.66 ± (204.22 - 205.10) ms200.95 ± (200.55 - 201.35) ms-1.8%
process.time_to_main_ms91.62 ± (91.32 - 91.91) ms88.89 ± (88.62 - 89.16) ms-3.0%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.04 ± (16.02 - 16.06) MB16.04 ± (16.01 - 16.06) MB-0.0%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)-0.8%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms422.44 ± (421.24 - 423.63) ms412.53 ± (411.26 - 413.80) ms-2.3%
process.time_to_main_ms554.71 ± (553.46 - 555.96) ms539.60 ± (538.23 - 540.98) ms-2.7%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed59.43 ± (59.39 - 59.46) MB59.19 ± (59.14 - 59.24) MB-0.4%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.4%
.NET 6 - Baseline
process.internal_duration_ms210.82 ± (210.36 - 211.28) ms205.77 ± (205.36 - 206.18) ms-2.4%
process.time_to_main_ms78.69 ± (78.44 - 78.93) ms76.23 ± (75.95 - 76.51) ms-3.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.18 ± (16.15 - 16.20) MB16.26 ± (16.23 - 16.28) MB+0.5%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)19 ± (19 - 19)-1.5%
.NET 6 - Bailout
process.internal_duration_ms210.46 ± (210.05 - 210.87) ms205.65 ± (205.26 - 206.04) ms-2.3%
process.time_to_main_ms79.62 ± (79.39 - 79.84) ms77.31 ± (77.10 - 77.52) ms-2.9%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.26 ± (16.24 - 16.28) MB16.25 ± (16.23 - 16.28) MB-0.0%
runtime.dotnet.threads.count20 ± (20 - 21)20 ± (20 - 20)-0.7%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms600.31 ± (597.74 - 602.88) ms602.41 ± (599.26 - 605.56) ms+0.3%✅⬆️
process.time_to_main_ms550.08 ± (548.78 - 551.37) ms538.46 ± (537.38 - 539.53) ms-2.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.75 ± (61.64 - 61.87) MB61.72 ± (61.63 - 61.82) MB-0.0%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-1.0%
.NET 8 - Baseline
process.internal_duration_ms209.09 ± (208.68 - 209.50) ms202.82 ± (202.40 - 203.24) ms-3.0%
process.time_to_main_ms77.78 ± (77.55 - 78.01) ms74.72 ± (74.51 - 74.93) ms-3.9%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.55 ± (11.53 - 11.57) MB11.60 ± (11.58 - 11.62) MB+0.5%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-1.0%
.NET 8 - Bailout
process.internal_duration_ms208.27 ± (207.82 - 208.72) ms202.69 ± (202.32 - 203.07) ms-2.7%
process.time_to_main_ms78.71 ± (78.52 - 78.91) ms76.23 ± (76.03 - 76.44) ms-3.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.61 ± (11.59 - 11.63) MB11.67 ± (11.65 - 11.69) MB+0.5%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.5%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms529.77 ± (523.86 - 535.68) ms527.43 ± (523.11 - 531.75) ms-0.4%
process.time_to_main_ms512.83 ± (511.95 - 513.72) ms498.10 ± (497.22 - 498.99) ms-2.9%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.72 ± (50.65 - 50.80) MB50.68 ± (50.63 - 50.73) MB-0.1%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.0%✅⬆️
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 (8460) - mean (74ms)  : 71, 77
    master - mean (72ms)  : 70, 75

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

    section CallTarget+Inlining+NGEN
    This PR (8460) - mean (1,080ms)  : 1033, 1126
    master - mean (1,066ms)  : 1018, 1115

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 (8460) - mean (113ms)  : 109, 118
    master - mean (114ms)  : 110, 117

    section Bailout
    This PR (8460) - mean (114ms)  : 111, 116
    master - mean (115ms)  : 112, 118

    section CallTarget+Inlining+NGEN
    This PR (8460) - mean (797ms)  : 773, 820
    master - mean (786ms)  : 767, 806

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

    section Bailout
    This PR (8460) - mean (103ms)  : 99, 107
    master - mean (99ms)  : 97, 101

    section CallTarget+Inlining+NGEN
    This PR (8460) - mean (939ms)  : 907, 972
    master - mean (931ms)  : 901, 962

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

    section Bailout
    This PR (8460) - mean (100ms)  : 98, 102
    master - mean (99ms)  : 97, 102

    section CallTarget+Inlining+NGEN
    This PR (8460) - mean (822ms)  : 780, 863
    master - mean (815ms)  : 780, 849

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 (8460) - mean (208ms)  : 203, 213
    master - mean (212ms)  : 206, 218

    section Bailout
    This PR (8460) - mean (210ms)  : 207, 214
    master - mean (215ms)  : 211, 219

    section CallTarget+Inlining+NGEN
    This PR (8460) - mean (1,210ms)  : 1162, 1259
    master - mean (1,231ms)  : 1180, 1281

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 (8460) - mean (297ms)  : 291, 303
    master - mean (306ms)  : 299, 314

    section Bailout
    This PR (8460) - mean (299ms)  : 293, 305
    master - mean (305ms)  : 297, 313

    section CallTarget+Inlining+NGEN
    This PR (8460) - mean (992ms)  : 961, 1023
    master - mean (1,018ms)  : 990, 1047

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8460) - mean (291ms)  : 283, 299
    master - mean (299ms)  : 292, 306

    section Bailout
    This PR (8460) - mean (291ms)  : 287, 296
    master - mean (299ms)  : 293, 304

    section CallTarget+Inlining+NGEN
    This PR (8460) - mean (1,171ms)  : 1129, 1212
    master - mean (1,182ms)  : 1152, 1213

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8460) - mean (288ms)  : 282, 294
    master - mean (297ms)  : 292, 303

    section Bailout
    This PR (8460) - mean (290ms)  : 285, 295
    master - mean (298ms)  : 292, 303

    section CallTarget+Inlining+NGEN
    This PR (8460) - mean (1,058ms)  : 998, 1117
    master - mean (1,080ms)  : 983, 1177

Loading

Copy link
Copy Markdown
Member

@andrewlock andrewlock left a comment

Choose a reason for hiding this comment

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

Presumably this failed if the app was set to UDS or named pipes, so we should probably update the Otlp export integration tests to run a test using each of those transports too

Comment on lines +63 to +64
var otlpEndpoint = exporterSettings.OtlpTracesEndpoint;
var baseEndpoint = new Uri($"{otlpEndpoint.Scheme}://{otlpEndpoint.Authority}");
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.

Can OTLP not be sent over UDS then? 🤔

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants