-
Notifications
You must be signed in to change notification settings - Fork 143
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
[Crashtracker] Use blazesym API to retrieve buildid #6347
Conversation
f1247d8
to
39a5fcd
Compare
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 (6347) - mean (69ms) : 66, 72
. : milestone, 69,
master - mean (69ms) : 66, 72
. : milestone, 69,
section CallTarget+Inlining+NGEN
This PR (6347) - mean (979ms) : 952, 1006
. : milestone, 979,
master - mean (977ms) : 953, 1000
. : milestone, 977,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6347) - mean (108ms) : 105, 110
. : milestone, 108,
master - mean (107ms) : 105, 110
. : milestone, 107,
section CallTarget+Inlining+NGEN
This PR (6347) - mean (678ms) : 656, 700
. : milestone, 678,
master - mean (680ms) : 664, 695
. : milestone, 680,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6347) - mean (91ms) : 90, 93
. : milestone, 91,
master - mean (91ms) : 89, 93
. : milestone, 91,
section CallTarget+Inlining+NGEN
This PR (6347) - mean (633ms) : 612, 654
. : milestone, 633,
master - mean (631ms) : 618, 645
. : milestone, 631,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6347) - mean (190ms) : 186, 194
. : milestone, 190,
master - mean (191ms) : 186, 196
. : milestone, 191,
section CallTarget+Inlining+NGEN
This PR (6347) - mean (1,096ms) : 1065, 1127
. : milestone, 1096,
master - mean (1,090ms) : 1061, 1118
. : milestone, 1090,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6347) - mean (277ms) : 273, 280
. : milestone, 277,
master - mean (277ms) : 273, 281
. : milestone, 277,
section CallTarget+Inlining+NGEN
This PR (6347) - mean (872ms) : 845, 899
. : milestone, 872,
master - mean (874ms) : 851, 897
. : milestone, 874,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6347) - mean (266ms) : 262, 270
. : milestone, 266,
master - mean (266ms) : 263, 269
. : milestone, 266,
section CallTarget+Inlining+NGEN
This PR (6347) - mean (852ms) : 820, 884
. : milestone, 852,
master - mean (850ms) : 817, 883
. : milestone, 850,
|
Datadog ReportBranch report: ✅ 0 Failed, 453475 Passed, 3194 Skipped, 21h 55m 6.16s Total Time New Flaky Tests (50)
|
Benchmarks Report for tracer 🐌Benchmarks for #6347 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.StartFinishSpan‑net472 | 1.120 | 641.13 | 718.32 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 460ns | 0.638ns | 2.47ns | 0.00804 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 621ns | 0.75ns | 2.81ns | 0.00784 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 641ns | 0.765ns | 2.96ns | 0.0918 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 528ns | 0.624ns | 2.42ns | 0.00962 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 716ns | 0.525ns | 2.03ns | 0.00924 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 840ns | 2.78ns | 10.8ns | 0.105 | 0 | 0 | 658 B |
#6347 | StartFinishSpan |
net6.0 | 486ns | 0.473ns | 1.83ns | 0.00799 | 0 | 0 | 576 B |
#6347 | StartFinishSpan |
netcoreapp3.1 | 569ns | 1.05ns | 4.08ns | 0.0077 | 0 | 0 | 576 B |
#6347 | StartFinishSpan |
net472 | 717ns | 1.06ns | 4.09ns | 0.0917 | 0 | 0 | 578 B |
#6347 | StartFinishScope |
net6.0 | 484ns | 0.688ns | 2.67ns | 0.0098 | 0 | 0 | 696 B |
#6347 | StartFinishScope |
netcoreapp3.1 | 695ns | 1.28ns | 4.98ns | 0.0093 | 0 | 0 | 696 B |
#6347 | StartFinishScope |
net472 | 850ns | 1.02ns | 3.8ns | 0.105 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #6347
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑netcoreapp3.1
1.137
1,007.91
886.34
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑netcoreapp3.1 | 1.137 | 1,007.91 | 886.34 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 644ns | 0.827ns | 3.2ns | 0.0096 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 1.01μs | 1.57ns | 6.06ns | 0.00946 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.12μs | 2.33ns | 9.04ns | 0.104 | 0 | 0 | 658 B |
#6347 | RunOnMethodBegin |
net6.0 | 609ns | 1.02ns | 3.96ns | 0.00993 | 0 | 0 | 696 B |
#6347 | RunOnMethodBegin |
netcoreapp3.1 | 884ns | 1.63ns | 6.33ns | 0.0093 | 0 | 0 | 696 B |
#6347 | RunOnMethodBegin |
net472 | 1.11μs | 2.64ns | 10.2ns | 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 (6347) (11.103M) : 0, 11103107
master (10.984M) : 0, 10984077
benchmarks/2.9.0 (11.033M) : 0, 11032866
section Automatic
This PR (6347) (7.356M) : 0, 7356017
master (7.340M) : 0, 7339941
benchmarks/2.9.0 (7.786M) : 0, 7785853
section Trace stats
master (7.574M) : 0, 7574089
section Manual
master (11.230M) : 0, 11229595
section Manual + Automatic
This PR (6347) (6.726M) : 0, 6725597
master (6.646M) : 0, 6645602
section DD_TRACE_ENABLED=0
master (10.229M) : 0, 10228605
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6347) (9.390M) : 0, 9390293
master (9.657M) : 0, 9656803
benchmarks/2.9.0 (9.495M) : 0, 9494821
section Automatic
This PR (6347) (6.271M) : 0, 6271385
master (6.427M) : 0, 6427247
section Trace stats
master (6.789M) : 0, 6789090
section Manual
master (9.592M) : 0, 9591563
section Manual + Automatic
This PR (6347) (5.907M) : 0, 5906797
master (5.908M) : 0, 5907813
section DD_TRACE_ENABLED=0
master (8.975M) : 0, 8975433
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6347) (9.869M) : 0, 9868995
master (10.448M) : 0, 10448233
benchmarks/2.9.0 (10.020M) : 0, 10019592
section Automatic
This PR (6347) (6.224M) : crit ,0, 6223816
master (6.753M) : 0, 6752851
benchmarks/2.9.0 (7.255M) : 0, 7255257
section Trace stats
master (7.483M) : 0, 7482807
section Manual
master (10.487M) : 0, 10487393
section Manual + Automatic
This PR (6347) (5.704M) : crit ,0, 5703681
master (6.271M) : 0, 6270817
section DD_TRACE_ENABLED=0
master (9.551M) : 0, 9551351
|
d733f4f
to
6bf4411
Compare
9b185dd
to
cf4c31c
Compare
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.
Thanks! Can you please add an assertion in CreatedumpTests.ReportedStacktrace
(in the Datadog.Trace.Tools.dd_dotnet.ArtifactTests project) to verify that you're getting the right build-id?
👍 |
cf4c31c
to
157cbca
Compare
6b6e909
to
0968207
Compare
done in 0968207 |
0968207
to
dfc30a6
Compare
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.
LGTM, just one question
#endif | ||
|
||
validatedModules.Should().ContainMatch($@"*\{clrModuleName}"); | ||
if (!Utils.IsAlpine()) |
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.
Why !IsAlpine? 🤔
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.
On Alpine, I think the unwinding failed on that test and we did not get to frames from libcoreclr and other.
I added this to my note to check why it's failing and if it's already fixed upstream.
(I pushed fixes months ago)
Summary of changes
Use blazesym API to retrieve the ELF buildid.
Reason for change
Crashtracker on linux does not provide the buildid in the crash report. This is essential to allow symbolization in the backend.
Implementation details
blaze_read_elf_build_id
to get the ELF buildid.Test coverage
I ran the test locally and observe that the event is correctly sent to the telemetry backend and the resolution was correctly done.
Other details
Windows and Linux will use different version of libdatadog. This is fine since it's a temporary situation, and the crash report format has not changed.