[Crashtracking] Add registry key to installer#6106
Conversation
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 (6106) - mean (71ms) : 67, 75
. : milestone, 71,
master - mean (70ms) : 68, 73
. : milestone, 70,
section CallTarget+Inlining+NGEN
This PR (6106) - mean (1,110ms) : 1088, 1132
. : milestone, 1110,
master - mean (1,106ms) : 1084, 1127
. : milestone, 1106,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6106) - mean (109ms) : 107, 112
. : milestone, 109,
master - mean (109ms) : 105, 113
. : milestone, 109,
section CallTarget+Inlining+NGEN
This PR (6106) - mean (775ms) : 759, 792
. : milestone, 775,
master - mean (775ms) : 754, 796
. : milestone, 775,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6106) - mean (93ms) : 90, 96
. : milestone, 93,
master - mean (93ms) : 89, 96
. : milestone, 93,
section CallTarget+Inlining+NGEN
This PR (6106) - mean (731ms) : 718, 743
. : milestone, 731,
master - mean (728ms) : 712, 744
. : milestone, 728,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6106) - mean (190ms) : 187, 192
. : milestone, 190,
master - mean (190ms) : 187, 193
. : milestone, 190,
section CallTarget+Inlining+NGEN
This PR (6106) - mean (1,197ms) : 1175, 1218
. : milestone, 1197,
master - mean (1,199ms) : 1177, 1221
. : milestone, 1199,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6106) - mean (276ms) : 272, 280
. : milestone, 276,
master - mean (276ms) : 270, 282
. : milestone, 276,
section CallTarget+Inlining+NGEN
This PR (6106) - mean (937ms) : 921, 953
. : milestone, 937,
master - mean (944ms) : 919, 969
. : milestone, 944,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6106) - mean (264ms) : 261, 267
. : milestone, 264,
master - mean (264ms) : 260, 267
. : milestone, 264,
section CallTarget+Inlining+NGEN
This PR (6106) - mean (923ms) : 906, 939
. : milestone, 923,
master - mean (921ms) : 906, 937
. : milestone, 921,
|
Datadog ReportBranch report: ✅ 0 Failed, 363738 Passed, 2331 Skipped, 16h 49m 33.83s Total Time |
Benchmarks Report for tracer 🐌Benchmarks for #6106 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 - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ILoggerBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.RedisBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SpanBenchmark - Faster 🎉 Same allocations ✔️
|
| Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 | 1.183 | 562.50 | 475.43 |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StartFinishSpan |
net6.0 | 394ns | 0.307ns | 1.19ns | 0.00809 | 0 | 0 | 576 B |
| master | StartFinishSpan |
netcoreapp3.1 | 586ns | 0.486ns | 1.82ns | 0.00781 | 0 | 0 | 576 B |
| master | StartFinishSpan |
net472 | 691ns | 0.492ns | 1.84ns | 0.0918 | 0 | 0 | 578 B |
| master | StartFinishScope |
net6.0 | 562ns | 0.32ns | 1.24ns | 0.00992 | 0 | 0 | 696 B |
| master | StartFinishScope |
netcoreapp3.1 | 711ns | 0.979ns | 3.79ns | 0.00953 | 0 | 0 | 696 B |
| master | StartFinishScope |
net472 | 887ns | 0.782ns | 3.03ns | 0.104 | 0 | 0 | 658 B |
| #6106 | StartFinishSpan |
net6.0 | 398ns | 0.115ns | 0.446ns | 0.00813 | 0 | 0 | 576 B |
| #6106 | StartFinishSpan |
netcoreapp3.1 | 596ns | 0.411ns | 1.59ns | 0.00765 | 0 | 0 | 576 B |
| #6106 | StartFinishSpan |
net472 | 685ns | 0.775ns | 3ns | 0.0917 | 0 | 0 | 578 B |
| #6106 | StartFinishScope |
net6.0 | 475ns | 0.163ns | 0.611ns | 0.0098 | 0 | 0 | 696 B |
| #6106 | StartFinishScope |
netcoreapp3.1 | 702ns | 0.467ns | 1.81ns | 0.00954 | 0 | 0 | 696 B |
| #6106 | StartFinishScope |
net472 | 849ns | 0.736ns | 2.75ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #6106
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0
1.247
603.30
752.55
| Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0 | 1.247 | 603.30 | 752.55 |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | RunOnMethodBegin |
net6.0 | 603ns | 0.259ns | 1ns | 0.00982 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
netcoreapp3.1 | 996ns | 2.82ns | 10.6ns | 0.00945 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
net472 | 1.14μs | 1.24ns | 4.8ns | 0.105 | 0 | 0 | 658 B |
| #6106 | RunOnMethodBegin |
net6.0 | 753ns | 0.777ns | 3.01ns | 0.0098 | 0 | 0 | 696 B |
| #6106 | RunOnMethodBegin |
netcoreapp3.1 | 992ns | 0.481ns | 1.86ns | 0.00943 | 0 | 0 | 696 B |
| #6106 | RunOnMethodBegin |
net472 | 1.12μs | 0.914ns | 3.54ns | 0.104 | 0 | 0 | 658 B |
Throughput/Crank Report ⚡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 (6106) (10.785M) : 0, 10785200
master (11.173M) : 0, 11173302
benchmarks/2.9.0 (11.081M) : 0, 11080577
section Automatic
This PR (6106) (7.181M) : 0, 7181380
master (7.279M) : 0, 7278664
benchmarks/2.9.0 (7.732M) : 0, 7732233
section Trace stats
master (7.532M) : 0, 7531539
section Manual
master (11.083M) : 0, 11082902
section Manual + Automatic
This PR (6106) (6.761M) : 0, 6761002
master (6.710M) : 0, 6709924
section DD_TRACE_ENABLED=0
master (10.153M) : 0, 10153208
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6106) (9.453M) : 0, 9452863
master (9.398M) : 0, 9398448
benchmarks/2.9.0 (9.798M) : 0, 9798067
section Automatic
This PR (6106) (6.608M) : 0, 6607677
master (6.529M) : 0, 6529082
section Trace stats
master (6.958M) : 0, 6957848
section Manual
master (9.566M) : 0, 9566040
section Manual + Automatic
This PR (6106) (6.182M) : 0, 6182406
master (6.221M) : 0, 6221012
section DD_TRACE_ENABLED=0
master (8.922M) : 0, 8921736
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6106) (9.941M) : 0, 9940696
master (10.147M) : 0, 10147192
benchmarks/2.9.0 (10.067M) : 0, 10067315
section Automatic
This PR (6106) (6.755M) : 0, 6755483
master (6.895M) : 0, 6894968
benchmarks/2.9.0 (7.552M) : 0, 7552193
section Trace stats
master (7.434M) : 0, 7433935
section Manual
master (10.142M) : 0, 10142136
section Manual + Automatic
This PR (6106) (6.296M) : 0, 6295657
master (6.402M) : 0, 6401740
section DD_TRACE_ENABLED=0
master (9.547M) : 0, 9547292
|
Co-authored-by: Andrew Lock <[email protected]>
Well it works on my machine. Anyway, you've contributed to the PR so you're complicit now. |
## Summary of changes Register `Datadog.Trace.ClrProfiler.Native.dll` in the `HKLM\Software\Microsoft\Windows\Windows Error Reporting\RuntimeExceptionHelperModules` key. ## Reason for change This is needed by crashtracking. If the value is absent, the tracer will create it in HKCU (the instrumented application is unlikely to have permission to write to HKLM). However, registering the crash handler in HKCU is only supported in somewhat versions of Windows (since Windows 10 2004). So we should rely on HKLM whenever possible. ## Other details Depends on #6088 --------- Co-authored-by: Andrew Lock <[email protected]>
Summary of changes
Register
Datadog.Trace.ClrProfiler.Native.dllin theHKLM\Software\Microsoft\Windows\Windows Error Reporting\RuntimeExceptionHelperModuleskey.Reason for change
This is needed by crashtracking.
If the value is absent, the tracer will create it in HKCU (the instrumented application is unlikely to have permission to write to HKLM). However, registering the crash handler in HKCU is only supported in somewhat versions of Windows (since Windows 10 2004). So we should rely on HKLM whenever possible.
Other details
Depends on #6088
https://datadoghq.atlassian.net/browse/APMSP-1388