-
Notifications
You must be signed in to change notification settings - Fork 147
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] Display a nicer error message when the glibc version is too old #6402
Conversation
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.
I wonder if it's worth extracting the GLIBC_2.28
part to display to the user 🤔 Probably not worth the hassle I guess, especially as this only happens during a crash anyway
Datadog ReportBranch report: ✅ 0 Failed, 448367 Passed, 2726 Skipped, 19h 35m 47.07s Total Time ⌛ Performance Regressions vs Default Branch (1)
|
Yeah, I don't think the users actually care about this (at least not until crashtracking becomes a public feature), and for us the information is mostly useless (it would be useful if it showed the actual glibc instead of the required one) |
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 (6402) - mean (69ms) : 65, 73
. : milestone, 69,
master - mean (69ms) : 66, 73
. : milestone, 69,
section CallTarget+Inlining+NGEN
This PR (6402) - mean (978ms) : 958, 997
. : milestone, 978,
master - mean (975ms) : 946, 1004
. : milestone, 975,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6402) - mean (108ms) : 106, 110
. : milestone, 108,
master - mean (108ms) : 105, 110
. : milestone, 108,
section CallTarget+Inlining+NGEN
This PR (6402) - mean (677ms) : 666, 688
. : milestone, 677,
master - mean (680ms) : 667, 693
. : milestone, 680,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6402) - mean (91ms) : 89, 93
. : milestone, 91,
master - mean (91ms) : 90, 93
. : milestone, 91,
section CallTarget+Inlining+NGEN
This PR (6402) - mean (631ms) : 616, 646
. : milestone, 631,
master - mean (632ms) : 615, 649
. : milestone, 632,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6402) - mean (190ms) : 186, 194
. : milestone, 190,
master - mean (190ms) : 186, 194
. : milestone, 190,
section CallTarget+Inlining+NGEN
This PR (6402) - mean (1,096ms) : 1061, 1131
. : milestone, 1096,
master - mean (1,091ms) : 1060, 1122
. : milestone, 1091,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6402) - mean (277ms) : 271, 282
. : milestone, 277,
master - mean (277ms) : 273, 281
. : milestone, 277,
section CallTarget+Inlining+NGEN
This PR (6402) - mean (874ms) : 840, 909
. : milestone, 874,
master - mean (867ms) : 844, 890
. : milestone, 867,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6402) - mean (266ms) : 260, 272
. : milestone, 266,
master - mean (267ms) : 262, 271
. : milestone, 267,
section CallTarget+Inlining+NGEN
This PR (6402) - mean (854ms) : 817, 891
. : milestone, 854,
master - mean (849ms) : 822, 876
. : milestone, 849,
|
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 (6402) (11.245M) : 0, 11245248
master (11.222M) : 0, 11221800
benchmarks/2.9.0 (11.033M) : 0, 11032866
section Automatic
This PR (6402) (7.308M) : 0, 7307770
master (7.306M) : 0, 7305807
benchmarks/2.9.0 (7.786M) : 0, 7785853
section Trace stats
master (7.621M) : 0, 7620774
section Manual
master (11.257M) : 0, 11257171
section Manual + Automatic
This PR (6402) (6.790M) : 0, 6789501
master (6.783M) : 0, 6782564
section DD_TRACE_ENABLED=0
master (10.363M) : 0, 10362594
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6402) (9.639M) : 0, 9638553
master (9.664M) : 0, 9664098
benchmarks/2.9.0 (9.495M) : 0, 9494821
section Automatic
This PR (6402) (6.449M) : 0, 6449393
master (6.272M) : 0, 6271501
section Trace stats
master (6.601M) : 0, 6601213
section Manual
master (9.639M) : 0, 9638684
section Manual + Automatic
This PR (6402) (5.967M) : 0, 5966744
master (5.996M) : 0, 5996086
section DD_TRACE_ENABLED=0
master (8.743M) : 0, 8742779
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6402) (9.934M) : 0, 9934079
master (10.051M) : 0, 10050841
benchmarks/2.9.0 (10.020M) : 0, 10019592
section Automatic
This PR (6402) (6.370M) : 0, 6370276
master (6.245M) : 0, 6245212
benchmarks/2.9.0 (7.255M) : 0, 7255257
section Trace stats
master (7.094M) : 0, 7093813
section Manual
master (9.987M) : 0, 9987436
section Manual + Automatic
This PR (6402) (5.711M) : 0, 5710616
master (5.990M) : 0, 5990374
section DD_TRACE_ENABLED=0
master (9.233M) : 0, 9232530
|
Benchmarks Report for tracer 🐌Benchmarks for #6402 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‑net6.0 | 1.228 | 394.77 | 484.64 |
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 | 1.314 | 636.90 | 484.60 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 394ns | 0.665ns | 2.58ns | 0.00808 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 607ns | 1.15ns | 4.44ns | 0.00778 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 629ns | 1.58ns | 6.1ns | 0.0916 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 636ns | 1.09ns | 4.24ns | 0.00957 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 689ns | 1.02ns | 3.97ns | 0.00941 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 901ns | 3.72ns | 14.4ns | 0.104 | 0 | 0 | 658 B |
#6402 | StartFinishSpan |
net6.0 | 484ns | 0.902ns | 3.49ns | 0.00799 | 0 | 0 | 576 B |
#6402 | StartFinishSpan |
netcoreapp3.1 | 589ns | 0.854ns | 3.31ns | 0.00773 | 0 | 0 | 576 B |
#6402 | StartFinishSpan |
net472 | 621ns | 1.34ns | 5.2ns | 0.0915 | 0 | 0 | 578 B |
#6402 | StartFinishScope |
net6.0 | 485ns | 0.885ns | 3.43ns | 0.00977 | 0 | 0 | 696 B |
#6402 | StartFinishScope |
netcoreapp3.1 | 666ns | 1.08ns | 4.18ns | 0.00958 | 0 | 0 | 696 B |
#6402 | StartFinishScope |
net472 | 955ns | 1.32ns | 5.12ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #6402
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑netcoreapp3.1
1.120
936.28
835.83
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑netcoreapp3.1 | 1.120 | 936.28 | 835.83 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 648ns | 1.7ns | 6.6ns | 0.00959 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 946ns | 3.99ns | 15.4ns | 0.00904 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.12μs | 1.06ns | 3.95ns | 0.104 | 0 | 0 | 658 B |
#6402 | RunOnMethodBegin |
net6.0 | 705ns | 1.03ns | 3.98ns | 0.00978 | 0 | 0 | 696 B |
#6402 | RunOnMethodBegin |
netcoreapp3.1 | 837ns | 1.83ns | 7.11ns | 0.00957 | 0 | 0 | 696 B |
#6402 | RunOnMethodBegin |
net472 | 1.18μs | 2.1ns | 8.12ns | 0.104 | 0 | 0 | 658 B |
…is too old (#6402) ## Summary of changes Change the error message when loading the profiler fails because of the glibc version. Before: ``` Datadog - Some errors occurred while analyzing the crash: - Unexpected exception: System.DllNotFoundException: Unable to load shared library '/opt/datadog-packages/datadog-apm-library-dotnet/3.6.1/linux-arm64/Datadog.Prof iler.Native.so' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /opt/datadog-packages/datadog-apm-library-dotnet/3.6.1/linux-arm64/Datadog.Profi ler.Native.so) at System.Runtime.InteropServices.NativeLibrary.LoadLibErrorTracker.Throw(String) + 0x50 at System.Runtime.InteropServices.NativeLibrary.LoadFromPath(String, Boolean) + 0x4c at Datadog.Trace.Tools.dd_dotnet.CreatedumpCommand.GenerateCrashReport(Int32, Nullable`1, Nullable`1) + 0x110 at Datadog.Trace.Tools.dd_dotnet.CreatedumpCommand.Execute(InvocationContext context) + 0x94 ``` After: ``` Datadog - Some errors occurred while analyzing the crash: - The GLIBC version is too old ``` ## Reason for change The error is "expected" in some environment, so it's better to make the message less scary.
Summary of changes
Change the error message when loading the profiler fails because of the glibc version.
Before:
After:
Reason for change
The error is "expected" in some environment, so it's better to make the message less scary.