-
Notifications
You must be signed in to change notification settings - Fork 150
Add process tags to telemetry #7780
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
base: master
Are you sure you want to change the base?
Conversation
andrewlock
left a comment
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 think that has the same problem as #7775 - i.e. it will immediately cause us to grab the process tags, and these will "lock in" the wrong values in IIS
less so though, no ? Because it'd only grab them when the first telemetry payload is sent, which is not right as the app/tracer starts |
No, it's right as the app/tracer starts 😅 i.e. the |
ah yes, so we are even more f*cked with this, which is exactly what I said in the other PR, every new place where I add them makes the problem worse ^^ |
Execution-Time Benchmarks Report ⏱️Execution-time results for samples comparing This PR (7780) and master. ✅ No regressions detected - check the details below Full Metrics ComparisonFakeDbCommand
HttpMessageHandler
Comparison explanationExecution-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 highlighted 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). Duration chartsFakeDbCommand (.NET Framework 4.8)gantt
title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7780) - mean (68ms) : 67, 70
master - mean (68ms) : 67, 70
section Bailout
This PR (7780) - mean (72ms) : 70, 73
master - mean (72ms) : 71, 73
section CallTarget+Inlining+NGEN
This PR (7780) - mean (1,046ms) : 1003, 1089
master - mean (1,047ms) : 1010, 1083
FakeDbCommand (.NET Core 3.1)gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7780) - mean (106ms) : 103, 110
master - mean (107ms) : 104, 109
section Bailout
This PR (7780) - mean (107ms) : 105, 108
master - mean (107ms) : 106, 109
section CallTarget+Inlining+NGEN
This PR (7780) - mean (747ms) : 722, 771
master - mean (759ms) : 727, 790
FakeDbCommand (.NET 6)gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7780) - mean (94ms) : 92, 95
master - mean (94ms) : 91, 97
section Bailout
This PR (7780) - mean (94ms) : 93, 95
master - mean (95ms) : 94, 96
section CallTarget+Inlining+NGEN
This PR (7780) - mean (716ms) : 671, 762
master - mean (711ms) : 674, 748
FakeDbCommand (.NET 8)gantt
title Execution time (ms) FakeDbCommand (.NET 8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7780) - mean (92ms) : 90, 94
master - mean (93ms) : 91, 95
section Bailout
This PR (7780) - mean (93ms) : 91, 94
master - mean (93ms) : 92, 95
section CallTarget+Inlining+NGEN
This PR (7780) - mean (662ms) : 645, 678
master - mean (664ms) : 649, 678
HttpMessageHandler (.NET Framework 4.8)gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7780) - mean (192ms) : 188, 196
master - mean (193ms) : 189, 197
section Bailout
This PR (7780) - mean (196ms) : 193, 199
master - mean (196ms) : 193, 198
section CallTarget+Inlining+NGEN
This PR (7780) - mean (1,162ms) : 1099, 1225
master - mean (1,172ms) : 1094, 1250
HttpMessageHandler (.NET Core 3.1)gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7780) - mean (277ms) : 272, 281
master - mean (278ms) : 272, 283
section Bailout
This PR (7780) - mean (277ms) : 273, 282
master - mean (278ms) : 272, 284
section CallTarget+Inlining+NGEN
This PR (7780) - mean (941ms) : 908, 974
master - mean (954ms) : 915, 992
HttpMessageHandler (.NET 6)gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7780) - mean (269ms) : 265, 273
master - mean (270ms) : 265, 276
section Bailout
This PR (7780) - mean (268ms) : 266, 271
master - mean (270ms) : 266, 273
section CallTarget+Inlining+NGEN
This PR (7780) - mean (928ms) : 869, 987
master - mean (933ms) : 885, 980
HttpMessageHandler (.NET 8)gantt
title Execution time (ms) HttpMessageHandler (.NET 8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7780) - mean (269ms) : 263, 275
master - mean (268ms) : 264, 273
section Bailout
This PR (7780) - mean (271ms) : 265, 278
master - mean (268ms) : 265, 272
section CallTarget+Inlining+NGEN
This PR (7780) - mean (849ms) : 831, 866
master - mean (858ms) : 839, 876
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This comment has been minimized.
This comment has been minimized.
BenchmarksBenchmarks Report for benchmark platform 🐌Benchmarks for #7780 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 ✔️ More allocations
|
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.ActivityBenchmark.StartStopWithChild‑netcoreapp3.1 | 5.69 KB | 5.72 KB | 29 B | 0.51% |
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.ActivityBenchmark.StartStopWithChild‑net472 | 6.09 KB | 6 KB | -86 B | -1.41% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StartStopWithChild |
net6.0 | 10.4μs | 58.2ns | 368ns | 0 | 0 | 0 | 5.5 KB |
| master | StartStopWithChild |
netcoreapp3.1 | 15.2μs | 55.5ns | 215ns | 0 | 0 | 0 | 5.69 KB |
| master | StartStopWithChild |
net472 | 21.6μs | 112ns | 595ns | 0.885 | 0.221 | 0 | 6.09 KB |
| #7780 | StartStopWithChild |
net6.0 | 10.6μs | 41.5ns | 155ns | 0 | 0 | 0 | 5.5 KB |
| #7780 | StartStopWithChild |
netcoreapp3.1 | 13.9μs | 67.4ns | 286ns | 0 | 0 | 0 | 5.72 KB |
| #7780 | StartStopWithChild |
net472 | 22.4μs | 122ns | 712ns | 1.06 | 0.424 | 0.106 | 6 KB |
Benchmarks.Trace.AgentWriterBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | WriteAndFlushEnrichedTraces |
net6.0 | 945μs | 73.5ns | 255ns | 0 | 0 | 0 | 2.71 KB |
| master | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 1.03ms | 172ns | 643ns | 0 | 0 | 0 | 2.7 KB |
| master | WriteAndFlushEnrichedTraces |
net472 | 1.22ms | 68.2ns | 255ns | 0 | 0 | 0 | 3.31 KB |
| #7780 | WriteAndFlushEnrichedTraces |
net6.0 | 919μs | 165ns | 618ns | 0 | 0 | 0 | 2.71 KB |
| #7780 | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 1.05ms | 443ns | 1.72μs | 0 | 0 | 0 | 2.7 KB |
| #7780 | WriteAndFlushEnrichedTraces |
net472 | 1.19ms | 209ns | 811ns | 0 | 0 | 0 | 3.31 KB |
Benchmarks.Trace.Asm.AppSecBodyBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | AllCycleSimpleBody |
net6.0 | 1.09μs | 5.52ns | 25.3ns | 0 | 0 | 0 | 1.22 KB |
| master | AllCycleSimpleBody |
netcoreapp3.1 | 1.5μs | 8.34ns | 46.4ns | 0 | 0 | 0 | 1.2 KB |
| master | AllCycleSimpleBody |
net472 | 1.06μs | 0.289ns | 1.04ns | 0.191 | 0 | 0 | 1.23 KB |
| master | AllCycleMoreComplexBody |
net6.0 | 6.99μs | 36.5ns | 190ns | 0 | 0 | 0 | 4.72 KB |
| master | AllCycleMoreComplexBody |
netcoreapp3.1 | 10.1μs | 18.6ns | 72.2ns | 0 | 0 | 0 | 4.62 KB |
| master | AllCycleMoreComplexBody |
net472 | 7.59μs | 2.32ns | 8.98ns | 0.722 | 0 | 0 | 4.74 KB |
| master | ObjectExtractorSimpleBody |
net6.0 | 316ns | 0.143ns | 0.553ns | 0 | 0 | 0 | 280 B |
| master | ObjectExtractorSimpleBody |
netcoreapp3.1 | 399ns | 1.91ns | 7.88ns | 0 | 0 | 0 | 272 B |
| master | ObjectExtractorSimpleBody |
net472 | 316ns | 1.5ns | 6.02ns | 0.0444 | 0 | 0 | 281 B |
| master | ObjectExtractorMoreComplexBody |
net6.0 | 6.36μs | 30.4ns | 118ns | 0 | 0 | 0 | 3.78 KB |
| master | ObjectExtractorMoreComplexBody |
netcoreapp3.1 | 7.91μs | 38ns | 152ns | 0 | 0 | 0 | 3.69 KB |
| master | ObjectExtractorMoreComplexBody |
net472 | 6.71μs | 4.63ns | 17.9ns | 0.572 | 0 | 0 | 3.8 KB |
| #7780 | AllCycleSimpleBody |
net6.0 | 1.08μs | 5.57ns | 26.1ns | 0 | 0 | 0 | 1.22 KB |
| #7780 | AllCycleSimpleBody |
netcoreapp3.1 | 1.44μs | 7.25ns | 32.4ns | 0 | 0 | 0 | 1.2 KB |
| #7780 | AllCycleSimpleBody |
net472 | 1.05μs | 3.01ns | 11.7ns | 0.193 | 0 | 0 | 1.23 KB |
| #7780 | AllCycleMoreComplexBody |
net6.0 | 7.14μs | 32.9ns | 127ns | 0 | 0 | 0 | 4.72 KB |
| #7780 | AllCycleMoreComplexBody |
netcoreapp3.1 | 9.25μs | 43.8ns | 181ns | 0 | 0 | 0 | 4.62 KB |
| #7780 | AllCycleMoreComplexBody |
net472 | 7.79μs | 5.53ns | 21.4ns | 0.738 | 0 | 0 | 4.74 KB |
| #7780 | ObjectExtractorSimpleBody |
net6.0 | 319ns | 1.68ns | 8.41ns | 0 | 0 | 0 | 280 B |
| #7780 | ObjectExtractorSimpleBody |
netcoreapp3.1 | 397ns | 2.15ns | 12ns | 0 | 0 | 0 | 272 B |
| #7780 | ObjectExtractorSimpleBody |
net472 | 309ns | 0.255ns | 0.987ns | 0.0431 | 0 | 0 | 281 B |
| #7780 | ObjectExtractorMoreComplexBody |
net6.0 | 6.32μs | 25.6ns | 99.1ns | 0 | 0 | 0 | 3.78 KB |
| #7780 | ObjectExtractorMoreComplexBody |
netcoreapp3.1 | 7.92μs | 7.93ns | 30.7ns | 0 | 0 | 0 | 3.69 KB |
| #7780 | ObjectExtractorMoreComplexBody |
net472 | 6.89μs | 9.15ns | 35.4ns | 0.583 | 0 | 0 | 3.8 KB |
Benchmarks.Trace.Asm.AppSecEncoderBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | EncodeArgs |
net6.0 | 77.3μs | 29.5ns | 110ns | 0 | 0 | 0 | 32.4 KB |
| master | EncodeArgs |
netcoreapp3.1 | 97.5μs | 222ns | 859ns | 0 | 0 | 0 | 32.4 KB |
| master | EncodeArgs |
net472 | 112μs | 6.17ns | 21.4ns | 5.04 | 0 | 0 | 32.51 KB |
| master | EncodeLegacyArgs |
net6.0 | 141μs | 369ns | 1.43μs | 0 | 0 | 0 | 2.15 KB |
| master | EncodeLegacyArgs |
netcoreapp3.1 | 201μs | 254ns | 983ns | 0 | 0 | 0 | 2.14 KB |
| master | EncodeLegacyArgs |
net472 | 263μs | 17.6ns | 65.7ns | 0 | 0 | 0 | 2.16 KB |
| #7780 | EncodeArgs |
net6.0 | 76.7μs | 361ns | 1.45μs | 0 | 0 | 0 | 32.4 KB |
| #7780 | EncodeArgs |
netcoreapp3.1 | 97.2μs | 33.9ns | 127ns | 0 | 0 | 0 | 32.4 KB |
| #7780 | EncodeArgs |
net472 | 110μs | 49.6ns | 192ns | 4.93 | 0 | 0 | 32.5 KB |
| #7780 | EncodeLegacyArgs |
net6.0 | 146μs | 17.9ns | 67.1ns | 0 | 0 | 0 | 2.14 KB |
| #7780 | EncodeLegacyArgs |
netcoreapp3.1 | 199μs | 262ns | 909ns | 0 | 0 | 0 | 2.15 KB |
| #7780 | EncodeLegacyArgs |
net472 | 266μs | 137ns | 531ns | 0 | 0 | 0 | 2.16 KB |
Benchmarks.Trace.Asm.AppSecWafBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #7780
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark‑netcoreapp3.1
2.110
408,813.12
862,794.90
| Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark‑netcoreapp3.1 | 2.110 | 408,813.12 | 862,794.90 |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | RunWafRealisticBenchmark |
net6.0 | 392μs | 134ns | 521ns | 0 | 0 | 0 | 4.56 KB |
| master | RunWafRealisticBenchmark |
netcoreapp3.1 | 409μs | 127ns | 458ns | 0 | 0 | 0 | 4.48 KB |
| master | RunWafRealisticBenchmark |
net472 | 432μs | 51.1ns | 184ns | 0 | 0 | 0 | 4.66 KB |
| master | RunWafRealisticBenchmarkWithAttack |
net6.0 | 285μs | 19.6ns | 70.6ns | 0 | 0 | 0 | 2.24 KB |
| master | RunWafRealisticBenchmarkWithAttack |
netcoreapp3.1 | 683μs | 11.9μs | 119μs | 0 | 0 | 0 | 2.22 KB |
| master | RunWafRealisticBenchmarkWithAttack |
net472 | 310μs | 29ns | 112ns | 0 | 0 | 0 | 2.29 KB |
| #7780 | RunWafRealisticBenchmark |
net6.0 | 398μs | 148ns | 572ns | 0 | 0 | 0 | 4.55 KB |
| #7780 | RunWafRealisticBenchmark |
netcoreapp3.1 | 855μs | 5.64μs | 54.1μs | 0 | 0 | 0 | 4.48 KB |
| #7780 | RunWafRealisticBenchmark |
net472 | 432μs | 69.8ns | 270ns | 0 | 0 | 0 | 4.66 KB |
| #7780 | RunWafRealisticBenchmarkWithAttack |
net6.0 | 286μs | 55.2ns | 207ns | 0 | 0 | 0 | 2.24 KB |
| #7780 | RunWafRealisticBenchmarkWithAttack |
netcoreapp3.1 | 709μs | 3.33μs | 13.7μs | 0 | 0 | 0 | 2.22 KB |
| #7780 | RunWafRealisticBenchmarkWithAttack |
net472 | 313μs | 32.5ns | 122ns | 0 | 0 | 0 | 2.29 KB |
Benchmarks.Trace.AspNetCoreBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | SendRequest |
net6.0 | 61.8μs | 57.4ns | 207ns | 0 | 0 | 0 | 14.52 KB |
| master | SendRequest |
netcoreapp3.1 | 71.3μs | 177ns | 640ns | 0 | 0 | 0 | 17.42 KB |
| master | SendRequest |
net472 | 0.00521ns | 0.00213ns | 0.00823ns | 0 | 0 | 0 | 0 b |
| #7780 | SendRequest |
net6.0 | 61.3μs | 58.3ns | 226ns | 0 | 0 | 0 | 14.52 KB |
| #7780 | SendRequest |
netcoreapp3.1 | 71.5μs | 132ns | 477ns | 0 | 0 | 0 | 17.42 KB |
| #7780 | SendRequest |
net472 | 0.00638ns | 0.0017ns | 0.00657ns | 0 | 0 | 0 | 0 b |
Benchmarks.Trace.CharSliceBenchmark - Same speed ✔️ More allocations ⚠️
More allocations ⚠️ in #7780
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑net6.0
3 B
5 B
2 B
66.67%
Fewer allocations 🎉 in #7780
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑net472
48 B
47 B
-1 B
-2.08%
Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice‑net6.0
4 B
2 B
-2 B
-50.00%
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑net6.0 | 3 B | 5 B | 2 B | 66.67% |
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑net472 | 48 B | 47 B | -1 B | -2.08% |
| Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice‑net6.0 | 4 B | 2 B | -2 B | -50.00% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | OriginalCharSlice |
net6.0 | 1.94ms | 476ns | 1.72μs | 0 | 0 | 0 | 640.01 KB |
| master | OriginalCharSlice |
netcoreapp3.1 | 2.07ms | 2.89μs | 10μs | 0 | 0 | 0 | 640 KB |
| master | OriginalCharSlice |
net472 | 2.62ms | 187ns | 674ns | 100 | 0 | 0 | 641.95 KB |
| master | OptimizedCharSlice |
net6.0 | 1.4ms | 119ns | 445ns | 0 | 0 | 0 | 4 B |
| master | OptimizedCharSlice |
netcoreapp3.1 | 1.77ms | 340ns | 1.32μs | 0 | 0 | 0 | 1 B |
| master | OptimizedCharSlice |
net472 | 1.9ms | 290ns | 1.12μs | 0 | 0 | 0 | 73 B |
| master | OptimizedCharSliceWithPool |
net6.0 | 931μs | 39.9ns | 155ns | 0 | 0 | 0 | 3 B |
| master | OptimizedCharSliceWithPool |
netcoreapp3.1 | 800μs | 99.7ns | 386ns | 0 | 0 | 0 | 0 b |
| master | OptimizedCharSliceWithPool |
net472 | 1.16ms | 107ns | 416ns | 0 | 0 | 0 | 48 B |
| #7780 | OriginalCharSlice |
net6.0 | 1.95ms | 772ns | 2.89μs | 0 | 0 | 0 | 640.01 KB |
| #7780 | OriginalCharSlice |
netcoreapp3.1 | 2.17ms | 7.35μs | 27.5μs | 0 | 0 | 0 | 640 KB |
| #7780 | OriginalCharSlice |
net472 | 2.64ms | 283ns | 1.02μs | 100 | 0 | 0 | 641.95 KB |
| #7780 | OptimizedCharSlice |
net6.0 | 1.34ms | 207ns | 801ns | 0 | 0 | 0 | 2 B |
| #7780 | OptimizedCharSlice |
netcoreapp3.1 | 1.76ms | 346ns | 1.34μs | 0 | 0 | 0 | 1 B |
| #7780 | OptimizedCharSlice |
net472 | 2.03ms | 844ns | 3.27μs | 0 | 0 | 0 | 73 B |
| #7780 | OptimizedCharSliceWithPool |
net6.0 | 866μs | 15.6ns | 60.3ns | 0 | 0 | 0 | 5 B |
| #7780 | OptimizedCharSliceWithPool |
netcoreapp3.1 | 852μs | 32ns | 124ns | 0 | 0 | 0 | 0 b |
| #7780 | OptimizedCharSliceWithPool |
net472 | 1.15ms | 82.6ns | 309ns | 0 | 0 | 0 | 47 B |
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark - Faster 🎉 Fewer allocations 🎉
Faster 🎉 in #7780
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑net6.0
1.139
747,589.17
656,295.83
Fewer allocations 🎉 in #7780
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑net472
56.11 KB
55.48 KB
-632 B
-1.13%
| Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑net6.0 | 1.139 | 747,589.17 | 656,295.83 |
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑net472 | 56.11 KB | 55.48 KB | -632 B | -1.13% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | WriteAndFlushEnrichedTraces |
net6.0 | 748μs | 782ns | 3.03μs | 0 | 0 | 0 | 41.8 KB |
| master | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 715μs | 2.18μs | 8.17μs | 0 | 0 | 0 | 41.88 KB |
| master | WriteAndFlushEnrichedTraces |
net472 | 956μs | 4.43μs | 17.1μs | 4.46 | 0 | 0 | 56.11 KB |
| #7780 | WriteAndFlushEnrichedTraces |
net6.0 | 653μs | 1.7μs | 6.8μs | 0 | 0 | 0 | 41.75 KB |
| #7780 | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 755μs | 4.36μs | 37.3μs | 0 | 0 | 0 | 41.72 KB |
| #7780 | WriteAndFlushEnrichedTraces |
net472 | 914μs | 4.26μs | 16μs | 4.46 | 0 | 0 | 55.48 KB |
Benchmarks.Trace.DbCommandBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | ExecuteNonQuery |
net6.0 | 1.88μs | 8.97ns | 38ns | 0 | 0 | 0 | 1.02 KB |
| master | ExecuteNonQuery |
netcoreapp3.1 | 2.68μs | 7.2ns | 27.9ns | 0 | 0 | 0 | 1.02 KB |
| master | ExecuteNonQuery |
net472 | 2.91μs | 2.98ns | 11.6ns | 0.146 | 0.0146 | 0 | 987 B |
| #7780 | ExecuteNonQuery |
net6.0 | 1.86μs | 9.06ns | 38.4ns | 0 | 0 | 0 | 1.02 KB |
| #7780 | ExecuteNonQuery |
netcoreapp3.1 | 2.74μs | 10.9ns | 42ns | 0 | 0 | 0 | 1.02 KB |
| #7780 | ExecuteNonQuery |
net472 | 2.95μs | 4.56ns | 17.7ns | 0.146 | 0.0146 | 0 | 987 B |
Benchmarks.Trace.ElasticsearchBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | CallElasticsearch |
net6.0 | 1.7μs | 8.23ns | 35.9ns | 0 | 0 | 0 | 1.03 KB |
| master | CallElasticsearch |
netcoreapp3.1 | 2.22μs | 11.3ns | 49.1ns | 0 | 0 | 0 | 1.03 KB |
| master | CallElasticsearch |
net472 | 3.57μs | 2.47ns | 9.24ns | 0.162 | 0 | 0 | 1.04 KB |
| master | CallElasticsearchAsync |
net6.0 | 1.91μs | 9.4ns | 39.9ns | 0 | 0 | 0 | 1.01 KB |
| master | CallElasticsearchAsync |
netcoreapp3.1 | 2.33μs | 6.48ns | 25.1ns | 0 | 0 | 0 | 1.08 KB |
| master | CallElasticsearchAsync |
net472 | 3.64μs | 3.14ns | 11.7ns | 0.161 | 0 | 0 | 1.1 KB |
| #7780 | CallElasticsearch |
net6.0 | 1.68μs | 7.35ns | 32ns | 0 | 0 | 0 | 1.03 KB |
| #7780 | CallElasticsearch |
netcoreapp3.1 | 2.2μs | 10.7ns | 43ns | 0 | 0 | 0 | 1.03 KB |
| #7780 | CallElasticsearch |
net472 | 3.52μs | 4.99ns | 19.3ns | 0.157 | 0 | 0 | 1.04 KB |
| #7780 | CallElasticsearchAsync |
net6.0 | 1.83μs | 0.933ns | 3.61ns | 0 | 0 | 0 | 1.01 KB |
| #7780 | CallElasticsearchAsync |
netcoreapp3.1 | 2.43μs | 11.9ns | 46.3ns | 0 | 0 | 0 | 1.08 KB |
| #7780 | CallElasticsearchAsync |
net472 | 3.66μs | 3.95ns | 15.3ns | 0.164 | 0 | 0 | 1.1 KB |
Benchmarks.Trace.GraphQLBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | ExecuteAsync |
net6.0 | 1.86μs | 1.98ns | 7.66ns | 0 | 0 | 0 | 952 B |
| master | ExecuteAsync |
netcoreapp3.1 | 2.47μs | 6.14ns | 23.8ns | 0 | 0 | 0 | 952 B |
| master | ExecuteAsync |
net472 | 2.62μs | 2.41ns | 9.34ns | 0.145 | 0 | 0 | 915 B |
| #7780 | ExecuteAsync |
net6.0 | 1.91μs | 2.34ns | 9.06ns | 0 | 0 | 0 | 952 B |
| #7780 | ExecuteAsync |
netcoreapp3.1 | 2.38μs | 11.4ns | 45.6ns | 0 | 0 | 0 | 952 B |
| #7780 | ExecuteAsync |
net472 | 2.59μs | 3.48ns | 13.5ns | 0.141 | 0 | 0 | 915 B |
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | SendAsync |
net6.0 | 6.93μs | 11.6ns | 43.5ns | 0 | 0 | 0 | 2.36 KB |
| master | SendAsync |
netcoreapp3.1 | 8.53μs | 23.2ns | 89.9ns | 0 | 0 | 0 | 2.9 KB |
| master | SendAsync |
net472 | 12.5μs | 9.78ns | 37.9ns | 0.498 | 0 | 0 | 3.18 KB |
| #7780 | SendAsync |
net6.0 | 7.05μs | 10.3ns | 39.9ns | 0 | 0 | 0 | 2.36 KB |
| #7780 | SendAsync |
netcoreapp3.1 | 8.51μs | 10.5ns | 40.5ns | 0 | 0 | 0 | 2.9 KB |
| #7780 | SendAsync |
net472 | 11.9μs | 4.34ns | 16.2ns | 0.474 | 0 | 0 | 3.18 KB |
Benchmarks.Trace.Iast.StringAspectsBenchmark - Faster 🎉 More allocations ⚠️
Faster 🎉 in #7780
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑netcoreapp3.1
1.220
62,500.00
51,250.00
bimodal
More allocations ⚠️ in #7780
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net472
286.72 KB
353.73 KB
67.01 KB
23.37%
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net472
57.34 KB
65.54 KB
8.19 KB
14.29%
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net6.0
43.14 KB
44.04 KB
896 B
2.08%
Fewer allocations 🎉 in #7780
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑netcoreapp3.1
42.9 KB
42.64 KB
-256 B
-0.60%
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0
278.1 KB
256.88 KB
-21.22 KB
-7.63%
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑netcoreapp3.1
278.73 KB
255.66 KB
-23.07 KB
-8.28%
| Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑netcoreapp3.1 | 1.220 | 62,500.00 | 51,250.00 | bimodal |
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net472 | 286.72 KB | 353.73 KB | 67.01 KB | 23.37% |
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net472 | 57.34 KB | 65.54 KB | 8.19 KB | 14.29% |
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net6.0 | 43.14 KB | 44.04 KB | 896 B | 2.08% |
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑netcoreapp3.1 | 42.9 KB | 42.64 KB | -256 B | -0.60% |
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0 | 278.1 KB | 256.88 KB | -21.22 KB | -7.63% |
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑netcoreapp3.1 | 278.73 KB | 255.66 KB | -23.07 KB | -8.28% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StringConcatBenchmark |
net6.0 | 48.6μs | 205ns | 709ns | 0 | 0 | 0 | 43.14 KB |
| master | StringConcatBenchmark |
netcoreapp3.1 | 61.3μs | 776ns | 7.68μs | 0 | 0 | 0 | 42.9 KB |
| master | StringConcatBenchmark |
net472 | 56.8μs | 112ns | 403ns | 0 | 0 | 0 | 57.34 KB |
| master | StringConcatAspectBenchmark |
net6.0 | 491μs | 2.37μs | 10.3μs | 0 | 0 | 0 | 278.1 KB |
| master | StringConcatAspectBenchmark |
netcoreapp3.1 | 546μs | 2.15μs | 8.31μs | 0 | 0 | 0 | 278.73 KB |
| master | StringConcatAspectBenchmark |
net472 | 399μs | 1.41μs | 5.45μs | 0 | 0 | 0 | 286.72 KB |
| #7780 | StringConcatBenchmark |
net6.0 | 52.3μs | 956ns | 9.51μs | 0 | 0 | 0 | 44.04 KB |
| #7780 | StringConcatBenchmark |
netcoreapp3.1 | 51.8μs | 304ns | 2.63μs | 0 | 0 | 0 | 42.64 KB |
| #7780 | StringConcatBenchmark |
net472 | 57.6μs | 122ns | 421ns | 0 | 0 | 0 | 65.54 KB |
| #7780 | StringConcatAspectBenchmark |
net6.0 | 440μs | 2.04μs | 7.92μs | 0 | 0 | 0 | 256.88 KB |
| #7780 | StringConcatAspectBenchmark |
netcoreapp3.1 | 495μs | 2.25μs | 8.71μs | 0 | 0 | 0 | 255.66 KB |
| #7780 | StringConcatAspectBenchmark |
net472 | 403μs | 2.15μs | 11.6μs | 0 | 0 | 0 | 353.73 KB |
Benchmarks.Trace.ILoggerBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | EnrichedLog |
net6.0 | 2.65μs | 1.24ns | 4.46ns | 0 | 0 | 0 | 1.7 KB |
| master | EnrichedLog |
netcoreapp3.1 | 3.64μs | 13.7ns | 52.9ns | 0 | 0 | 0 | 1.7 KB |
| master | EnrichedLog |
net472 | 4.19μs | 4.74ns | 18.4ns | 0.252 | 0 | 0 | 1.64 KB |
| #7780 | EnrichedLog |
net6.0 | 2.66μs | 2.29ns | 8.58ns | 0 | 0 | 0 | 1.7 KB |
| #7780 | EnrichedLog |
netcoreapp3.1 | 3.62μs | 7.03ns | 27.2ns | 0 | 0 | 0 | 1.7 KB |
| #7780 | EnrichedLog |
net472 | 4.01μs | 1.98ns | 7.69ns | 0.241 | 0 | 0 | 1.64 KB |
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | EnrichedLog |
net6.0 | 131μs | 276ns | 1.03μs | 0 | 0 | 0 | 4.31 KB |
| master | EnrichedLog |
netcoreapp3.1 | 134μs | 720ns | 3.88μs | 0 | 0 | 0 | 4.31 KB |
| master | EnrichedLog |
net472 | 169μs | 142ns | 549ns | 0 | 0 | 0 | 4.52 KB |
| #7780 | EnrichedLog |
net6.0 | 121μs | 51.1ns | 198ns | 0 | 0 | 0 | 4.31 KB |
| #7780 | EnrichedLog |
netcoreapp3.1 | 126μs | 217ns | 811ns | 0 | 0 | 0 | 4.31 KB |
| #7780 | EnrichedLog |
net472 | 167μs | 224ns | 809ns | 0 | 0 | 0 | 4.52 KB |
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | EnrichedLog |
net6.0 | 4.9μs | 6.17ns | 23.1ns | 0 | 0 | 0 | 2.26 KB |
| master | EnrichedLog |
netcoreapp3.1 | 6.85μs | 17.9ns | 69.1ns | 0 | 0 | 0 | 2.26 KB |
| master | EnrichedLog |
net472 | 7.57μs | 7.95ns | 30.8ns | 0.301 | 0 | 0 | 2.08 KB |
| #7780 | EnrichedLog |
net6.0 | 5.03μs | 7.64ns | 29.6ns | 0 | 0 | 0 | 2.26 KB |
| #7780 | EnrichedLog |
netcoreapp3.1 | 7μs | 24.8ns | 96ns | 0 | 0 | 0 | 2.26 KB |
| #7780 | EnrichedLog |
net472 | 7.58μs | 9.63ns | 37.3ns | 0.301 | 0 | 0 | 2.08 KB |
Benchmarks.Trace.RedisBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | SendReceive |
net6.0 | 2.01μs | 2.52ns | 9.76ns | 0 | 0 | 0 | 1.2 KB |
| master | SendReceive |
netcoreapp3.1 | 2.7μs | 6.98ns | 27ns | 0 | 0 | 0 | 1.2 KB |
| master | SendReceive |
net472 | 3.04μs | 1.86ns | 6.95ns | 0.182 | 0 | 0 | 1.2 KB |
| #7780 | SendReceive |
net6.0 | 2.02μs | 1.22ns | 4.74ns | 0 | 0 | 0 | 1.2 KB |
| #7780 | SendReceive |
netcoreapp3.1 | 2.6μs | 13.1ns | 58.4ns | 0 | 0 | 0 | 1.2 KB |
| #7780 | SendReceive |
net472 | 3.01μs | 1.31ns | 5.06ns | 0.179 | 0 | 0 | 1.2 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 | 4.37μs | 8.04ns | 30.1ns | 0 | 0 | 0 | 1.58 KB |
| master | EnrichedLog |
netcoreapp3.1 | 5.65μs | 13.7ns | 49.3ns | 0 | 0 | 0 | 1.63 KB |
| master | EnrichedLog |
net472 | 6.73μs | 8.19ns | 31.7ns | 0.302 | 0 | 0 | 2.03 KB |
| #7780 | EnrichedLog |
net6.0 | 4.29μs | 9.97ns | 38.6ns | 0 | 0 | 0 | 1.58 KB |
| #7780 | EnrichedLog |
netcoreapp3.1 | 5.68μs | 20.2ns | 78.1ns | 0 | 0 | 0 | 1.63 KB |
| #7780 | EnrichedLog |
net472 | 6.79μs | 8.55ns | 33.1ns | 0.305 | 0 | 0 | 2.03 KB |
Benchmarks.Trace.SpanBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StartFinishSpan |
net6.0 | 782ns | 0.392ns | 1.52ns | 0 | 0 | 0 | 576 B |
| master | StartFinishSpan |
netcoreapp3.1 | 952ns | 5.02ns | 26.1ns | 0 | 0 | 0 | 576 B |
| master | StartFinishSpan |
net472 | 929ns | 0.577ns | 2.23ns | 0.0888 | 0 | 0 | 578 B |
| master | StartFinishScope |
net6.0 | 935ns | 3.34ns | 12.9ns | 0 | 0 | 0 | 696 B |
| master | StartFinishScope |
netcoreapp3.1 | 1.22μs | 5.91ns | 25.7ns | 0 | 0 | 0 | 696 B |
| master | StartFinishScope |
net472 | 1.11μs | 0.721ns | 2.79ns | 0.0993 | 0 | 0 | 658 B |
| #7780 | StartFinishSpan |
net6.0 | 790ns | 3.8ns | 15.2ns | 0 | 0 | 0 | 576 B |
| #7780 | StartFinishSpan |
netcoreapp3.1 | 955ns | 5.23ns | 26.1ns | 0 | 0 | 0 | 577 B |
| #7780 | StartFinishSpan |
net472 | 928ns | 0.801ns | 3.1ns | 0.0879 | 0 | 0 | 578 B |
| #7780 | StartFinishScope |
net6.0 | 918ns | 4.94ns | 27.1ns | 0 | 0 | 0 | 696 B |
| #7780 | StartFinishScope |
netcoreapp3.1 | 1.18μs | 5.9ns | 25.7ns | 0 | 0 | 0 | 696 B |
| #7780 | StartFinishScope |
net472 | 1.11μs | 1.12ns | 4.34ns | 0.1 | 0 | 0 | 658 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 | 1.06μs | 5.42ns | 24.2ns | 0 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
netcoreapp3.1 | 1.43μs | 2.28ns | 8.83ns | 0 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
net472 | 1.47μs | 0.913ns | 3.54ns | 0.103 | 0 | 0 | 658 B |
| #7780 | RunOnMethodBegin |
net6.0 | 1.05μs | 5.44ns | 25.5ns | 0 | 0 | 0 | 696 B |
| #7780 | RunOnMethodBegin |
netcoreapp3.1 | 1.42μs | 7.38ns | 34.6ns | 0 | 0 | 0 | 696 B |
| #7780 | RunOnMethodBegin |
net472 | 1.49μs | 1.93ns | 7.46ns | 0.0973 | 0 | 0 | 658 B |
Summary of changes
add processtags to the body of telemetry requests, as part of the application data.
equivalent of DataDog/dd-trace-java#8837
Reason for change
AIDM-195
Implementation details
pretty straightforward.
Test coverage
relies on snapshots
Other details