[CI Visibility] Add vcpu_count tag to tslv events#6055
Conversation
Snapshots difference summaryThe following differences have been observed in committed snapshots. It is meant to help the reviewer. 1521 occurrences of : + _dd.host.vcpu_count: 2.0,
|
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 (6055) (11.059M) : 0, 11059045
master (11.059M) : 0, 11058767
benchmarks/2.9.0 (11.081M) : 0, 11080577
section Automatic
This PR (6055) (7.383M) : 0, 7382602
master (7.245M) : 0, 7244717
benchmarks/2.9.0 (7.732M) : 0, 7732233
section Trace stats
master (7.582M) : 0, 7581684
section Manual
master (11.225M) : 0, 11225037
section Manual + Automatic
This PR (6055) (6.755M) : 0, 6755303
master (6.771M) : 0, 6770863
section DD_TRACE_ENABLED=0
master (10.172M) : 0, 10172171
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6055) (9.676M) : 0, 9675884
master (9.615M) : 0, 9614758
benchmarks/2.9.0 (9.798M) : 0, 9798067
section Automatic
This PR (6055) (6.654M) : 0, 6654189
master (6.423M) : 0, 6422979
section Trace stats
master (6.857M) : 0, 6856937
section Manual
master (9.533M) : 0, 9533237
section Manual + Automatic
This PR (6055) (6.052M) : 0, 6052297
master (6.169M) : 0, 6169272
section DD_TRACE_ENABLED=0
master (9.020M) : 0, 9019554
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6055) (10.172M) : 0, 10172399
master (10.029M) : 0, 10028834
benchmarks/2.9.0 (10.067M) : 0, 10067315
section Automatic
This PR (6055) (6.564M) : 0, 6563586
master (6.718M) : 0, 6718458
benchmarks/2.9.0 (7.552M) : 0, 7552193
section Trace stats
master (7.357M) : 0, 7356722
section Manual
master (9.593M) : 0, 9592818
section Manual + Automatic
This PR (6055) (6.019M) : 0, 6019243
master (5.832M) : 0, 5832157
section DD_TRACE_ENABLED=0
master (9.017M) : 0, 9016737
|
Benchmarks Report for tracer 🐌Benchmarks for #6055 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.126 | 395.78 | 445.70 |
| Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 | 1.190 | 569.16 | 478.09 | |
| Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑netcoreapp3.1 | 1.155 | 662.43 | 573.58 |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StartFinishSpan |
net6.0 | 396ns | 0.312ns | 1.21ns | 0.00801 | 0 | 0 | 576 B |
| master | StartFinishSpan |
netcoreapp3.1 | 662ns | 0.666ns | 2.58ns | 0.00792 | 0 | 0 | 576 B |
| master | StartFinishSpan |
net472 | 624ns | 0.728ns | 2.82ns | 0.0918 | 0 | 0 | 578 B |
| master | StartFinishScope |
net6.0 | 569ns | 0.591ns | 2.29ns | 0.00969 | 0 | 0 | 696 B |
| master | StartFinishScope |
netcoreapp3.1 | 684ns | 0.602ns | 2.33ns | 0.00936 | 0 | 0 | 696 B |
| master | StartFinishScope |
net472 | 811ns | 0.856ns | 3.31ns | 0.104 | 0 | 0 | 658 B |
| #6055 | StartFinishSpan |
net6.0 | 445ns | 0.204ns | 0.792ns | 0.00803 | 0 | 0 | 576 B |
| #6055 | StartFinishSpan |
netcoreapp3.1 | 574ns | 0.582ns | 2.25ns | 0.00774 | 0 | 0 | 576 B |
| #6055 | StartFinishSpan |
net472 | 646ns | 0.235ns | 0.911ns | 0.0916 | 0 | 0 | 578 B |
| #6055 | StartFinishScope |
net6.0 | 479ns | 0.686ns | 2.66ns | 0.00976 | 0 | 0 | 696 B |
| #6055 | StartFinishScope |
netcoreapp3.1 | 703ns | 3.38ns | 13.9ns | 0.00953 | 0 | 0 | 696 B |
| #6055 | StartFinishScope |
net472 | 821ns | 1.3ns | 5.04ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #6055
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0
1.163
753.00
647.28
| Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0 | 1.163 | 753.00 | 647.28 |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | RunOnMethodBegin |
net6.0 | 753ns | 0.555ns | 2.15ns | 0.00982 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
netcoreapp3.1 | 908ns | 0.796ns | 3.08ns | 0.0095 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
net472 | 1.07μs | 0.911ns | 3.53ns | 0.104 | 0 | 0 | 658 B |
| #6055 | RunOnMethodBegin |
net6.0 | 647ns | 0.524ns | 2.03ns | 0.00979 | 0 | 0 | 696 B |
| #6055 | RunOnMethodBegin |
netcoreapp3.1 | 961ns | 0.929ns | 3.6ns | 0.00958 | 0 | 0 | 696 B |
| #6055 | RunOnMethodBegin |
net472 | 1.11μs | 1.12ns | 4.33ns | 0.104 | 0 | 0 | 658 B |
| AssertTargetSpanExists(targetTest, CommonTags.OSPlatform); | ||
| AssertTargetSpanEqual(targetTest, CommonTags.OSVersion, CIVisibility.GetOperatingSystemVersion()); | ||
| targetTest.Metrics[CommonTags.LogicalCpuCount].Should().Be(Environment.ProcessorCount); | ||
| targetTest.Metrics.Remove(CommonTags.LogicalCpuCount); |
There was a problem hiding this comment.
It seems this .Remove is done in most of these tests is the targetTest reused? (just curious)
There was a problem hiding this comment.
is not reused nope. the test removes all the expected tags and then we assert that we no longer has any other tag in the test event.
Summary of changes
This PR adds the new
_dd.host.vcpu_counttag to the test suite level visibility events in CI Visibility mode.Reason for change
https://docs.google.com/document/d/1NhH9lg1MujAfeeSFQJY0Y-y6kxUDzqP0b7WtMA2FoxM/edit#heading=h.80nefriqhjyl
Test coverage
A new validation on the tests and update of the snapshots.
Other details