Closed bouwkast closed 4 weeks ago
I've git cherry-picked
my commits to this branch as I think we want a V2 of this instead of a V3 (ultimately both - maybe)
Execution-time results for samples comparing the following branches/commits:
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 shown in red. The following thresholds were used for comparing the execution times:
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).
gantt
title Execution time (ms) FakeDbCommand (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6054) - mean (73ms) : 66, 81
. : milestone, 73,
master - mean (70ms) : 67, 72
. : milestone, 70,
section CallTarget+Inlining+NGEN
This PR (6054) - mean (1,020ms) : 1007, 1032
. : milestone, 1020,
master - mean (1,110ms) : 1085, 1135
. : milestone, 1110,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6054) - mean (109ms) : 106, 112
. : milestone, 109,
master - mean (109ms) : 105, 112
. : milestone, 109,
section CallTarget+Inlining+NGEN
This PR (6054) - mean (701ms) : 684, 718
. : milestone, 701,
master - mean (771ms) : 757, 786
. : milestone, 771,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6054) - mean (93ms) : 89, 96
. : milestone, 93,
master - mean (92ms) : 89, 95
. : milestone, 92,
section CallTarget+Inlining+NGEN
This PR (6054) - mean (666ms) : 646, 687
. : milestone, 666,
master - mean (727ms) : 710, 744
. : milestone, 727,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6054) - mean (190ms) : 186, 193
. : milestone, 190,
master - mean (189ms) : 186, 192
. : milestone, 189,
section CallTarget+Inlining+NGEN
This PR (6054) - mean (1,110ms) : 1092, 1128
. : milestone, 1110,
master - mean (1,201ms) : 1179, 1222
. : milestone, 1201,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6054) - mean (276ms) : 272, 281
. : milestone, 276,
master - mean (274ms) : 269, 278
. : milestone, 274,
section CallTarget+Inlining+NGEN
This PR (6054) - mean (874ms) : 853, 896
. : milestone, 874,
master - mean (943ms) : 926, 960
. : milestone, 943,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6054) - mean (264ms) : 260, 269
. : milestone, 264,
master - mean (263ms) : 259, 267
. : milestone, 263,
section CallTarget+Inlining+NGEN
This PR (6054) - mean (863ms) : 845, 880
. : milestone, 863,
master - mean (924ms) : 908, 940
. : milestone, 924,
Branch report: steven/29781-v2
Commit report: 5c41021
Test service: dd-trace-dotnet
:white_check_mark: 0 Failed, 351187 Passed, 1802 Skipped, 14h 31m 39.07s Total Time
Benchmarks for #6054 compared to master:
The following thresholds were used for comparing the benchmark speeds:
Allocation changes below 0.5% are ignored.
Throughput results for AspNetCoreSimpleController comparing the following branches/commits:
Cases where throughput results for the PR are worse than latest master (5% drop or greater), results are shown in red.
Note that these results are based on a single point-in-time result for each branch. For full results, see one of the many, many dashboards!
gantt
title Throughput Linux x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6054) (11.175M) : 0, 11174724
master (11.252M) : 0, 11251784
benchmarks/2.9.0 (11.081M) : 0, 11080577
section Automatic
This PR (6054) (7.459M) : 0, 7458834
master (7.466M) : 0, 7465753
benchmarks/2.9.0 (7.732M) : 0, 7732233
section Trace stats
master (7.766M) : 0, 7765791
section Manual
This PR (6054) (9.510M) : crit ,0, 9509755
master (11.114M) : 0, 11114354
section Manual + Automatic
This PR (6054) (7.000M) : 0, 6999803
master (6.846M) : 0, 6845872
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6054) (9.571M) : 0, 9571285
master (9.539M) : 0, 9539093
benchmarks/2.9.0 (9.798M) : 0, 9798067
section Automatic
This PR (6054) (6.533M) : 0, 6532948
master (6.648M) : 0, 6647799
section Trace stats
master (6.855M) : 0, 6855301
section Manual
This PR (6054) (8.329M) : crit ,0, 8328966
master (9.525M) : 0, 9525425
section Manual + Automatic
This PR (6054) (6.133M) : 0, 6132994
master (6.161M) : 0, 6160600
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6054) (10.204M) : 0, 10203810
master (10.064M) : 0, 10064242
benchmarks/2.9.0 (10.067M) : 0, 10067315
section Automatic
This PR (6054) (6.674M) : 0, 6673510
master (6.841M) : 0, 6841333
benchmarks/2.9.0 (7.552M) : 0, 7552193
section Trace stats
master (7.427M) : 0, 7426854
section Manual
This PR (6054) (8.632M) : crit ,0, 8631843
master (10.084M) : 0, 10084210
section Manual + Automatic
This PR (6054) (6.385M) : 0, 6385274
master (6.348M) : 0, 6347556
Adding do-not-merge
as we are testing this out.
Summary of changes
Allows users to configure additional
ADO.NET
DbCommand
s to be disabled so they won't have a Span created from them.Reason for change
Since we can instrument any
DbCommand
inADO.NET
this can lead to unwanted/duplicate Spans that customers have little control over. This allows for a comma-separated list of command type names that the .NET Tracer will not create a Span for if they encounter it.Implementation details
Adds new Environment Variable
DD_TRACE_DISABLED_ADONET_COMMAND_TYPES
that accepts a comma-separatedstring
ofADO.NET
Command Type names that the Tracer will not create a Span for.For example (some pseudo-code here):
Assuming we have a custom
DbCommand
FooDbCommand
that we don't want Spans for ->We'd need to set
DD_TRACE_DISABLED_ADONET_COMMAND_TYPES
to ->Test coverage
DbScopeFactoryTests
to add new value.FakeCommandTests
to include disabling ofFakeCommand
Other details
Merge the dd-go PR when this PR is merged: https://github.com/DataDog/dd-go/pull/150493
Backport of https://github.com/DataDog/dd-trace-dotnet/pull/6042