-
Notifications
You must be signed in to change notification settings - Fork 145
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
[Crashtracking] Add more filtering on TypeLoadException #6539
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 237907 Passed, 1976 Skipped, 19h 9m 4.65s 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 (6539) - mean (68ms) : 66, 70
. : milestone, 68,
master - mean (68ms) : 66, 71
. : milestone, 68,
section CallTarget+Inlining+NGEN
This PR (6539) - mean (982ms) : 955, 1008
. : milestone, 982,
master - mean (975ms) : 946, 1003
. : milestone, 975,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6539) - mean (107ms) : 104, 111
. : milestone, 107,
master - mean (107ms) : 105, 110
. : milestone, 107,
section CallTarget+Inlining+NGEN
This PR (6539) - mean (678ms) : 663, 693
. : milestone, 678,
master - mean (677ms) : 661, 694
. : milestone, 677,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6539) - mean (91ms) : 89, 93
. : milestone, 91,
master - mean (90ms) : 89, 92
. : milestone, 90,
section CallTarget+Inlining+NGEN
This PR (6539) - mean (637ms) : 623, 651
. : milestone, 637,
master - mean (630ms) : 615, 646
. : milestone, 630,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6539) - mean (194ms) : 188, 199
. : milestone, 194,
master - mean (194ms) : 189, 199
. : milestone, 194,
section CallTarget+Inlining+NGEN
This PR (6539) - mean (1,104ms) : 1075, 1132
. : milestone, 1104,
master - mean (1,104ms) : 1073, 1135
. : milestone, 1104,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6539) - mean (278ms) : 274, 283
. : milestone, 278,
master - mean (280ms) : 273, 286
. : milestone, 280,
section CallTarget+Inlining+NGEN
This PR (6539) - mean (871ms) : 843, 898
. : milestone, 871,
master - mean (869ms) : 842, 896
. : milestone, 869,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6539) - mean (268ms) : 263, 272
. : milestone, 268,
master - mean (267ms) : 262, 271
. : milestone, 267,
section CallTarget+Inlining+NGEN
This PR (6539) - mean (853ms) : 817, 890
. : milestone, 853,
master - mean (853ms) : 825, 880
. : milestone, 853,
|
b1196d6
to
f551240
Compare
Benchmarks Report for tracer 🐌Benchmarks for #6539 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 - Slower
|
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 | 1.161 | 465.70 | 540.47 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 396ns | 0.259ns | 1ns | 0.00804 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 621ns | 1.21ns | 4.7ns | 0.00773 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 712ns | 0.333ns | 1.29ns | 0.0916 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 466ns | 0.212ns | 0.766ns | 0.00978 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 718ns | 2.25ns | 8.73ns | 0.0094 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 817ns | 0.954ns | 3.7ns | 0.104 | 0 | 0 | 658 B |
#6539 | StartFinishSpan |
net6.0 | 405ns | 0.243ns | 0.939ns | 0.00815 | 0 | 0 | 576 B |
#6539 | StartFinishSpan |
netcoreapp3.1 | 557ns | 0.315ns | 1.22ns | 0.00782 | 0 | 0 | 576 B |
#6539 | StartFinishSpan |
net472 | 653ns | 0.509ns | 1.97ns | 0.0915 | 0 | 0 | 578 B |
#6539 | StartFinishScope |
net6.0 | 540ns | 0.236ns | 0.916ns | 0.00961 | 0 | 0 | 696 B |
#6539 | StartFinishScope |
netcoreapp3.1 | 749ns | 0.792ns | 3.07ns | 0.00939 | 0 | 0 | 696 B |
#6539 | StartFinishScope |
net472 | 891ns | 0.451ns | 1.69ns | 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 | 609ns | 0.354ns | 1.37ns | 0.00974 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 970ns | 0.624ns | 2.34ns | 0.00962 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.12μs | 0.636ns | 2.46ns | 0.104 | 0 | 0 | 658 B |
#6539 | RunOnMethodBegin |
net6.0 | 629ns | 0.42ns | 1.63ns | 0.00983 | 0 | 0 | 696 B |
#6539 | RunOnMethodBegin |
netcoreapp3.1 | 978ns | 1.66ns | 6.42ns | 0.00923 | 0 | 0 | 696 B |
#6539 | RunOnMethodBegin |
net472 | 1.14μs | 0.403ns | 1.56ns | 0.104 | 0 | 0 | 658 B |
Summary of changes
Flag TypeLoadException as suspicious only if it contains "datadog" in the message or the stacktrace.
Reason for change
There are too many false-positives caused by TypeLoadException. This is an exception that is relatively common in non-instrumented apps.