-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude an SSIS service from auto-tracing #5813
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 350590 Passed, 2525 Skipped, 24h 32m 54.11s Total Time |
Execution-Time Benchmarks Report ⏱️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 (5813) - mean (75ms) : 65, 84
. : milestone, 75,
master - mean (72ms) : 62, 82
. : milestone, 72,
section CallTarget+Inlining+NGEN
This PR (5813) - mean (1,062ms) : 1042, 1082
. : milestone, 1062,
master - mean (1,057ms) : 1037, 1078
. : milestone, 1057,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5813) - mean (110ms) : 106, 115
. : milestone, 110,
master - mean (109ms) : 106, 112
. : milestone, 109,
section CallTarget+Inlining+NGEN
This PR (5813) - mean (754ms) : 734, 775
. : milestone, 754,
master - mean (758ms) : 735, 781
. : milestone, 758,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5813) - mean (94ms) : 90, 97
. : milestone, 94,
master - mean (93ms) : 89, 97
. : milestone, 93,
section CallTarget+Inlining+NGEN
This PR (5813) - mean (698ms) : 678, 717
. : milestone, 698,
master - mean (702ms) : 680, 724
. : milestone, 702,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5813) - mean (194ms) : 188, 200
. : milestone, 194,
master - mean (192ms) : 189, 196
. : milestone, 192,
section CallTarget+Inlining+NGEN
This PR (5813) - mean (1,169ms) : 1125, 1213
. : milestone, 1169,
master - mean (1,165ms) : 1122, 1207
. : milestone, 1165,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5813) - mean (276ms) : 272, 280
. : milestone, 276,
master - mean (276ms) : 271, 281
. : milestone, 276,
section CallTarget+Inlining+NGEN
This PR (5813) - mean (933ms) : 874, 991
. : milestone, 933,
master - mean (915ms) : 881, 949
. : milestone, 915,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5813) - mean (267ms) : 260, 273
. : milestone, 267,
master - mean (266ms) : 262, 269
. : milestone, 266,
section CallTarget+Inlining+NGEN
This PR (5813) - mean (929ms) : 820, 1038
. : milestone, 929,
master - mean (901ms) : 880, 922
. : milestone, 901,
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, it's been a very long time since I've heard of SQL Server Reporting Services.
Benchmarks Report for tracer 🐌Benchmarks for #5813 compared to master:
The following thresholds were used for comparing the benchmark speeds:
Allocation changes below 0.5% are ignored. Benchmark detailsBenchmarks.Trace.ActivityBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AgentWriterBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AspNetCoreBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.DbCommandBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ElasticsearchBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.GraphQLBenchmark - Slower
|
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync‑net6.0 | 1.134 | 1,189.21 | 1,348.08 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | ExecuteAsync |
net6.0 | 1.19μs | 0.492ns | 1.91ns | 0.0132 | 0 | 0 | 952 B |
master | ExecuteAsync |
netcoreapp3.1 | 1.61μs | 0.689ns | 2.58ns | 0.0127 | 0 | 0 | 952 B |
master | ExecuteAsync |
net472 | 1.74μs | 0.916ns | 3.43ns | 0.145 | 0 | 0 | 915 B |
#5813 | ExecuteAsync |
net6.0 | 1.35μs | 0.56ns | 2.1ns | 0.0135 | 0 | 0 | 952 B |
#5813 | ExecuteAsync |
netcoreapp3.1 | 1.63μs | 0.917ns | 3.31ns | 0.013 | 0 | 0 | 952 B |
#5813 | ExecuteAsync |
net472 | 1.71μs | 0.833ns | 3.23ns | 0.145 | 0 | 0 | 915 B |
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | SendAsync |
net6.0 | 4.29μs | 2.3ns | 8.3ns | 0.0301 | 0 | 0 | 2.22 KB |
master | SendAsync |
netcoreapp3.1 | 5.07μs | 2.09ns | 8.08ns | 0.0362 | 0 | 0 | 2.76 KB |
master | SendAsync |
net472 | 7.69μs | 2.92ns | 11.3ns | 0.496 | 0 | 0 | 3.15 KB |
#5813 | SendAsync |
net6.0 | 4.08μs | 2.24ns | 8.38ns | 0.0307 | 0 | 0 | 2.22 KB |
#5813 | SendAsync |
netcoreapp3.1 | 5.11μs | 1.59ns | 6.16ns | 0.0359 | 0 | 0 | 2.76 KB |
#5813 | SendAsync |
net472 | 7.77μs | 1.71ns | 6.39ns | 0.496 | 0 | 0 | 3.15 KB |
Benchmarks.Trace.ILoggerBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 1.52μs | 0.572ns | 2.14ns | 0.0227 | 0 | 0 | 1.64 KB |
master | EnrichedLog |
netcoreapp3.1 | 2.06μs | 0.551ns | 1.99ns | 0.0218 | 0 | 0 | 1.64 KB |
master | EnrichedLog |
net472 | 2.68μs | 4.24ns | 16.4ns | 0.249 | 0 | 0 | 1.57 KB |
#5813 | EnrichedLog |
net6.0 | 1.56μs | 1.16ns | 4.35ns | 0.0229 | 0 | 0 | 1.64 KB |
#5813 | EnrichedLog |
netcoreapp3.1 | 2.23μs | 1.45ns | 5.6ns | 0.0222 | 0 | 0 | 1.64 KB |
#5813 | EnrichedLog |
net472 | 2.57μs | 0.939ns | 3.64ns | 0.249 | 0 | 0 | 1.57 KB |
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 116μs | 154ns | 598ns | 0 | 0 | 0 | 4.28 KB |
master | EnrichedLog |
netcoreapp3.1 | 120μs | 139ns | 540ns | 0 | 0 | 0 | 4.28 KB |
master | EnrichedLog |
net472 | 147μs | 97.1ns | 376ns | 0.657 | 0.219 | 0 | 4.46 KB |
#5813 | EnrichedLog |
net6.0 | 116μs | 245ns | 949ns | 0 | 0 | 0 | 4.28 KB |
#5813 | EnrichedLog |
netcoreapp3.1 | 120μs | 105ns | 407ns | 0 | 0 | 0 | 4.28 KB |
#5813 | EnrichedLog |
net472 | 149μs | 247ns | 957ns | 0.672 | 0.224 | 0 | 4.46 KB |
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 3.06μs | 1.46ns | 5.48ns | 0.0309 | 0 | 0 | 2.2 KB |
master | EnrichedLog |
netcoreapp3.1 | 4.21μs | 1.39ns | 5.37ns | 0.0294 | 0 | 0 | 2.2 KB |
master | EnrichedLog |
net472 | 4.76μs | 1.1ns | 4.25ns | 0.321 | 0 | 0 | 2.02 KB |
#5813 | EnrichedLog |
net6.0 | 2.99μs | 1.01ns | 3.91ns | 0.0299 | 0 | 0 | 2.2 KB |
#5813 | EnrichedLog |
netcoreapp3.1 | 4.11μs | 1.91ns | 7.16ns | 0.0288 | 0 | 0 | 2.2 KB |
#5813 | EnrichedLog |
net472 | 4.77μs | 0.93ns | 3.6ns | 0.321 | 0 | 0 | 2.02 KB |
Benchmarks.Trace.RedisBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | SendReceive |
net6.0 | 1.33μs | 1.12ns | 4.34ns | 0.0158 | 0 | 0 | 1.14 KB |
master | SendReceive |
netcoreapp3.1 | 1.71μs | 1.16ns | 4.51ns | 0.0156 | 0 | 0 | 1.14 KB |
master | SendReceive |
net472 | 2.11μs | 0.868ns | 3.36ns | 0.183 | 0.00105 | 0 | 1.16 KB |
#5813 | SendReceive |
net6.0 | 1.24μs | 0.647ns | 2.42ns | 0.016 | 0 | 0 | 1.14 KB |
#5813 | SendReceive |
netcoreapp3.1 | 1.71μs | 0.63ns | 2.27ns | 0.0153 | 0 | 0 | 1.14 KB |
#5813 | SendReceive |
net472 | 2.1μs | 1.84ns | 7.11ns | 0.183 | 0.00106 | 0 | 1.16 KB |
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 2.73μs | 0.984ns | 3.81ns | 0.0218 | 0 | 0 | 1.6 KB |
master | EnrichedLog |
netcoreapp3.1 | 3.95μs | 1.85ns | 6.68ns | 0.0222 | 0 | 0 | 1.65 KB |
master | EnrichedLog |
net472 | 4.45μs | 4.31ns | 16.7ns | 0.323 | 0 | 0 | 2.04 KB |
#5813 | EnrichedLog |
net6.0 | 2.79μs | 0.862ns | 3.34ns | 0.0224 | 0 | 0 | 1.6 KB |
#5813 | EnrichedLog |
netcoreapp3.1 | 3.91μs | 4.13ns | 14.9ns | 0.0215 | 0 | 0 | 1.65 KB |
#5813 | EnrichedLog |
net472 | 4.42μs | 2.39ns | 8.95ns | 0.323 | 0 | 0 | 2.04 KB |
Benchmarks.Trace.SpanBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #5813
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0
1.320
634.19
480.53
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 | 1.320 | 634.19 | 480.53 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 403ns | 0.111ns | 0.432ns | 0.00811 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 588ns | 0.482ns | 1.87ns | 0.00768 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 582ns | 0.169ns | 0.655ns | 0.0918 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 634ns | 0.18ns | 0.674ns | 0.00991 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 760ns | 0.45ns | 1.74ns | 0.00945 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 909ns | 1.73ns | 6.47ns | 0.104 | 0 | 0 | 658 B |
#5813 | StartFinishSpan |
net6.0 | 413ns | 0.261ns | 0.942ns | 0.00801 | 0 | 0 | 576 B |
#5813 | StartFinishSpan |
netcoreapp3.1 | 548ns | 0.143ns | 0.534ns | 0.00775 | 0 | 0 | 576 B |
#5813 | StartFinishSpan |
net472 | 639ns | 0.505ns | 1.96ns | 0.0915 | 0 | 0 | 578 B |
#5813 | StartFinishScope |
net6.0 | 481ns | 0.251ns | 0.972ns | 0.0099 | 0 | 0 | 696 B |
#5813 | StartFinishScope |
netcoreapp3.1 | 692ns | 0.75ns | 2.9ns | 0.00918 | 0 | 0 | 696 B |
#5813 | StartFinishScope |
net472 | 849ns | 0.423ns | 1.52ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 599ns | 0.162ns | 0.605ns | 0.00982 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 961ns | 1.15ns | 4.47ns | 0.00951 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.14μs | 0.303ns | 1.17ns | 0.104 | 0 | 0 | 658 B |
#5813 | RunOnMethodBegin |
net6.0 | 651ns | 0.231ns | 0.893ns | 0.00987 | 0 | 0 | 696 B |
#5813 | RunOnMethodBegin |
netcoreapp3.1 | 949ns | 0.419ns | 1.57ns | 0.00902 | 0 | 0 | 696 B |
#5813 | RunOnMethodBegin |
net472 | 1.17μs | 1.04ns | 4.04ns | 0.104 | 0 | 0 | 658 B |
## Summary of changes Excludes some [SSIS](https://learn.microsoft.com/en-us/sql/integration-services/sql-server-integration-services?view=sql-server-ver16) services from tracing ## Reason for change We have seen a case of injecting into MsDtsSrvr.exe causing it to break. ## Implementation details Exclude some of the [processes defined here](https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/configure-windows-service-accounts-and-permissions?view=sql-server-ver16). There are more services we _could_ avoid, but `ReportingServicesService` seems sufficiently general that we could accidentally _not_ instrument something we're supposed to. In contrast, I think these are all pretty safe: - `MsDtsSrvr.exe"` - `sqlagent.exe"` - `sqlbrowser.exe"` ## Test coverage Nope
## Summary of changes Excludes some [SSIS](https://learn.microsoft.com/en-us/sql/integration-services/sql-server-integration-services?view=sql-server-ver16) services from tracing ## Reason for change We have seen a case of injecting into MsDtsSrvr.exe causing it to break. ## Implementation details Exclude some of the [processes defined here](https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/configure-windows-service-accounts-and-permissions?view=sql-server-ver16). There are more services we _could_ avoid, but `ReportingServicesService` seems sufficiently general that we could accidentally _not_ instrument something we're supposed to. In contrast, I think these are all pretty safe: - `MsDtsSrvr.exe"` - `sqlagent.exe"` - `sqlbrowser.exe"` ## Test coverage Nope
## Summary of changes Excludes some [SSIS](https://learn.microsoft.com/en-us/sql/integration-services/sql-server-integration-services?view=sql-server-ver16) services from tracing ## Reason for change We have seen a case of injecting into MsDtsSrvr.exe causing it to break. ## Implementation details Exclude some of the [processes defined here](https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/configure-windows-service-accounts-and-permissions?view=sql-server-ver16). There are more services we _could_ avoid, but `ReportingServicesService` seems sufficiently general that we could accidentally _not_ instrument something we're supposed to. In contrast, I think these are all pretty safe: - `MsDtsSrvr.exe"` - `sqlagent.exe"` - `sqlbrowser.exe"` ## Test coverage Nope
Summary of changes
Excludes some SQL Server Integration Services (SSIS) services from tracing
Reason for change
We have seen a case of injecting into MsDtsSrvr.exe causing it to break.
Implementation details
Exclude some of the processes defined here. There are more services we could avoid, but
ReportingServicesService
seems sufficiently general that we could accidentally not instrument something we're supposed to.In contrast, I think these are all pretty safe:
MsDtsSrvr.exe"
sqlagent.exe"
sqlbrowser.exe"
Test coverage
Nope