-
Notifications
You must be signed in to change notification settings - Fork 132
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
Update CI Visibility metrics to latest requirements #5747
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 344111 Passed, 1807 Skipped, 14h 21m 34.91s 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 (5747) - mean (71ms) : 66, 76
. : milestone, 71,
master - mean (70ms) : 68, 72
. : milestone, 70,
section CallTarget+Inlining+NGEN
This PR (5747) - mean (1,021ms) : crit, 999, 1043
. : crit, milestone, 1021,
master - mean (912ms) : 891, 934
. : milestone, 912,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5747) - mean (110ms) : 107, 113
. : milestone, 110,
master - mean (109ms) : 107, 112
. : milestone, 109,
section CallTarget+Inlining+NGEN
This PR (5747) - mean (710ms) : crit, 684, 737
. : crit, milestone, 710,
master - mean (638ms) : 620, 656
. : milestone, 638,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5747) - mean (94ms) : 91, 97
. : milestone, 94,
master - mean (93ms) : 90, 97
. : milestone, 93,
section CallTarget+Inlining+NGEN
This PR (5747) - mean (665ms) : crit, 643, 686
. : crit, milestone, 665,
master - mean (590ms) : 573, 607
. : milestone, 590,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5747) - mean (197ms) : 191, 203
. : milestone, 197,
master - mean (190ms) : 187, 194
. : milestone, 190,
section CallTarget+Inlining+NGEN
This PR (5747) - mean (1,127ms) : crit, 1097, 1157
. : crit, milestone, 1127,
master - mean (1,017ms) : 983, 1051
. : milestone, 1017,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5747) - mean (282ms) : 274, 289
. : milestone, 282,
master - mean (276ms) : 271, 280
. : milestone, 276,
section CallTarget+Inlining+NGEN
This PR (5747) - mean (885ms) : crit, 858, 912
. : crit, milestone, 885,
master - mean (824ms) : 791, 857
. : milestone, 824,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5747) - mean (272ms) : 262, 281
. : milestone, 272,
master - mean (265ms) : 261, 269
. : milestone, 265,
section CallTarget+Inlining+NGEN
This PR (5747) - mean (883ms) : crit, 847, 919
. : crit, milestone, 883,
master - mean (809ms) : 778, 840
. : milestone, 809,
|
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 (5747) (11.827M) : 0, 11827219
master (11.716M) : 0, 11716370
benchmarks/2.9.0 (11.959M) : 0, 11959218
section Automatic
This PR (5747) (7.894M) : 0, 7894096
master (8.019M) : 0, 8019217
benchmarks/2.9.0 (8.424M) : 0, 8423539
section Trace stats
master (8.211M) : 0, 8210949
section Manual
This PR (5747) (10.076M) : 0, 10075867
master (10.165M) : 0, 10165125
section Manual + Automatic
This PR (5747) (7.441M) : 0, 7441488
master (7.491M) : 0, 7491415
section Version Conflict
master (6.704M) : 0, 6704048
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5747) (9.537M) : 0, 9537220
master (9.678M) : 0, 9677607
benchmarks/2.9.0 (9.647M) : 0, 9646678
section Automatic
This PR (5747) (6.609M) : 0, 6608894
master (6.494M) : 0, 6493916
section Trace stats
master (6.867M) : 0, 6866744
section Manual
This PR (5747) (8.389M) : 0, 8389401
master (8.353M) : 0, 8353119
section Manual + Automatic
This PR (5747) (6.126M) : 0, 6125628
master (6.149M) : 0, 6148874
section Version Conflict
master (5.635M) : 0, 5635422
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5747) (10.267M) : 0, 10266912
master (10.277M) : 0, 10276790
benchmarks/2.9.0 (10.154M) : 0, 10153990
section Automatic
This PR (5747) (7.224M) : 0, 7223824
master (7.193M) : 0, 7193100
benchmarks/2.9.0 (7.563M) : 0, 7562893
section Trace stats
master (7.542M) : 0, 7542132
section Manual
This PR (5747) (9.130M) : 0, 9129986
master (9.045M) : 0, 9045425
section Manual + Automatic
This PR (5747) (7.046M) : 0, 7046312
master (6.963M) : 0, 6963205
section Version Conflict
master (6.250M) : 0, 6250263
|
Benchmarks Report for tracer 🐌Benchmarks for #5747 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 - Slower
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Benchmarks.Trace.RedisBenchmark.SendReceive‑net6.0 | 1.147 | 1,251.28 | 1,435.07 |
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | SendReceive |
net6.0 | 1.25μs | 0.552ns | 2.14ns | 0.0157 | 0 | 0 | 1.14 KB |
master | SendReceive |
netcoreapp3.1 | 1.77μs | 1.19ns | 4.61ns | 0.0151 | 0 | 0 | 1.14 KB |
master | SendReceive |
net472 | 1.98μs | 1.27ns | 4.92ns | 0.183 | 0 | 0 | 1.16 KB |
#5747 | SendReceive |
net6.0 | 1.44μs | 0.804ns | 3.01ns | 0.0158 | 0 | 0 | 1.14 KB |
#5747 | SendReceive |
netcoreapp3.1 | 1.78μs | 1.49ns | 5.77ns | 0.0157 | 0 | 0 | 1.14 KB |
#5747 | SendReceive |
net472 | 2.04μs | 0.802ns | 3ns | 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.68μs | 0.699ns | 2.71ns | 0.0215 | 0 | 0 | 1.6 KB |
master | EnrichedLog |
netcoreapp3.1 | 3.87μs | 1.33ns | 4.97ns | 0.0215 | 0 | 0 | 1.65 KB |
master | EnrichedLog |
net472 | 4.41μs | 1.8ns | 6.75ns | 0.322 | 0 | 0 | 2.04 KB |
#5747 | EnrichedLog |
net6.0 | 2.67μs | 1.02ns | 3.94ns | 0.0226 | 0 | 0 | 1.6 KB |
#5747 | EnrichedLog |
netcoreapp3.1 | 3.95μs | 1.39ns | 5.2ns | 0.0219 | 0 | 0 | 1.65 KB |
#5747 | EnrichedLog |
net472 | 4.34μs | 1.51ns | 5.85ns | 0.322 | 0 | 0 | 2.04 KB |
Benchmarks.Trace.SpanBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #5747
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑netcoreapp3.1
1.159
677.74
785.78
Faster 🎉 in #5747
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0
1.186
557.63
470.25
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 422ns | 0.142ns | 0.552ns | 0.00815 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 551ns | 0.534ns | 1.92ns | 0.008 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 660ns | 0.365ns | 1.41ns | 0.0916 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 557ns | 0.354ns | 1.37ns | 0.00966 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 678ns | 0.22ns | 0.794ns | 0.00934 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 833ns | 0.142ns | 0.514ns | 0.104 | 0 | 0 | 658 B |
#5747 | StartFinishSpan |
net6.0 | 406ns | 0.111ns | 0.43ns | 0.00816 | 0 | 0 | 576 B |
#5747 | StartFinishSpan |
netcoreapp3.1 | 613ns | 0.237ns | 0.886ns | 0.00768 | 0 | 0 | 576 B |
#5747 | StartFinishSpan |
net472 | 696ns | 0.607ns | 2.35ns | 0.0916 | 0 | 0 | 578 B |
#5747 | StartFinishScope |
net6.0 | 470ns | 0.11ns | 0.427ns | 0.00968 | 0 | 0 | 696 B |
#5747 | StartFinishScope |
netcoreapp3.1 | 785ns | 0.4ns | 1.55ns | 0.00945 | 0 | 0 | 696 B |
#5747 | StartFinishScope |
net472 | 903ns | 0.594ns | 2.06ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #5747
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0
1.143
647.45
739.77
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 647ns | 0.27ns | 1.04ns | 0.00973 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 906ns | 0.54ns | 2.09ns | 0.00952 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.11μs | 0.516ns | 1.93ns | 0.104 | 0 | 0 | 658 B |
#5747 | RunOnMethodBegin |
net6.0 | 740ns | 0.258ns | 0.999ns | 0.00963 | 0 | 0 | 696 B |
#5747 | RunOnMethodBegin |
netcoreapp3.1 | 947ns | 0.319ns | 1.19ns | 0.0091 | 0 | 0 | 696 B |
#5747 | RunOnMethodBegin |
net472 | 1.11μs | 0.371ns | 1.44ns | 0.104 | 0 | 0 | 658 B |
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 could not find the test_session
metric and the exit_code:missing
tag for the Git command. Are they outside the scope of this PR?
...rators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountCIVisibility.g.cs
Outdated
Show resolved
Hide resolved
The |
596eb13
to
c04c62c
Compare
## Summary of changes - The `IApiResponse.ContentEncoding` property was confusing and incorrectly implemented - Refactored as `GetCharsetEncoding()` - Added `GetContentEncodingType` ## Reason for change The `ContentEncoding` property was meant to return [the `charset` associated with a `Content-type`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type#charset) i.e. the `charset=utf-8` part of `text/plain;charset=utf-8`, converted into a .NET `Encoding` object. However, there's also [a `ContentEncoding` _header_](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding) which defines whether the content is encoded with a compression algorithm, e.g. gzip/brotli etc. This PR aims to fix the bug, clear up the confusion by renaming, add some unit tests, and make the behaviour consistent across our various `IApiResponse` implementations. ## Implementation details - Expose `ContentTypeHeader` and `ContentEncodingHeader` as values on the `IApiResponse`. - This is necessary because you _can't_ necessarily get these values directly from `GetHeaders` in some cases (e.g. `HttpClient`) - Rename `ContentEncoding` to `GetCharsetEncoding()` - Made it a method so we don't bother processing the header until we need it. In most cases we never use it (and use it at most once) - Re-used the optimized implementation we were using in `HttpMessage` where possible. Tweaked it slightly to always return UTF-8 by default (as our calling code wasn't resistant to it anyway and would have thrown) - Made it fallback to "any" charset, as was previously _always_ happening for `HttpClientResponse` - Add `GetContentEncodingType()` which returns an enum of compression values - We don't currently use this, but I could do with it in #5747 ## Test coverage Added unit tests for the parsing logic used for decoding the `charset` and the content-encoding ## Other details I initially based this on #5658 but ultimately changed a lot (and we still don't need that mime-type handling yet) <!--⚠️ Note: where possible, please obtain 2 approvals prior to merging. Unless CODEOWNERS specifies otherwise, for external teams it is typically best to have one review from a team member, and one review from apm-dotnet. Trivial changes do not require 2 reviews. -->
c04c62c
to
7e0dd58
Compare
7e0dd58
to
b4cc925
Compare
Summary of changes
Updates the common_metrics.json to the latest, and fixes the issues that arise
Reason for change
We have tests to make sure we only send valid metrics. The intake metrics.json has changed and our tests were failing with the latest.
Implementation details
src_library
has been added to many metrics. We can safely ignore this one, as it's optional, and added by the rust library/sidecartest_session
metric proposed in the RFC. I'll leave that to @tonyredondo once he's back, as it's not blocking usTest coverage
Unit tests were updated and now pass
Added a "smoke" integration tests for the test_cycle "rq_compressed" tag.
Other details