-
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
[Exception Replay] Better communicate non-captured exceptions #5371
[Exception Replay] Better communicate non-captured exceptions #5371
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 332313 Passed, 2056 Skipped, 41m 31.49s Wall 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 (5371) - mean (74ms) : 64, 84
. : milestone, 74,
master - mean (75ms) : 67, 84
. : milestone, 75,
section CallTarget+Inlining+NGEN
This PR (5371) - mean (1,004ms) : 978, 1030
. : milestone, 1004,
master - mean (1,000ms) : 979, 1021
. : milestone, 1000,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5371) - mean (110ms) : 107, 112
. : milestone, 110,
master - mean (110ms) : 107, 114
. : milestone, 110,
section CallTarget+Inlining+NGEN
This PR (5371) - mean (724ms) : 701, 748
. : milestone, 724,
master - mean (719ms) : 697, 740
. : milestone, 719,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5371) - mean (94ms) : 91, 97
. : milestone, 94,
master - mean (94ms) : 91, 97
. : milestone, 94,
section CallTarget+Inlining+NGEN
This PR (5371) - mean (677ms) : 654, 700
. : milestone, 677,
master - mean (676ms) : 654, 698
. : milestone, 676,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5371) - mean (187ms) : 181, 192
. : milestone, 187,
master - mean (188ms) : 184, 191
. : milestone, 188,
section CallTarget+Inlining+NGEN
This PR (5371) - mean (1,067ms) : 1040, 1094
. : milestone, 1067,
master - mean (1,076ms) : 1052, 1101
. : milestone, 1076,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5371) - mean (270ms) : 264, 275
. : milestone, 270,
master - mean (271ms) : 266, 276
. : milestone, 271,
section CallTarget+Inlining+NGEN
This PR (5371) - mean (867ms) : 847, 886
. : milestone, 867,
master - mean (874ms) : 852, 897
. : milestone, 874,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5371) - mean (261ms) : 258, 265
. : milestone, 261,
master - mean (261ms) : 256, 265
. : milestone, 261,
section CallTarget+Inlining+NGEN
This PR (5371) - mean (853ms) : 829, 878
. : milestone, 853,
master - mean (857ms) : 834, 881
. : milestone, 857,
|
Benchmarks Report for tracer 🐌Benchmarks for #5371 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.StartFinishSpan‑net472 | 1.146 | 820.15 | 715.38 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 482ns | 0.476ns | 1.78ns | 0.00766 | 0 | 0 | 552 B |
master | StartFinishSpan |
netcoreapp3.1 | 668ns | 1.11ns | 4.14ns | 0.00761 | 0 | 0 | 552 B |
master | StartFinishSpan |
net472 | 820ns | 1.67ns | 6.45ns | 0.0876 | 0 | 0 | 554 B |
master | StartFinishScope |
net6.0 | 548ns | 0.785ns | 2.94ns | 0.00935 | 0 | 0 | 672 B |
master | StartFinishScope |
netcoreapp3.1 | 810ns | 1.14ns | 4.42ns | 0.00888 | 0 | 0 | 672 B |
master | StartFinishScope |
net472 | 917ns | 1.31ns | 5.09ns | 0.1 | 0 | 0 | 634 B |
#5371 | StartFinishSpan |
net6.0 | 503ns | 1.06ns | 4.11ns | 0.00781 | 0 | 0 | 552 B |
#5371 | StartFinishSpan |
netcoreapp3.1 | 696ns | 1.26ns | 4.37ns | 0.0075 | 0 | 0 | 552 B |
#5371 | StartFinishSpan |
net472 | 716ns | 1.25ns | 4.83ns | 0.0877 | 0 | 0 | 554 B |
#5371 | StartFinishScope |
net6.0 | 611ns | 1.13ns | 4.38ns | 0.00934 | 0 | 0 | 672 B |
#5371 | StartFinishScope |
netcoreapp3.1 | 780ns | 1.47ns | 5.7ns | 0.00905 | 0 | 0 | 672 B |
#5371 | StartFinishScope |
net472 | 936ns | 1.05ns | 3.78ns | 0.101 | 0 | 0 | 634 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 | 733ns | 0.849ns | 3.29ns | 0.00937 | 0 | 0 | 672 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 961ns | 1.35ns | 5.04ns | 0.00909 | 0 | 0 | 672 B |
master | RunOnMethodBegin |
net472 | 1.05μs | 2.21ns | 8.57ns | 0.101 | 0 | 0 | 634 B |
#5371 | RunOnMethodBegin |
net6.0 | 703ns | 0.839ns | 3.25ns | 0.00923 | 0 | 0 | 672 B |
#5371 | RunOnMethodBegin |
netcoreapp3.1 | 926ns | 1.93ns | 7.46ns | 0.00882 | 0 | 0 | 672 B |
#5371 | RunOnMethodBegin |
net472 | 1.04μs | 3.47ns | 13.5ns | 0.1 | 0 | 0 | 634 B |
Throughput/Crank Report:zap: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 (5371) (11.229M) : 0, 11228937
master (11.471M) : 0, 11471077
benchmarks/2.9.0 (11.411M) : 0, 11411052
section Automatic
This PR (5371) (7.745M) : 0, 7744836
master (7.823M) : 0, 7823378
benchmarks/2.9.0 (8.041M) : 0, 8040848
section Trace stats
This PR (5371) (8.074M) : 0, 8073905
master (8.255M) : 0, 8255091
section Manual
This PR (5371) (9.831M) : 0, 9831276
master (10.000M) : 0, 10000339
section Manual + Automatic
This PR (5371) (7.307M) : 0, 7307043
master (7.405M) : 0, 7404644
section Version Conflict
This PR (5371) (6.563M) : 0, 6563106
master (6.706M) : 0, 6706148
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5371) (9.485M) : 0, 9484719
master (9.678M) : 0, 9677904
benchmarks/2.9.0 (9.520M) : 0, 9520466
section Automatic
This PR (5371) (6.663M) : 0, 6662984
master (6.483M) : 0, 6482979
section Trace stats
This PR (5371) (6.946M) : 0, 6945868
master (6.909M) : 0, 6909139
section Manual
This PR (5371) (8.325M) : 0, 8325088
master (8.108M) : 0, 8108233
section Manual + Automatic
This PR (5371) (6.200M) : 0, 6199922
master (6.175M) : 0, 6174670
section Version Conflict
This PR (5371) (5.739M) : 0, 5738888
master (5.672M) : 0, 5671735
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5371) (8.829M) : 0, 8828999
master (8.644M) : 0, 8644154
benchmarks/2.9.0 (8.821M) : 0, 8820751
section Automatic
This PR (5371) (6.133M) : 0, 6132920
master (6.087M) : 0, 6086915
benchmarks/2.9.0 (6.263M) : 0, 6262588
section Trace stats
This PR (5371) (6.388M) : 0, 6388252
master (6.279M) : 0, 6278610
section Manual
This PR (5371) (7.735M) : 0, 7734790
master (7.480M) : 0, 7480304
section Manual + Automatic
This PR (5371) (5.787M) : 0, 5787372
master (5.849M) : 0, 5849378
section Version Conflict
This PR (5371) (5.282M) : 0, 5282361
master (5.225M) : 0, 5224862
|
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.
Looks good
Summary of changes
In Exception Replay we may fail to capture all the frames of an exception. The reasons vary and could be instrumentation failure (native level), blocklisting, .NET 6+ with non-optimized code, etc - of all the participating frames in the exception stack trace.
To communicate that, a new tag was introduced -
_dd.debug.error.<FRAME_NUMBER>.no_capture_reason:<REASON>
.In this PR, I've added this tag for every frame we've failed to capture.
Reason for change
Communicating to the customers why there are no frame data for a given exception.