-
Notifications
You must be signed in to change notification settings - Fork 147
[Crashtracking] Add a setting to disable crashtracking filtering #6452
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
Conversation
b150ebd
to
8134672
Compare
|
||
AnsiConsole.WriteLine("Datadog - The crash may have been caused by automatic instrumentation, sending crash report..."); | ||
if (filteringEnabled == "0" || filteringEnabled.Equals("false", StringComparison.OrdinalIgnoreCase)) |
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.
No "off" support? 😛
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.
Nobody uses "off", right? :padme:
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 (6452) - mean (68ms) : 65, 71
. : milestone, 68,
master - mean (69ms) : 65, 73
. : milestone, 69,
section CallTarget+Inlining+NGEN
This PR (6452) - mean (976ms) : 948, 1005
. : milestone, 976,
master - mean (981ms) : 957, 1005
. : milestone, 981,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6452) - mean (106ms) : 104, 109
. : milestone, 106,
master - mean (108ms) : 105, 110
. : milestone, 108,
section CallTarget+Inlining+NGEN
This PR (6452) - mean (679ms) : 666, 693
. : milestone, 679,
master - mean (679ms) : 666, 693
. : milestone, 679,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6452) - mean (91ms) : 89, 93
. : milestone, 91,
master - mean (91ms) : 89, 93
. : milestone, 91,
section CallTarget+Inlining+NGEN
This PR (6452) - mean (637ms) : 616, 659
. : milestone, 637,
master - mean (637ms) : 622, 651
. : milestone, 637,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6452) - mean (193ms) : 189, 197
. : milestone, 193,
master - mean (194ms) : 189, 199
. : milestone, 194,
section CallTarget+Inlining+NGEN
This PR (6452) - mean (1,101ms) : 1076, 1126
. : milestone, 1101,
master - mean (1,100ms) : 1064, 1136
. : milestone, 1100,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6452) - mean (276ms) : 272, 281
. : milestone, 276,
master - mean (278ms) : 274, 282
. : milestone, 278,
section CallTarget+Inlining+NGEN
This PR (6452) - mean (868ms) : 843, 893
. : milestone, 868,
master - mean (870ms) : 836, 905
. : milestone, 870,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6452) - mean (267ms) : 262, 271
. : milestone, 267,
master - mean (266ms) : 262, 269
. : milestone, 266,
section CallTarget+Inlining+NGEN
This PR (6452) - mean (848ms) : 818, 878
. : milestone, 848,
master - mean (853ms) : 825, 881
. : milestone, 853,
|
Datadog ReportBranch report: ✅ 0 Failed, 460014 Passed, 2837 Skipped, 19h 36m 2.09s Total Time |
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 (6452) (11.120M) : 0, 11120308
master (11.166M) : 0, 11165619
benchmarks/2.9.0 (11.033M) : 0, 11032866
section Automatic
This PR (6452) (7.182M) : 0, 7181582
master (7.232M) : 0, 7232435
benchmarks/2.9.0 (7.786M) : 0, 7785853
section Trace stats
master (7.555M) : 0, 7555239
section Manual
master (11.218M) : 0, 11218357
section Manual + Automatic
This PR (6452) (6.760M) : 0, 6759818
master (6.695M) : 0, 6694720
section DD_TRACE_ENABLED=0
master (10.195M) : 0, 10194994
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6452) (9.621M) : 0, 9621226
master (9.350M) : 0, 9350086
benchmarks/2.9.0 (9.495M) : 0, 9494821
section Automatic
This PR (6452) (6.314M) : 0, 6314458
master (6.223M) : 0, 6222880
section Trace stats
master (6.644M) : 0, 6644302
section Manual
master (9.490M) : 0, 9490052
section Manual + Automatic
This PR (6452) (5.931M) : 0, 5931157
master (5.826M) : 0, 5826117
section DD_TRACE_ENABLED=0
master (8.806M) : 0, 8806093
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6452) (10.045M) : 0, 10044918
master (10.038M) : 0, 10038108
benchmarks/2.9.0 (10.020M) : 0, 10019592
section Automatic
This PR (6452) (6.731M) : 0, 6730729
master (6.759M) : 0, 6759031
benchmarks/2.9.0 (7.255M) : 0, 7255257
section Trace stats
master (7.327M) : 0, 7327150
section Manual
master (10.148M) : 0, 10147695
section Manual + Automatic
This PR (6452) (6.243M) : 0, 6243138
master (6.270M) : 0, 6270298
section DD_TRACE_ENABLED=0
master (9.572M) : 0, 9571995
|
Benchmarks Report for tracer 🐌Benchmarks for #6452 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 - Faster 🎉 Same allocations ✔️
|
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync‑net6.0 | 1.131 | 1,404.68 | 1,242.09 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | ExecuteAsync |
net6.0 | 1.4μs | 0.816ns | 3.16ns | 0.0133 | 0 | 0 | 952 B |
master | ExecuteAsync |
netcoreapp3.1 | 1.69μs | 0.585ns | 2.27ns | 0.0126 | 0 | 0 | 952 B |
master | ExecuteAsync |
net472 | 1.83μs | 0.365ns | 1.37ns | 0.145 | 0 | 0 | 915 B |
#6452 | ExecuteAsync |
net6.0 | 1.24μs | 0.384ns | 1.38ns | 0.0137 | 0 | 0 | 952 B |
#6452 | ExecuteAsync |
netcoreapp3.1 | 1.72μs | 1.98ns | 7.4ns | 0.0127 | 0 | 0 | 952 B |
#6452 | ExecuteAsync |
net472 | 1.79μs | 1.82ns | 7.06ns | 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.51μs | 1.11ns | 4ns | 0.0315 | 0 | 0 | 2.31 KB |
master | SendAsync |
netcoreapp3.1 | 5.26μs | 3.27ns | 12.7ns | 0.0368 | 0 | 0 | 2.85 KB |
master | SendAsync |
net472 | 7.52μs | 1.93ns | 7.48ns | 0.496 | 0 | 0 | 3.12 KB |
#6452 | SendAsync |
net6.0 | 4.45μs | 1.7ns | 6.57ns | 0.0319 | 0 | 0 | 2.31 KB |
#6452 | SendAsync |
netcoreapp3.1 | 5.4μs | 2.97ns | 11.1ns | 0.0379 | 0 | 0 | 2.85 KB |
#6452 | SendAsync |
net472 | 7.3μs | 2.05ns | 7.96ns | 0.494 | 0 | 0 | 3.12 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.49μs | 0.564ns | 2.11ns | 0.0232 | 0 | 0 | 1.64 KB |
master | EnrichedLog |
netcoreapp3.1 | 2.27μs | 0.733ns | 2.74ns | 0.0219 | 0 | 0 | 1.64 KB |
master | EnrichedLog |
net472 | 2.68μs | 1.1ns | 4.1ns | 0.249 | 0 | 0 | 1.57 KB |
#6452 | EnrichedLog |
net6.0 | 1.56μs | 1.31ns | 5.07ns | 0.0229 | 0 | 0 | 1.64 KB |
#6452 | EnrichedLog |
netcoreapp3.1 | 2.24μs | 1.98ns | 7.39ns | 0.0223 | 0 | 0 | 1.64 KB |
#6452 | EnrichedLog |
net472 | 2.63μs | 2.53ns | 9.81ns | 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 | 155ns | 559ns | 0 | 0 | 0 | 4.28 KB |
master | EnrichedLog |
netcoreapp3.1 | 122μs | 224ns | 866ns | 0.0608 | 0 | 0 | 4.28 KB |
master | EnrichedLog |
net472 | 150μs | 129ns | 498ns | 0.675 | 0.225 | 0 | 4.46 KB |
#6452 | EnrichedLog |
net6.0 | 116μs | 262ns | 1.01μs | 0.0576 | 0 | 0 | 4.28 KB |
#6452 | EnrichedLog |
netcoreapp3.1 | 122μs | 199ns | 772ns | 0 | 0 | 0 | 4.28 KB |
#6452 | EnrichedLog |
net472 | 154μs | 182ns | 704ns | 0.687 | 0.229 | 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.07μs | 1.14ns | 4.41ns | 0.0309 | 0 | 0 | 2.2 KB |
master | EnrichedLog |
netcoreapp3.1 | 4.13μs | 1.62ns | 6.26ns | 0.0292 | 0 | 0 | 2.2 KB |
master | EnrichedLog |
net472 | 4.89μs | 1.28ns | 4.96ns | 0.319 | 0 | 0 | 2.02 KB |
#6452 | EnrichedLog |
net6.0 | 3μs | 0.933ns | 3.61ns | 0.0301 | 0 | 0 | 2.2 KB |
#6452 | EnrichedLog |
netcoreapp3.1 | 4.17μs | 1.7ns | 6.57ns | 0.0291 | 0 | 0 | 2.2 KB |
#6452 | EnrichedLog |
net472 | 4.76μs | 1.19ns | 4.59ns | 0.32 | 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.41μs | 1.39ns | 5.2ns | 0.0162 | 0 | 0 | 1.14 KB |
master | SendReceive |
netcoreapp3.1 | 1.75μs | 1.02ns | 3.81ns | 0.0157 | 0 | 0 | 1.14 KB |
master | SendReceive |
net472 | 2.14μs | 1.21ns | 4.67ns | 0.183 | 0 | 0 | 1.16 KB |
#6452 | SendReceive |
net6.0 | 1.45μs | 1.17ns | 4.54ns | 0.0159 | 0 | 0 | 1.14 KB |
#6452 | SendReceive |
netcoreapp3.1 | 1.78μs | 1.11ns | 4.3ns | 0.0151 | 0 | 0 | 1.14 KB |
#6452 | SendReceive |
net472 | 2.11μs | 1.44ns | 5.21ns | 0.183 | 0 | 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.88μs | 3ns | 11.6ns | 0.0216 | 0 | 0 | 1.6 KB |
master | EnrichedLog |
netcoreapp3.1 | 3.85μs | 3.69ns | 14.3ns | 0.0213 | 0 | 0 | 1.65 KB |
master | EnrichedLog |
net472 | 4.19μs | 2.82ns | 10.9ns | 0.323 | 0 | 0 | 2.04 KB |
#6452 | EnrichedLog |
net6.0 | 2.65μs | 0.771ns | 2.98ns | 0.0225 | 0 | 0 | 1.6 KB |
#6452 | EnrichedLog |
netcoreapp3.1 | 3.94μs | 1.85ns | 7.18ns | 0.0215 | 0 | 0 | 1.65 KB |
#6452 | EnrichedLog |
net472 | 4.47μs | 3.75ns | 14ns | 0.322 | 0 | 0 | 2.04 KB |
Benchmarks.Trace.SpanBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 397ns | 0.239ns | 0.895ns | 0.008 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 617ns | 0.43ns | 1.67ns | 0.00776 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 704ns | 0.203ns | 0.785ns | 0.0918 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 558ns | 0.432ns | 1.67ns | 0.0098 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 685ns | 0.368ns | 1.42ns | 0.00942 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 897ns | 0.523ns | 2.03ns | 0.104 | 0 | 0 | 658 B |
#6452 | StartFinishSpan |
net6.0 | 415ns | 0.168ns | 0.652ns | 0.00809 | 0 | 0 | 576 B |
#6452 | StartFinishSpan |
netcoreapp3.1 | 557ns | 0.348ns | 1.3ns | 0.00779 | 0 | 0 | 576 B |
#6452 | StartFinishSpan |
net472 | 645ns | 0.645ns | 2.5ns | 0.0917 | 0 | 0 | 578 B |
#6452 | StartFinishScope |
net6.0 | 596ns | 0.282ns | 1.09ns | 0.00963 | 0 | 0 | 696 B |
#6452 | StartFinishScope |
netcoreapp3.1 | 752ns | 0.982ns | 3.8ns | 0.00918 | 0 | 0 | 696 B |
#6452 | StartFinishScope |
net472 | 932ns | 0.599ns | 2.32ns | 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 | 615ns | 0.399ns | 1.54ns | 0.00958 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 1μs | 0.866ns | 3.35ns | 0.00899 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.14μs | 1.08ns | 4.19ns | 0.104 | 0 | 0 | 658 B |
#6452 | RunOnMethodBegin |
net6.0 | 628ns | 0.306ns | 1.18ns | 0.00976 | 0 | 0 | 696 B |
#6452 | RunOnMethodBegin |
netcoreapp3.1 | 910ns | 0.719ns | 2.69ns | 0.00924 | 0 | 0 | 696 B |
#6452 | RunOnMethodBegin |
net472 | 1.09μs | 0.833ns | 3.23ns | 0.104 | 0 | 0 | 658 B |
4c028cc
to
a4f57fc
Compare
Summary of changes
Add a
DD_CRASHTRACKING_FILTERING_ENABLED
environment variable. When set to 0, crashtracking will send all crash reports to telemetry, regardless of whether they're marked as suspicious or not.Reason for change
It is not always easy for customers to send crash dumps. This can be used as an alternative solution in some cases. We may also be able to use it to get information on some crashes in the CI without having to download the coredump.
Test coverage
Added a test to confirm a report is received in a non-datadog crash when setting
DD_CRASHTRACKING_FILTERING_ENABLED=0