Skip to content

[Dynamic Instrumentation] Improve line probe source path resolution#8422

Merged
dudikeleti merged 3 commits intomasterfrom
fix/line-probe-path-fallback
Apr 15, 2026
Merged

[Dynamic Instrumentation] Improve line probe source path resolution#8422
dudikeleti merged 3 commits intomasterfrom
fix/line-probe-path-fallback

Conversation

@dudikeleti
Copy link
Copy Markdown
Contributor

Summary of changes

  • Improve line probe source path resolution when probe paths and PDB document paths differ only by source root.
  • Split the previous unbound reason into clearer cases for loaded-assembly source-path mismatches vs. assembly-not-loaded-or-symbols-unavailable.
  • Add a conservative trailing-segment fallback that binds probes only when the file match is unique.
  • Preserve exact PDB paths across Windows, Linux, and UNC-style paths while tolerating trailing separators in probe queries.
  • Expand debug logging with path match diagnostics, including fallback failure reasons and matching segment counts.
  • Reduce resolver overhead by avoiding duplicate assembly scans, caching exact-match query data, and returning minimal diagnostics outside debug logging.
  • Extend test coverage for fallback matching, ambiguity, case sensitivity, UNC paths, trailing separators, and minimal-diagnostics behavior.

Reason for change

  • Recent customer investigation showed that some unbound probes were caused by source-path mismatches, while the existing diagnostics could look like an assembly load issue.
  • Different build/source roots can leave otherwise valid probes unbound even when the assembly and symbols are present.
  • The resolver runs on a sensitive path, so the improved diagnostics should not add unnecessary allocation cost when debug logging is disabled.

Implementation details

  • Keep exact suffix matching as the first resolution strategy, then apply fallback only when at least four trailing path segments match and the best match is unique.
  • Reject case-only differences, file-name-only matches, and ambiguous fallback candidates to avoid binding probes to the wrong file.
  • Add explicit diagnostic fields for path match type, trailing-segment counts, and fallback failure reasons in full diagnostic mode.
  • Let DynamicInstrumentation request only minimal diagnostics when debug logging is off, while preserving full diagnostics for debug and direct resolver callers.
  • Use span-based path handling and cached exact-match query data to reduce repeated string allocations.

Test coverage

  • dotnet test "tracer/test/Datadog.Trace.Debugger.IntegrationTests/Datadog.Trace.Debugger.IntegrationTests.csproj" --filter "FullyQualifiedName~LineProbeResolverTest"
  • dotnet test "tracer/test/Datadog.Trace.Tests/Datadog.Trace.Tests.csproj" --filter "FullyQualifiedName~DynamicInstrumentationTests"

Other details

  • The fallback behavior is intentionally conservative: if multiple files match equally well, the probe remains unbound.
  • The updated debug diagnostics should make future customer investigations much less misleading.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR significantly improves line probe source path resolution by implementing a conservative fallback matching strategy, splitting ambiguous diagnostics reasons into clearer cases, and introducing diagnostic level controls to reduce allocation overhead. The changes allow probes to be resolved even when source paths differ by leading path segments, while maintaining correctness through strict matching criteria and comprehensive diagnostics.

Changes:

  • Split AssemblyNotLoadedOrSourceFileMismatch reason into LoadedAssemblySourceFileMismatch and AssemblyNotLoadedOrSymbolsUnavailable for clearer diagnostics
  • Added conservative trailing-segment fallback matching that binds probes only when the file match is unique and meets minimum segment threshold (4 segments)
  • Introduced LineProbeDiagnosticLevel enum to control diagnostic detail (Minimal vs Full), reducing allocation when debug logging is disabled
  • Enhanced diagnostics with PathMatchType, MatchingTrailingSegments, FallbackFailureReason, and QualifiedFallbackMatchCount fields
  • Implemented span-based path handling and caching of reversed paths in ProbePathQuery struct for performance
  • Added comprehensive test coverage for fallback matching scenarios, ambiguity handling, case sensitivity, UNC paths, and trailing separator handling

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tracer/src/Datadog.Trace/Debugger/Models/LiveProbeResolveStatus.cs Added new enums for reasons, path match types, fallback failure reasons, and diagnostic levels
tracer/src/Datadog.Trace/Debugger/Models/LineProbeResolutionDiagnostics.cs Added new diagnostic fields for path matching details and updated summary formatting
tracer/src/Datadog.Trace/Debugger/ILineProbeResolver.cs Updated interface to include diagnostic level parameter with full default
tracer/src/Datadog.Trace/Debugger/LineProbeResolver.cs Major refactor implementing fallback matching, span-based path handling, and diagnostic level support
tracer/src/Datadog.Trace/Debugger/DynamicInstrumentation.cs Updated to determine diagnostic level from log level and pass to resolver; enhanced logging with new diagnostic fields
tracer/test/Datadog.Trace.Tests/Debugger/DynamicInstrumentationTests.cs Updated mock interface implementation to match new signature with diagnostic level parameter
tracer/test/Datadog.Trace.Debugger.IntegrationTests/LineProbeResolverTest.cs Added comprehensive tests for fallback matching, trailing separators, case sensitivity, ambiguity, and diagnostic levels

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pr-commenter
Copy link
Copy Markdown

pr-commenter bot commented Apr 7, 2026

Benchmarks

Benchmark execution time: 2026-04-15 15:55:15

Comparing candidate commit 57d42a6 in PR branch fix/line-probe-path-fallback with baseline commit 55ada2a 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 [-5833.026op/s; -5542.590op/s] or [-6.659%; -6.327%]

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 [-1.631ms; -0.721ms] or [-0.810%; -0.358%]
  • ignore throughput [+1158.604op/s; +1608.535op/s] or [+1.374%; +1.907%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.007%]
  • ignore execution_time [-2176.694µs; +1340.723µs] or [-1.086%; +0.669%]
  • 🟩 throughput [+8275.139op/s; +10588.751op/s] or [+6.956%; +8.900%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.007%]
  • ignore execution_time [+0.702ms; +2.840ms] or [+0.353%; +1.428%]
  • ignore throughput [-512.197op/s; +600.333op/s] or [-0.521%; +0.610%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • ignore allocated_mem [-20 bytes; -19 bytes] or [-0.613%; -0.600%]
  • 🟥 execution_time [+314.166ms; +316.103ms] or [+155.900%; +156.862%]
  • ignore throughput [-0.252op/s; +3.572op/s] or [-0.045%; +0.643%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.009%; +0.002%]
  • 🟥 execution_time [+380.426ms; +383.173ms] or [+300.560%; +302.730%]
  • ignore throughput [+13.993op/s; +17.497op/s] or [+1.845%; +2.307%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.009%; +0.002%]
  • 🟥 execution_time [+395.254ms; +397.468ms] or [+349.785%; +351.744%]
  • ignore throughput [-0.346op/s; +4.118op/s] or [-0.049%; +0.582%]

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

  • 🟥 allocated_mem [+1.308KB; +1.308KB] or [+27.529%; +27.541%]
  • ignore execution_time [-454.528µs; +261.718µs] or [-0.227%; +0.131%]
  • 🟥 throughput [-12160.072op/s; -11720.393op/s] or [-9.461%; -9.119%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+9.977%; +9.987%]
  • 🟩 execution_time [-16.042ms; -11.852ms] or [-7.492%; -5.535%]
  • ignore throughput [+4922.074op/s; +7715.774op/s] or [+3.593%; +5.632%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.502%; +27.510%]
  • ignore execution_time [-10.626ms; -6.492ms] or [-5.060%; -3.091%]
  • ignore throughput [-2411.658op/s; -117.097op/s] or [-2.180%; -0.106%]

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.746%; +105.759%]
  • ignore execution_time [-1.713ms; -1.029ms] or [-0.853%; -0.512%]
  • 🟥 throughput [-305247.838op/s; -302612.659op/s] or [-31.167%; -30.898%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.558%; +38.566%]
  • 🟩 execution_time [-25.826ms; -20.977ms] or [-11.517%; -9.355%]
  • 🟥 throughput [-87300.136op/s; -63901.483op/s] or [-9.326%; -6.827%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.292%; +105.304%]
  • ignore execution_time [+1.869ms; +6.482ms] or [+0.933%; +3.235%]
  • 🟥 throughput [-142128.577op/s; -124964.176op/s] or [-20.421%; -17.955%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.003%]
  • ignore execution_time [-1069.581µs; -24.680µs] or [-0.533%; -0.012%]
  • 🟥 throughput [-9716.890op/s; -8941.240op/s] or [-6.539%; -6.017%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.003%]
  • ignore execution_time [-0.191ms; +3.303ms] or [-0.097%; +1.667%]
  • 🟩 throughput [+11190.067op/s; +14124.597op/s] or [+7.120%; +8.987%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.003%]
  • ignore execution_time [+1.869ms; +5.884ms] or [+0.953%; +3.000%]
  • 🟩 throughput [+8698.309op/s; +11345.577op/s] or [+6.929%; +9.038%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.004%]
  • ignore execution_time [-618.743µs; -358.026µs] or [-0.309%; -0.179%]
  • ignore throughput [-15853.503op/s; -7295.453op/s] or [-0.482%; -0.222%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.008%]
  • ignore execution_time [-3.123ms; -2.349ms] or [-1.544%; -1.161%]
  • 🟩 throughput [+464519.835op/s; +483280.209op/s] or [+15.489%; +16.115%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.004%]
  • 🟩 execution_time [-19.028ms; -14.637ms] or [-8.771%; -6.747%]
  • 🟩 throughput [+191413.637op/s; +245286.621op/s] or [+7.598%; +9.736%]

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

  • ignore allocated_mem [+0 bytes; +2 bytes] or [-0.001%; +0.007%]
  • 🟥 execution_time [+299.439ms; +300.034ms] or [+149.619%; +149.917%]
  • ignore throughput [+73.153op/s; +114.965op/s] or [+0.808%; +1.270%]

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

  • ignore allocated_mem [-1 bytes; +2 bytes] or [-0.004%; +0.008%]
  • 🟥 execution_time [+299.976ms; +303.133ms] or [+151.278%; +152.871%]
  • ignore throughput [+192.603op/s; +424.369op/s] or [+1.473%; +3.246%]

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

  • ignore allocated_mem [-1 bytes; +2 bytes] or [-0.004%; +0.008%]
  • 🟥 execution_time [+300.259ms; +303.098ms] or [+151.247%; +152.677%]
  • ignore throughput [-24.191op/s; +127.184op/s] or [-0.234%; +1.228%]

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

  • ignore allocated_mem [+2 bytes; +3 bytes] or [+0.137%; +0.150%]
  • 🟥 execution_time [+296.931ms; +297.750ms] or [+145.841%; +146.243%]
  • ignore throughput [-5.438op/s; +5.500op/s] or [-0.144%; +0.146%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • 🟥 execution_time [+297.289ms; +299.972ms] or [+145.334%; +146.645%]
  • ignore throughput [-49.896op/s; +47.795op/s] or [-0.725%; +0.694%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • 🟥 execution_time [+299.960ms; +301.592ms] or [+149.920%; +150.735%]
  • ignore throughput [+52.332op/s; +75.597op/s] or [+1.039%; +1.501%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [+1.619µs; +5.645µs] or [+0.332%; +1.159%]
  • ignore throughput [-23.131op/s; -6.505op/s] or [-1.127%; -0.317%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.000%; +0.010%]
  • ignore execution_time [+15.496µs; +42.193µs] or [+3.554%; +9.677%]
  • ignore throughput [-208.444op/s; -88.309op/s] or [-9.062%; -3.839%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.003%]
  • ignore execution_time [+5.380µs; +27.352µs] or [+1.153%; +5.860%]
  • ignore throughput [-136.505op/s; -55.697op/s] or [-6.301%; -2.571%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-7.562µs; -3.350µs] or [-2.042%; -0.905%]
  • ignore throughput [+25.804op/s; +56.288op/s] or [+0.956%; +2.085%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.007%]
  • 🟥 execution_time [+21.865µs; +45.457µs] or [+6.980%; +14.512%]
  • 🟥 throughput [-423.907op/s; -225.370op/s] or [-13.214%; -7.025%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.003%]
  • ignore execution_time [-17.315µs; +5.033µs] or [-4.737%; +1.377%]
  • ignore throughput [-70.640op/s; +62.656op/s] or [-2.535%; +2.248%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+299.619ms; +300.257ms] or [+149.541%; +149.859%]
  • ignore throughput [-1193976.548op/s; -630068.496op/s] or [-0.598%; -0.316%]

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

  • ignore allocated_mem [+107 bytes; +109 bytes] or [+0.597%; +0.608%]
  • unstable execution_time [+367.199ms; +405.643ms] or [+398.976%; +440.748%]
  • 🟩 throughput [+983.711op/s; +1134.457op/s] or [+8.083%; +9.322%]

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

  • ignore allocated_mem [+20 bytes; +22 bytes] or [+0.099%; +0.110%]
  • unstable execution_time [+334.349ms; +361.992ms] or [+253.868%; +274.857%]
  • 🟩 throughput [+596.810op/s; +797.357op/s] or [+5.778%; +7.719%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • ignore allocated_mem [+2.775KB; +2.779KB] or [+4.930%; +4.938%]
  • unstable execution_time [+260.941ms; +310.058ms] or [+119.978%; +142.562%]
  • 🟥 throughput [-543.742op/s; -482.820op/s] or [-49.268%; -43.748%]

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

  • ignore allocated_mem [-1.279KB; -1.276KB] or [-3.016%; -3.010%]
  • unstable execution_time [+201.282ms; +334.490ms] or [+85.778%; +142.546%]
  • 🟥 throughput [-748.172op/s; -664.670op/s] or [-49.903%; -44.334%]

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

  • ignore allocated_mem [+1.863KB; +1.866KB] or [+4.400%; +4.407%]
  • 🟥 execution_time [+345.882ms; +359.193ms] or [+206.878%; +214.839%]
  • 🟥 throughput [-439.794op/s; -402.503op/s] or [-30.622%; -28.026%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-47.592µs; -29.771µs] or [-2.395%; -1.498%]
  • ignore throughput [+7.939op/s; +12.561op/s] or [+1.578%; +2.496%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-19.693µs; -2.466µs] or [-1.353%; -0.169%]
  • ignore throughput [+1.753op/s; +9.928op/s] or [+0.255%; +1.445%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-216.316µs; -67.082µs] or [-7.525%; -2.334%]
  • ignore throughput [+13.717op/s; +42.564op/s] or [+3.943%; +12.235%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-6.507µs; +0.471µs] or [-0.562%; +0.041%]
  • ignore throughput [-0.169op/s; +4.996op/s] or [-0.020%; +0.578%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-47.782µs; -36.145µs] or [-4.431%; -3.352%]
  • ignore throughput [+32.935op/s; +43.454op/s] or [+3.551%; +4.685%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-99.526µs; -2.213µs] or [-5.332%; -0.119%]
  • unstable throughput [+5.539op/s; +65.857op/s] or [+1.034%; +12.293%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472

  • ignore allocated_mem [-43 bytes; +21 bytes] or [-0.007%; +0.003%]
  • ignore execution_time [+45.958µs; +65.560µs] or [+1.795%; +2.561%]
  • ignore throughput [-9.613op/s; -6.773op/s] or [-2.461%; -1.734%]

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

  • ignore allocated_mem [-38 bytes; +46 bytes] or [-0.006%; +0.007%]
  • 🟩 execution_time [-159.317µs; -125.308µs] or [-8.070%; -6.348%]
  • 🟩 throughput [+35.959op/s; +44.866op/s] or [+7.099%; +8.857%]

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

  • ignore allocated_mem [-42 bytes; +23 bytes] or [-0.007%; +0.004%]
  • ignore execution_time [-154.382µs; -117.088µs] or [-3.915%; -2.969%]
  • ignore throughput [+7.984op/s; +10.397op/s] or [+3.148%; +4.100%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.001%; +0.008%]
  • 🟥 execution_time [+304.772ms; +306.796ms] or [+153.477%; +154.497%]
  • ignore throughput [-5558.774op/s; -3817.386op/s] or [-1.789%; -1.228%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+298.483ms; +304.579ms] or [+149.570%; +152.625%]
  • 🟩 throughput [+37567.774op/s; +46321.833op/s] or [+5.923%; +7.303%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+300.636ms; +303.803ms] or [+151.027%; +152.618%]
  • ignore throughput [+15775.509op/s; +23367.042op/s] or [+3.323%; +4.922%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.004%]
  • 🟥 execution_time [+301.048ms; +303.523ms] or [+151.176%; +152.419%]
  • ignore throughput [-13779.966op/s; -11166.919op/s] or [-4.617%; -3.741%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.006%]
  • 🟥 execution_time [+297.009ms; +298.663ms] or [+146.857%; +147.675%]
  • 🟩 throughput [+35118.711op/s; +41487.683op/s] or [+5.658%; +6.684%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+302.321ms; +305.780ms] or [+153.229%; +154.982%]
  • ignore throughput [-9997.777op/s; -1132.805op/s] or [-2.159%; -0.245%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • ignore allocated_mem [+0 bytes; +1 bytes] or [+0.108%; +0.119%]
  • 🟥 execution_time [+302.178ms; +303.635ms] or [+151.666%; +152.397%]
  • ignore throughput [-5780.574op/s; -4078.930op/s] or [-1.500%; -1.058%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.006%]
  • 🟥 execution_time [+299.952ms; +302.300ms] or [+149.498%; +150.669%]
  • 🟩 throughput [+55329.994op/s; +62633.229op/s] or [+10.987%; +12.437%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.006%]
  • 🟥 execution_time [+302.582ms; +305.262ms] or [+150.532%; +151.865%]
  • ignore throughput [-9853.511op/s; -5140.733op/s] or [-2.332%; -1.217%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.006%]
  • ignore execution_time [-968.563µs; -19.813µs] or [-0.482%; -0.010%]
  • ignore throughput [-2096.706op/s; -550.979op/s] or [-0.843%; -0.222%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.003%]
  • 🟩 execution_time [-16.063ms; -12.415ms] or [-7.469%; -5.773%]
  • 🟩 throughput [+22175.593op/s; +29449.707op/s] or [+6.083%; +8.079%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.008%]
  • ignore execution_time [-0.296ms; +3.662ms] or [-0.148%; +1.837%]
  • ignore throughput [+6084.422op/s; +11728.133op/s] or [+2.221%; +4.281%]

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

  • ignore allocated_mem [-4.459KB; -4.431KB] or [-1.623%; -1.613%]
  • ignore execution_time [+10.888µs; +50.838µs] or [+2.690%; +12.557%]
  • ignore throughput [-270.260op/s; -68.118op/s] or [-10.876%; -2.741%]

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

  • 🟩 allocated_mem [-19.835KB; -19.815KB] or [-7.236%; -7.228%]
  • unstable execution_time [-19.281µs; +50.704µs] or [-3.811%; +10.021%]
  • unstable throughput [-109.769op/s; +99.689op/s] or [-5.478%; +4.975%]

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

  • 🟩 allocated_mem [-16.204KB; -16.188KB] or [-5.907%; -5.901%]
  • ignore execution_time [-36.461µs; +21.112µs] or [-6.318%; +3.659%]
  • ignore throughput [-50.389op/s; +104.781op/s] or [-2.879%; +5.986%]

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

  • ignore allocated_mem [-2 bytes; +2 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [-469.017ns; +1079.683ns] or [-0.812%; +1.870%]
  • ignore throughput [-287.545op/s; +149.231op/s] or [-1.659%; +0.861%]

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

  • ignore allocated_mem [-4 bytes; +0 bytes] or [-0.010%; -0.001%]
  • unstable execution_time [+6.261µs; +10.646µs] or [+14.799%; +25.163%]
  • 🟥 throughput [-4678.812op/s; -2848.613op/s] or [-19.696%; -11.992%]

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

  • ignore allocated_mem [-1 bytes; +1 bytes] or [-0.002%; +0.002%]
  • unstable execution_time [-13.908µs; -6.572µs] or [-21.578%; -10.196%]
  • 🟩 throughput [+1735.264op/s; +3301.130op/s] or [+10.646%; +20.254%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • ignore allocated_mem [+3 bytes; +4 bytes] or [+0.084%; +0.094%]
  • 🟥 execution_time [+302.061ms; +303.392ms] or [+152.678%; +153.351%]
  • ignore throughput [-94.048op/s; -66.970op/s] or [-1.571%; -1.119%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.005%]
  • 🟥 execution_time [+302.731ms; +304.854ms] or [+154.089%; +155.170%]
  • ignore throughput [+3.746op/s; +77.869op/s] or [+0.046%; +0.966%]

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

  • ignore allocated_mem [-1 bytes; +0 bytes] or [-0.027%; -0.017%]
  • 🟥 execution_time [+300.117ms; +302.182ms] or [+150.246%; +151.279%]
  • ignore throughput [-108.815op/s; -40.883op/s] or [-1.386%; -0.521%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.005%]
  • ignore execution_time [-1291.969µs; -623.844µs] or [-0.644%; -0.311%]
  • ignore throughput [-11658.755op/s; -10313.416op/s] or [-3.227%; -2.855%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.007%]
  • ignore execution_time [-421.972µs; +242.406µs] or [-0.211%; +0.121%]
  • 🟩 throughput [+50546.005op/s; +53690.369op/s] or [+9.567%; +10.162%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.006%]
  • ignore execution_time [+1.631ms; +5.286ms] or [+0.827%; +2.680%]
  • ignore throughput [-3084.553op/s; +5357.153op/s] or [-0.730%; +1.268%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • 🟥 execution_time [+299.971ms; +301.599ms] or [+149.509%; +150.320%]
  • ignore throughput [-108.498op/s; +941.871op/s] or [-0.072%; +0.622%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+0.000%; +0.009%]
  • 🟥 execution_time [+300.572ms; +311.040ms] or [+150.933%; +156.189%]
  • ignore throughput [+1017.923op/s; +4839.522op/s] or [+0.443%; +2.105%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.003%]
  • 🟥 execution_time [+302.962ms; +305.202ms] or [+153.643%; +154.779%]
  • ignore throughput [+1577.149op/s; +3496.138op/s] or [+0.888%; +1.969%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+300.428ms; +301.118ms] or [+149.855%; +150.199%]
  • 🟩 throughput [+61299276.867op/s; +61543461.327op/s] or [+44.642%; +44.820%]

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

  • ignore allocated_mem [+87 bytes; +89 bytes] or [+0.510%; +0.520%]
  • unstable execution_time [+378.095ms; +411.871ms] or [+470.228%; +512.235%]
  • 🟩 throughput [+1053.512op/s; +1227.331op/s] or [+8.144%; +9.488%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+299.474ms; +300.392ms] or [+149.371%; +149.829%]
  • ignore throughput [+1803527.784op/s; +2743889.960op/s] or [+0.799%; +1.215%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [-567.506µs; +387.114µs] or [-0.284%; +0.194%]
  • ignore throughput [-16201.961op/s; -10559.411op/s] or [-1.808%; -1.178%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.007%]
  • ignore execution_time [-4.743ms; -3.642ms] or [-2.323%; -1.784%]
  • 🟩 throughput [+108609.203op/s; +117921.774op/s] or [+10.140%; +11.010%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.006%]
  • ignore execution_time [+0.369ms; +4.568ms] or [+0.186%; +2.311%]
  • ignore throughput [+32662.298op/s; +52423.747op/s] or [+3.781%; +6.068%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.000%; +0.009%]
  • ignore execution_time [-324.735µs; +29.134µs] or [-0.162%; +0.015%]
  • ignore throughput [-12812.013op/s; -10601.642op/s] or [-1.173%; -0.970%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.004%]
  • ignore execution_time [+5.542ms; +9.644ms] or [+2.888%; +5.024%]
  • 🟩 throughput [+101410.367op/s; +131394.150op/s] or [+7.849%; +10.170%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.001%; +0.008%]
  • ignore execution_time [-4.083ms; -2.618ms] or [-2.006%; -1.286%]
  • 🟩 throughput [+76794.175op/s; +84787.500op/s] or [+7.627%; +8.421%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.002%]
  • ignore execution_time [-1238.405µs; -51.204µs] or [-0.616%; -0.025%]
  • ignore throughput [+8976.364op/s; +12201.493op/s] or [+2.000%; +2.719%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • ignore execution_time [-878.854µs; +513.965µs] or [-0.439%; +0.257%]
  • 🟩 throughput [+51943.316op/s; +58096.201op/s] or [+9.432%; +10.549%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • ignore execution_time [-2075.372µs; +2047.508µs] or [-1.043%; +1.029%]
  • ignore throughput [+18399.745op/s; +28261.351op/s] or [+4.118%; +6.326%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [-1381.710µs; -405.114µs] or [-0.689%; -0.202%]
  • 🟥 throughput [-40610.023op/s; -37106.577op/s] or [-5.944%; -5.431%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.007%]
  • ignore execution_time [-1286.131µs; +2206.597µs] or [-0.643%; +1.104%]
  • 🟩 throughput [+67599.830op/s; +85804.331op/s] or [+7.553%; +9.586%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.005%]
  • ignore execution_time [+1.020ms; +4.912ms] or [+0.518%; +2.495%]
  • ignore throughput [+32097.842op/s; +46628.584op/s] or [+4.482%; +6.511%]

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

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8422) 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
duration75.89 ± (75.82 - 76.16) ms75.52 ± (75.33 - 75.73) ms-0.5%
.NET Framework 4.8 - Bailout
duration81.23 ± (81.03 - 81.42) ms80.03 ± (79.94 - 80.32) ms-1.5%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1108.04 ± (1109.03 - 1114.66) ms1096.85 ± (1096.61 - 1101.89) ms-1.0%
.NET Core 3.1 - Baseline
process.internal_duration_ms23.39 ± (23.33 - 23.45) ms22.95 ± (22.91 - 23.00) ms-1.9%
process.time_to_main_ms89.84 ± (89.62 - 90.06) ms87.63 ± (87.43 - 87.82) ms-2.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.92 ± (10.91 - 10.92) MB10.93 ± (10.93 - 10.94) MB+0.1%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms23.25 ± (23.19 - 23.31) ms22.90 ± (22.85 - 22.95) ms-1.5%
process.time_to_main_ms90.51 ± (90.27 - 90.75) ms89.05 ± (88.82 - 89.27) ms-1.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.95 ± (10.94 - 10.95) MB10.96 ± (10.96 - 10.97) MB+0.1%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms233.55 ± (232.37 - 234.72) ms231.19 ± (229.84 - 232.53) ms-1.0%
process.time_to_main_ms543.66 ± (542.52 - 544.79) ms536.67 ± (535.30 - 538.03) ms-1.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed47.82 ± (47.79 - 47.85) MB48.29 ± (48.26 - 48.32) MB+1.0%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 29)28 ± (28 - 28)-1.1%
.NET 6 - Baseline
process.internal_duration_ms22.00 ± (21.95 - 22.05) ms21.51 ± (21.46 - 21.57) ms-2.2%
process.time_to_main_ms77.58 ± (77.39 - 77.77) ms75.33 ± (75.15 - 75.51) ms-2.9%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.63 ± (10.62 - 10.63) MB10.64 ± (10.63 - 10.64) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.89 ± (21.84 - 21.95) ms21.54 ± (21.49 - 21.59) ms-1.6%
process.time_to_main_ms79.02 ± (78.82 - 79.22) ms76.82 ± (76.61 - 77.02) ms-2.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.74 ± (10.74 - 10.74) MB10.75 ± (10.75 - 10.76) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms385.29 ± (383.04 - 387.55) ms384.55 ± (382.67 - 386.43) ms-0.2%
process.time_to_main_ms544.30 ± (542.82 - 545.78) ms531.13 ± (530.21 - 532.05) ms-2.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.82 ± (49.79 - 49.85) MB50.06 ± (50.03 - 50.09) MB+0.5%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.0%
.NET 8 - Baseline
process.internal_duration_ms20.25 ± (20.21 - 20.29) ms19.71 ± (19.67 - 19.75) ms-2.7%
process.time_to_main_ms76.95 ± (76.79 - 77.12) ms74.72 ± (74.53 - 74.90) ms-2.9%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.68 ± (7.67 - 7.68) MB7.68 ± (7.68 - 7.69) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms20.25 ± (20.20 - 20.29) ms19.82 ± (19.78 - 19.85) ms-2.1%
process.time_to_main_ms78.49 ± (78.30 - 78.68) ms76.01 ± (75.83 - 76.19) ms-3.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.74 ± (7.73 - 7.75) MB7.74 ± (7.73 - 7.74) MB-0.0%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms305.49 ± (303.32 - 307.65) ms308.38 ± (306.19 - 310.57) ms+0.9%✅⬆️
process.time_to_main_ms507.97 ± (507.00 - 508.94) ms494.36 ± (493.48 - 495.25) ms-2.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.13 ± (37.10 - 37.15) MB37.08 ± (37.04 - 37.11) MB-0.1%
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
duration215.04 ± (214.99 - 215.91) ms209.14 ± (208.80 - 209.69) ms-2.7%
.NET Framework 4.8 - Bailout
duration220.32 ± (220.02 - 220.95) ms214.65 ± (214.30 - 215.28) ms-2.6%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1241.14 ± (1241.46 - 1248.21) ms1210.95 ± (1213.12 - 1221.10) ms-2.4%
.NET Core 3.1 - Baseline
process.internal_duration_ms209.32 ± (208.87 - 209.78) ms202.92 ± (202.37 - 203.47) ms-3.1%
process.time_to_main_ms91.84 ± (91.54 - 92.13) ms88.36 ± (88.02 - 88.70) ms-3.8%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed15.97 ± (15.95 - 15.99) MB15.93 ± (15.91 - 15.95) MB-0.3%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.8%
.NET Core 3.1 - Bailout
process.internal_duration_ms208.73 ± (208.24 - 209.22) ms203.08 ± (202.56 - 203.60) ms-2.7%
process.time_to_main_ms92.71 ± (92.46 - 92.96) ms89.93 ± (89.66 - 90.20) ms-3.0%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed15.94 ± (15.92 - 15.97) MB15.97 ± (15.95 - 15.99) MB+0.2%✅⬆️
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)-0.2%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms422.42 ± (420.83 - 424.01) ms416.39 ± (415.16 - 417.62) ms-1.4%
process.time_to_main_ms554.94 ± (553.59 - 556.29) ms543.70 ± (542.42 - 544.99) ms-2.0%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.69 ± (58.64 - 58.73) MB59.14 ± (59.09 - 59.19) MB+0.8%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-1.0%
.NET 6 - Baseline
process.internal_duration_ms214.64 ± (214.12 - 215.16) ms210.57 ± (210.06 - 211.08) ms-1.9%
process.time_to_main_ms79.83 ± (79.58 - 80.08) ms77.99 ± (77.74 - 78.24) ms-2.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.14 ± (16.12 - 16.16) MB16.22 ± (16.19 - 16.25) MB+0.5%✅⬆️
runtime.dotnet.threads.count20 ± (19 - 20)19 ± (19 - 20)-0.3%
.NET 6 - Bailout
process.internal_duration_ms215.78 ± (215.27 - 216.29) ms208.06 ± (207.63 - 208.49) ms-3.6%
process.time_to_main_ms81.54 ± (81.32 - 81.77) ms78.40 ± (78.14 - 78.65) ms-3.9%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.17 ± (16.15 - 16.20) MB16.26 ± (16.23 - 16.28) MB+0.5%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)21 ± (20 - 21)+0.7%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms601.08 ± (598.58 - 603.58) ms605.30 ± (602.46 - 608.13) ms+0.7%✅⬆️
process.time_to_main_ms559.94 ± (558.65 - 561.23) ms546.05 ± (544.82 - 547.29) ms-2.5%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.25 ± (61.14 - 61.37) MB61.76 ± (61.66 - 61.85) MB+0.8%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.4%
.NET 8 - Baseline
process.internal_duration_ms212.79 ± (212.23 - 213.35) ms205.60 ± (205.10 - 206.10) ms-3.4%
process.time_to_main_ms78.94 ± (78.68 - 79.19) ms75.79 ± (75.56 - 76.03) ms-4.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.51 ± (11.49 - 11.53) MB11.61 ± (11.59 - 11.63) MB+0.9%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.1%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms211.78 ± (211.28 - 212.27) ms205.50 ± (204.98 - 206.03) ms-3.0%
process.time_to_main_ms80.43 ± (80.16 - 80.70) ms77.01 ± (76.80 - 77.22) ms-4.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.57 ± (11.55 - 11.59) MB11.67 ± (11.65 - 11.69) MB+0.8%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-1.8%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms587.48 ± (579.86 - 595.10) ms537.67 ± (531.43 - 543.90) ms-8.5%
process.time_to_main_ms518.94 ± (517.73 - 520.16) ms502.80 ± (501.95 - 503.65) ms-3.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed51.43 ± (51.34 - 51.53) MB50.77 ± (50.70 - 50.84) MB-1.3%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.2%
Comparison explanation

Execution-time benchmarks measure the whole time it takes to execute a program, and are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are highlighted in **red**. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard.

Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph).

Duration charts
FakeDbCommand (.NET Framework 4.8)
gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8422) - mean (76ms)  : 73, 78
    master - mean (76ms)  : 74, 78

    section Bailout
    This PR (8422) - mean (80ms)  : 78, 82
    master - mean (81ms)  : 79, 84

    section CallTarget+Inlining+NGEN
    This PR (8422) - mean (1,099ms)  : 1061, 1137
    master - mean (1,112ms)  : 1071, 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 (8422) - mean (118ms)  : 114, 122
    master - mean (121ms)  : 116, 125

    section Bailout
    This PR (8422) - mean (119ms)  : 116, 122
    master - mean (121ms)  : 118, 124

    section CallTarget+Inlining+NGEN
    This PR (8422) - mean (805ms)  : 784, 826
    master - mean (815ms)  : 791, 839

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8422) - mean (104ms)  : 101, 107
    master - mean (107ms)  : 103, 110

    section Bailout
    This PR (8422) - mean (105ms)  : 102, 108
    master - mean (108ms)  : 104, 112

    section CallTarget+Inlining+NGEN
    This PR (8422) - mean (945ms)  : 906, 985
    master - mean (960ms)  : 914, 1007

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8422) - mean (102ms)  : 99, 106
    master - mean (105ms)  : 101, 109

    section Bailout
    This PR (8422) - mean (104ms)  : 100, 108
    master - mean (107ms)  : 104, 110

    section CallTarget+Inlining+NGEN
    This PR (8422) - mean (834ms)  : 795, 873
    master - mean (844ms)  : 809, 880

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 (8422) - mean (209ms)  : 204, 215
    master - mean (215ms)  : 210, 221

    section Bailout
    This PR (8422) - mean (215ms)  : 208, 222
    master - mean (220ms)  : 216, 225

    section CallTarget+Inlining+NGEN
    This PR (8422) - mean (1,217ms)  : 1158, 1276
    master - mean (1,245ms)  : 1196, 1294

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 (8422) - mean (301ms)  : 292, 309
    master - mean (311ms)  : 304, 317

    section Bailout
    This PR (8422) - mean (302ms)  : 295, 309
    master - mean (311ms)  : 305, 318

    section CallTarget+Inlining+NGEN
    This PR (8422) - mean (993ms)  : 966, 1020
    master - mean (1,019ms)  : 987, 1052

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8422) - mean (297ms)  : 290, 304
    master - mean (303ms)  : 296, 311

    section Bailout
    This PR (8422) - mean (295ms)  : 290, 301
    master - mean (306ms)  : 299, 313

    section CallTarget+Inlining+NGEN
    This PR (8422) - mean (1,183ms)  : 1153, 1214
    master - mean (1,194ms)  : 1158, 1231

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8422) - mean (292ms)  : 285, 299
    master - mean (303ms)  : 295, 310

    section Bailout
    This PR (8422) - mean (293ms)  : 287, 299
    master - mean (302ms)  : 295, 310

    section CallTarget+Inlining+NGEN
    This PR (8422) - mean (1,074ms)  : 984, 1164
    master - mean (1,141ms)  : 1025, 1257

Loading

@dudikeleti dudikeleti marked this pull request as ready for review April 15, 2026 10:02
@dudikeleti dudikeleti requested a review from a team as a code owner April 15, 2026 10:02
@dudikeleti dudikeleti requested a review from Copilot April 15, 2026 10:03
@dudikeleti dudikeleti enabled auto-merge (squash) April 15, 2026 10:06
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: b21dde9481

ℹ️ 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".

Comment thread tracer/src/Datadog.Trace/Debugger/LineProbeResolver.cs Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tracer/src/Datadog.Trace/Debugger/LineProbeResolver.cs
Comment thread tracer/src/Datadog.Trace/Debugger/LineProbeResolver.cs
@dudikeleti dudikeleti changed the title [Debugger] Improve line probe source path resolution [Dynamic Instrumentation] Improve line probe source path resolution Apr 15, 2026
@dudikeleti dudikeleti force-pushed the fix/line-probe-path-fallback branch from b21dde9 to 712d2d3 Compare April 15, 2026 11:15
@dudikeleti dudikeleti requested a review from Copilot April 15, 2026 11:34
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…iagnostics implied the assembly was missing.

Clarify source-path mismatch reporting, add conservative suffix fallback matching, and avoid building full resolver diagnostics outside debug so these cases are easier to diagnose without adding unnecessary allocation cost.
@dudikeleti dudikeleti force-pushed the fix/line-probe-path-fallback branch from 712d2d3 to 57d42a6 Compare April 15, 2026 14:46
@dudikeleti dudikeleti merged commit f4b7e70 into master Apr 15, 2026
139 of 142 checks passed
@dudikeleti dudikeleti deleted the fix/line-probe-path-fallback branch April 15, 2026 23:10
@github-actions github-actions bot added this to the vNext-v3 milestone Apr 15, 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