-
Notifications
You must be signed in to change notification settings - Fork 151
Respect baggage in Azure messaging integrations #7818
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
Conversation
Execution-Time Benchmarks Report ⏱️Execution-time results for samples comparing This PR (7818) 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 (7818) - mean (77ms) : 72, 81
master - mean (75ms) : 70, 80
section Bailout
This PR (7818) - mean (80ms) : 74, 85
master - mean (80ms) : 76, 84
section CallTarget+Inlining+NGEN
This PR (7818) - mean (1,122ms) : 1032, 1211
master - mean (1,139ms) : 1051, 1228
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 (7818) - mean (118ms) : 111, 125
master - mean (119ms) : 112, 125
section Bailout
This PR (7818) - mean (120ms) : 114, 126
master - mean (121ms) : 112, 130
section CallTarget+Inlining+NGEN
This PR (7818) - mean (802ms) : 764, 840
master - mean (808ms) : 772, 845
FakeDbCommand (.NET 6)gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7818) - mean (105ms) : 99, 112
master - mean (105ms) : 99, 112
section Bailout
This PR (7818) - mean (106ms) : 98, 114
master - mean (106ms) : 99, 112
section CallTarget+Inlining+NGEN
This PR (7818) - mean (751ms) : 712, 790
master - mean (757ms) : 716, 798
FakeDbCommand (.NET 8)gantt
title Execution time (ms) FakeDbCommand (.NET 8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7818) - mean (104ms) : 95, 112
master - mean (103ms) : 97, 109
section Bailout
This PR (7818) - mean (104ms) : 98, 109
master - mean (105ms) : 100, 110
section CallTarget+Inlining+NGEN
This PR (7818) - mean (718ms) : 684, 752
master - mean (732ms) : 698, 766
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 (7818) - mean (192ms) : 188, 196
master - mean (193ms) : 189, 197
section Bailout
This PR (7818) - mean (196ms) : 193, 198
master - mean (196ms) : 192, 199
section CallTarget+Inlining+NGEN
This PR (7818) - mean (1,174ms) : 1110, 1238
master - mean (1,178ms) : 1106, 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 (7818) - mean (278ms) : 272, 283
master - mean (277ms) : 271, 283
section Bailout
This PR (7818) - mean (277ms) : 273, 282
master - mean (277ms) : 274, 280
section CallTarget+Inlining+NGEN
This PR (7818) - mean (935ms) : 896, 975
master - mean (941ms) : 900, 982
HttpMessageHandler (.NET 6)gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7818) - mean (270ms) : 265, 275
master - mean (270ms) : 264, 277
section Bailout
This PR (7818) - mean (269ms) : 265, 273
master - mean (269ms) : 266, 272
section CallTarget+Inlining+NGEN
This PR (7818) - mean (926ms) : 867, 986
master - mean (931ms) : 884, 977
HttpMessageHandler (.NET 8)gantt
title Execution time (ms) HttpMessageHandler (.NET 8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7818) - mean (269ms) : 264, 274
master - mean (269ms) : 264, 275
section Bailout
This PR (7818) - mean (269ms) : 265, 273
master - mean (268ms) : 266, 271
section CallTarget+Inlining+NGEN
This PR (7818) - mean (851ms) : 828, 875
master - mean (864ms) : 833, 894
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
BenchmarksBenchmarks Report for benchmark platform 🐌Benchmarks for #7818 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.Asm.AppSecBodyBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Asm.AppSecEncoderBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Asm.AppSecWafBenchmark - Slower
|
| Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack‑netcoreapp3.1 | 2.428 | 296,614.39 | 720,112.50 |
| Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark‑netcoreapp3.1 | 2.103 | 861,943.85 | 409,808.37 |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | RunWafRealisticBenchmark |
net6.0 | 398μs | 61.7ns | 231ns | 0 | 0 | 0 | 4.55 KB |
| master | RunWafRealisticBenchmark |
netcoreapp3.1 | 845μs | 5.8μs | 58μs | 0 | 0 | 0 | 4.48 KB |
| master | RunWafRealisticBenchmark |
net472 | 428μs | 49.1ns | 190ns | 0 | 0 | 0 | 4.66 KB |
| master | RunWafRealisticBenchmarkWithAttack |
net6.0 | 283μs | 49.3ns | 191ns | 0 | 0 | 0 | 2.24 KB |
| master | RunWafRealisticBenchmarkWithAttack |
netcoreapp3.1 | 297μs | 239ns | 924ns | 0 | 0 | 0 | 2.22 KB |
| master | RunWafRealisticBenchmarkWithAttack |
net472 | 311μs | 33ns | 128ns | 0 | 0 | 0 | 2.29 KB |
| #7818 | RunWafRealisticBenchmark |
net6.0 | 396μs | 43.6ns | 169ns | 0 | 0 | 0 | 4.55 KB |
| #7818 | RunWafRealisticBenchmark |
netcoreapp3.1 | 410μs | 81ns | 303ns | 0 | 0 | 0 | 4.48 KB |
| #7818 | RunWafRealisticBenchmark |
net472 | 428μs | 66.8ns | 259ns | 0 | 0 | 0 | 4.66 KB |
| #7818 | RunWafRealisticBenchmarkWithAttack |
net6.0 | 284μs | 39.2ns | 152ns | 0 | 0 | 0 | 2.24 KB |
| #7818 | RunWafRealisticBenchmarkWithAttack |
netcoreapp3.1 | 679μs | 12.3μs | 123μs | 0 | 0 | 0 | 2.22 KB |
| #7818 | RunWafRealisticBenchmarkWithAttack |
net472 | 315μs | 20.2ns | 78.2ns | 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 | 60.9μs | 285ns | 1.07μs | 0 | 0 | 0 | 14.52 KB |
| master | SendRequest |
netcoreapp3.1 | 71.8μs | 255ns | 1.37μs | 0 | 0 | 0 | 17.42 KB |
| master | SendRequest |
net472 | 0.00399ns | 0.00239ns | 0.00893ns | 0 | 0 | 0 | 0 b |
| #7818 | SendRequest |
net6.0 | 61.9μs | 53.8ns | 208ns | 0 | 0 | 0 | 14.52 KB |
| #7818 | SendRequest |
netcoreapp3.1 | 72.6μs | 331ns | 1.28μs | 0 | 0 | 0 | 17.42 KB |
| #7818 | SendRequest |
net472 | 0.00143ns | 0.000733ns | 0.00284ns | 0 | 0 | 0 | 0 b |
Benchmarks.Trace.CharSliceBenchmark - Same speed ✔️ More allocations ⚠️
More allocations ⚠️ in #7818
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice‑net472
0 b
73 B
73 B
∞
Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑netcoreapp3.1
0 b
1 B
1 B
∞
Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑net472
0 b
47 B
47 B
∞
Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑net6.0
3 B
5 B
2 B
66.67%
Fewer allocations 🎉 in #7818
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice‑net6.0
7 B
4 B
-3 B
-42.86%
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice‑net472 | 0 b | 73 B | 73 B | ∞ |
| Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑netcoreapp3.1 | 0 b | 1 B | 1 B | ∞ |
| Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑net472 | 0 b | 47 B | 47 B | ∞ |
| Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑net6.0 | 3 B | 5 B | 2 B | 66.67% |
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice‑net6.0 | 7 B | 4 B | -3 B | -42.86% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | OriginalCharSlice |
net6.0 | 1.93ms | 5.6μs | 21.7μs | 0 | 0 | 0 | 640.01 KB |
| master | OriginalCharSlice |
netcoreapp3.1 | 2.1ms | 1.22μs | 4.73μs | 0 | 0 | 0 | 640 KB |
| master | OriginalCharSlice |
net472 | 2.56ms | 420ns | 1.51μs | 100 | 0 | 0 | 641.95 KB |
| master | OptimizedCharSlice |
net6.0 | 1.4ms | 219ns | 849ns | 0 | 0 | 0 | 7 B |
| master | OptimizedCharSlice |
netcoreapp3.1 | 1.67ms | 334ns | 1.25μs | 0 | 0 | 0 | 1 B |
| master | OptimizedCharSlice |
net472 | 1.95ms | 531ns | 2.06μs | 0 | 0 | 0 | 0 b |
| master | OptimizedCharSliceWithPool |
net6.0 | 864μs | 29.9ns | 112ns | 0 | 0 | 0 | 3 B |
| master | OptimizedCharSliceWithPool |
netcoreapp3.1 | 797μs | 76.4ns | 296ns | 0 | 0 | 0 | 0 b |
| master | OptimizedCharSliceWithPool |
net472 | 1.15ms | 147ns | 568ns | 0 | 0 | 0 | 0 b |
| #7818 | OriginalCharSlice |
net6.0 | 1.94ms | 532ns | 1.99μs | 0 | 0 | 0 | 640 KB |
| #7818 | OriginalCharSlice |
netcoreapp3.1 | 2.09ms | 6.5μs | 22.5μs | 0 | 0 | 0 | 640 KB |
| #7818 | OriginalCharSlice |
net472 | 2.64ms | 192ns | 745ns | 100 | 0 | 0 | 641.95 KB |
| #7818 | OptimizedCharSlice |
net6.0 | 1.41ms | 284ns | 1.1μs | 0 | 0 | 0 | 4 B |
| #7818 | OptimizedCharSlice |
netcoreapp3.1 | 1.75ms | 7.4μs | 28.7μs | 0 | 0 | 0 | 1 B |
| #7818 | OptimizedCharSlice |
net472 | 1.98ms | 242ns | 938ns | 0 | 0 | 0 | 73 B |
| #7818 | OptimizedCharSliceWithPool |
net6.0 | 800μs | 43.5ns | 169ns | 0 | 0 | 0 | 5 B |
| #7818 | OptimizedCharSliceWithPool |
netcoreapp3.1 | 805μs | 58.6ns | 227ns | 0 | 0 | 0 | 1 B |
| #7818 | OptimizedCharSliceWithPool |
net472 | 1.13ms | 108ns | 404ns | 0 | 0 | 0 | 47 B |
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark - Faster 🎉 Fewer allocations 🎉
Faster 🎉 in #7818
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑netcoreapp3.1
1.218
853,658.55
700,942.63
bimodal
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑net472
1.191
1,010,006.04
847,976.67
Fewer allocations 🎉 in #7818
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑net472
56.73 KB
56.42 KB
-307 B
-0.54%
| Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑netcoreapp3.1 | 1.218 | 853,658.55 | 700,942.63 | bimodal |
| Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑net472 | 1.191 | 1,010,006.04 | 847,976.67 |
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑net472 | 56.73 KB | 56.42 KB | -307 B | -0.54% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | WriteAndFlushEnrichedTraces |
net6.0 | 650μs | 963ns | 3.73μs | 0 | 0 | 0 | 41.69 KB |
| master | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 828μs | 4.8μs | 39.5μs | 0 | 0 | 0 | 42.13 KB |
| master | WriteAndFlushEnrichedTraces |
net472 | 1.01ms | 5.15μs | 24.2μs | 8.33 | 0 | 0 | 56.73 KB |
| #7818 | WriteAndFlushEnrichedTraces |
net6.0 | 672μs | 1.11μs | 4.31μs | 0 | 0 | 0 | 41.76 KB |
| #7818 | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 708μs | 4.07μs | 34.6μs | 0 | 0 | 0 | 42.28 KB |
| #7818 | WriteAndFlushEnrichedTraces |
net472 | 849μs | 2.53μs | 9.47μs | 8.33 | 0 | 0 | 56.42 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.9μs | 7.13ns | 26.7ns | 0 | 0 | 0 | 1.02 KB |
| master | ExecuteNonQuery |
netcoreapp3.1 | 2.63μs | 9.29ns | 36ns | 0 | 0 | 0 | 1.02 KB |
| master | ExecuteNonQuery |
net472 | 2.86μs | 4.11ns | 15.4ns | 0.154 | 0.014 | 0 | 987 B |
| #7818 | ExecuteNonQuery |
net6.0 | 1.9μs | 2.27ns | 8.81ns | 0 | 0 | 0 | 1.02 KB |
| #7818 | ExecuteNonQuery |
netcoreapp3.1 | 2.57μs | 9.92ns | 38.4ns | 0 | 0 | 0 | 1.02 KB |
| #7818 | ExecuteNonQuery |
net472 | 2.9μs | 15.4ns | 80.1ns | 0.154 | 0 | 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.37ns | 35.5ns | 0 | 0 | 0 | 1.03 KB |
| master | CallElasticsearch |
netcoreapp3.1 | 2.3μs | 10.7ns | 42.7ns | 0 | 0 | 0 | 1.03 KB |
| master | CallElasticsearch |
net472 | 3.5μs | 2.92ns | 10.9ns | 0.157 | 0 | 0 | 1.04 KB |
| master | CallElasticsearchAsync |
net6.0 | 1.88μs | 3.46ns | 12.5ns | 0 | 0 | 0 | 1.01 KB |
| master | CallElasticsearchAsync |
netcoreapp3.1 | 2.38μs | 9.31ns | 36ns | 0 | 0 | 0 | 1.08 KB |
| master | CallElasticsearchAsync |
net472 | 3.69μs | 4.1ns | 15.9ns | 0.166 | 0 | 0 | 1.1 KB |
| #7818 | CallElasticsearch |
net6.0 | 1.72μs | 7.29ns | 29.2ns | 0 | 0 | 0 | 1.03 KB |
| #7818 | CallElasticsearch |
netcoreapp3.1 | 2.31μs | 9.28ns | 34.7ns | 0 | 0 | 0 | 1.03 KB |
| #7818 | CallElasticsearch |
net472 | 3.44μs | 1.45ns | 5.21ns | 0.155 | 0 | 0 | 1.04 KB |
| #7818 | CallElasticsearchAsync |
net6.0 | 1.89μs | 10ns | 50.2ns | 0 | 0 | 0 | 1.01 KB |
| #7818 | CallElasticsearchAsync |
netcoreapp3.1 | 2.45μs | 11.8ns | 45.8ns | 0 | 0 | 0 | 1.08 KB |
| #7818 | CallElasticsearchAsync |
net472 | 3.58μs | 1.73ns | 6.49ns | 0.161 | 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.97μs | 1.76ns | 6.83ns | 0 | 0 | 0 | 952 B |
| master | ExecuteAsync |
netcoreapp3.1 | 2.55μs | 12.5ns | 49.9ns | 0 | 0 | 0 | 952 B |
| master | ExecuteAsync |
net472 | 2.65μs | 2.67ns | 10.3ns | 0.133 | 0 | 0 | 915 B |
| #7818 | ExecuteAsync |
net6.0 | 1.84μs | 5.86ns | 22.7ns | 0 | 0 | 0 | 952 B |
| #7818 | ExecuteAsync |
netcoreapp3.1 | 2.45μs | 7.08ns | 27.4ns | 0 | 0 | 0 | 952 B |
| #7818 | ExecuteAsync |
net472 | 2.6μs | 5.34ns | 20.7ns | 0.143 | 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.78μs | 8.74ns | 31.5ns | 0 | 0 | 0 | 2.36 KB |
| master | SendAsync |
netcoreapp3.1 | 8.81μs | 26.5ns | 103ns | 0 | 0 | 0 | 2.9 KB |
| master | SendAsync |
net472 | 12.3μs | 11.9ns | 46.2ns | 0.495 | 0 | 0 | 3.18 KB |
| #7818 | SendAsync |
net6.0 | 6.86μs | 6.76ns | 24.4ns | 0 | 0 | 0 | 2.36 KB |
| #7818 | SendAsync |
netcoreapp3.1 | 8.5μs | 20.1ns | 78ns | 0 | 0 | 0 | 2.9 KB |
| #7818 | SendAsync |
net472 | 12μs | 15.5ns | 60.2ns | 0.482 | 0 | 0 | 3.18 KB |
Benchmarks.Trace.Iast.StringAspectsBenchmark - Same speed ✔️ Fewer allocations 🎉
Fewer allocations 🎉 in #7818
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net6.0
44.43 KB
43.94 KB
-496 B
-1.12%
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net472
282.21 KB
278.53 KB
-3.68 KB
-1.30%
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0
261.47 KB
252.21 KB
-9.26 KB
-3.54%
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑netcoreapp3.1
272.87 KB
256.58 KB
-16.29 KB
-5.97%
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net6.0 | 44.43 KB | 43.94 KB | -496 B | -1.12% |
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net472 | 282.21 KB | 278.53 KB | -3.68 KB | -1.30% |
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0 | 261.47 KB | 252.21 KB | -9.26 KB | -3.54% |
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑netcoreapp3.1 | 272.87 KB | 256.58 KB | -16.29 KB | -5.97% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StringConcatBenchmark |
net6.0 | 43.9μs | 240ns | 1.25μs | 0 | 0 | 0 | 44.43 KB |
| master | StringConcatBenchmark |
netcoreapp3.1 | 47.2μs | 262ns | 1.57μs | 0 | 0 | 0 | 42.64 KB |
| master | StringConcatBenchmark |
net472 | 56.9μs | 137ns | 493ns | 0 | 0 | 0 | 65.54 KB |
| master | StringConcatAspectBenchmark |
net6.0 | 471μs | 1.48μs | 5.33μs | 0 | 0 | 0 | 261.47 KB |
| master | StringConcatAspectBenchmark |
netcoreapp3.1 | 524μs | 914ns | 3.16μs | 0 | 0 | 0 | 272.87 KB |
| master | StringConcatAspectBenchmark |
net472 | 411μs | 2.34μs | 16.6μs | 0 | 0 | 0 | 282.21 KB |
| #7818 | StringConcatBenchmark |
net6.0 | 42.4μs | 216ns | 944ns | 0 | 0 | 0 | 43.94 KB |
| #7818 | StringConcatBenchmark |
netcoreapp3.1 | 49.8μs | 294ns | 2.68μs | 0 | 0 | 0 | 42.8 KB |
| #7818 | StringConcatBenchmark |
net472 | 57.3μs | 75.7ns | 262ns | 0 | 0 | 0 | 65.54 KB |
| #7818 | StringConcatAspectBenchmark |
net6.0 | 454μs | 2.05μs | 7.39μs | 0 | 0 | 0 | 252.21 KB |
| #7818 | StringConcatAspectBenchmark |
netcoreapp3.1 | 512μs | 1.87μs | 6.74μs | 0 | 0 | 0 | 256.58 KB |
| #7818 | StringConcatAspectBenchmark |
net472 | 409μs | 2.25μs | 14.1μs | 0 | 0 | 0 | 278.53 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.63μs | 12.2ns | 45.8ns | 0 | 0 | 0 | 1.7 KB |
| master | EnrichedLog |
netcoreapp3.1 | 3.76μs | 13.5ns | 52.2ns | 0 | 0 | 0 | 1.7 KB |
| master | EnrichedLog |
net472 | 3.85μs | 4.39ns | 17ns | 0.25 | 0 | 0 | 1.64 KB |
| #7818 | EnrichedLog |
net6.0 | 2.62μs | 12.4ns | 49.5ns | 0 | 0 | 0 | 1.7 KB |
| #7818 | EnrichedLog |
netcoreapp3.1 | 3.6μs | 12.4ns | 48ns | 0 | 0 | 0 | 1.7 KB |
| #7818 | EnrichedLog |
net472 | 3.88μs | 2.4ns | 8.3ns | 0.248 | 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 | 125μs | 380ns | 1.42μs | 0 | 0 | 0 | 4.31 KB |
| master | EnrichedLog |
netcoreapp3.1 | 132μs | 284ns | 1.1μs | 0 | 0 | 0 | 4.31 KB |
| master | EnrichedLog |
net472 | 174μs | 203ns | 786ns | 0 | 0 | 0 | 4.52 KB |
| #7818 | EnrichedLog |
net6.0 | 123μs | 132ns | 510ns | 0 | 0 | 0 | 4.31 KB |
| #7818 | EnrichedLog |
netcoreapp3.1 | 130μs | 200ns | 748ns | 0 | 0 | 0 | 4.31 KB |
| #7818 | EnrichedLog |
net472 | 167μs | 84.1ns | 326ns | 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 | 5.1μs | 3.7ns | 13.8ns | 0 | 0 | 0 | 2.26 KB |
| master | EnrichedLog |
netcoreapp3.1 | 6.77μs | 6.86ns | 25.7ns | 0 | 0 | 0 | 2.26 KB |
| master | EnrichedLog |
net472 | 7.46μs | 9.23ns | 35.7ns | 0.296 | 0 | 0 | 2.08 KB |
| #7818 | EnrichedLog |
net6.0 | 5.12μs | 11.2ns | 41.9ns | 0 | 0 | 0 | 2.26 KB |
| #7818 | EnrichedLog |
netcoreapp3.1 | 6.83μs | 33.3ns | 141ns | 0 | 0 | 0 | 2.26 KB |
| #7818 | EnrichedLog |
net472 | 7.71μs | 5.36ns | 20.1ns | 0.305 | 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.02μs | 9.03ns | 35ns | 0 | 0 | 0 | 1.2 KB |
| master | SendReceive |
netcoreapp3.1 | 2.58μs | 8.73ns | 33.8ns | 0 | 0 | 0 | 1.2 KB |
| master | SendReceive |
net472 | 3.01μs | 1.76ns | 6.83ns | 0.18 | 0 | 0 | 1.2 KB |
| #7818 | SendReceive |
net6.0 | 2.07μs | 8.69ns | 33.6ns | 0 | 0 | 0 | 1.2 KB |
| #7818 | SendReceive |
netcoreapp3.1 | 2.52μs | 11.8ns | 45.7ns | 0 | 0 | 0 | 1.2 KB |
| #7818 | SendReceive |
net472 | 3.05μs | 4.21ns | 16.3ns | 0.185 | 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.24μs | 6.49ns | 25.1ns | 0 | 0 | 0 | 1.58 KB |
| master | EnrichedLog |
netcoreapp3.1 | 5.69μs | 12ns | 45ns | 0 | 0 | 0 | 1.63 KB |
| master | EnrichedLog |
net472 | 6.63μs | 5.88ns | 22ns | 0.3 | 0 | 0 | 2.03 KB |
| #7818 | EnrichedLog |
net6.0 | 4.36μs | 15.4ns | 53.3ns | 0 | 0 | 0 | 1.58 KB |
| #7818 | EnrichedLog |
netcoreapp3.1 | 5.59μs | 9.15ns | 31.7ns | 0 | 0 | 0 | 1.63 KB |
| #7818 | EnrichedLog |
net472 | 6.68μs | 8.18ns | 30.6ns | 0.302 | 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 | 768ns | 3.75ns | 15ns | 0 | 0 | 0 | 576 B |
| master | StartFinishSpan |
netcoreapp3.1 | 1μs | 0.358ns | 1.39ns | 0 | 0 | 0 | 576 B |
| master | StartFinishSpan |
net472 | 950ns | 0.3ns | 1.12ns | 0.0902 | 0 | 0 | 578 B |
| master | StartFinishScope |
net6.0 | 917ns | 4.94ns | 25.7ns | 0 | 0 | 0 | 696 B |
| master | StartFinishScope |
netcoreapp3.1 | 1.19μs | 6.5ns | 39ns | 0 | 0 | 0 | 696 B |
| master | StartFinishScope |
net472 | 1.15μs | 0.488ns | 1.89ns | 0.104 | 0 | 0 | 658 B |
| #7818 | StartFinishSpan |
net6.0 | 781ns | 0.342ns | 1.23ns | 0 | 0 | 0 | 576 B |
| #7818 | StartFinishSpan |
netcoreapp3.1 | 977ns | 4.68ns | 19.3ns | 0 | 0 | 0 | 576 B |
| #7818 | StartFinishSpan |
net472 | 956ns | 0.714ns | 2.57ns | 0.0907 | 0 | 0 | 578 B |
| #7818 | StartFinishScope |
net6.0 | 976ns | 4.76ns | 19ns | 0 | 0 | 0 | 696 B |
| #7818 | StartFinishScope |
netcoreapp3.1 | 1.19μs | 6.08ns | 29.2ns | 0 | 0 | 0 | 696 B |
| #7818 | StartFinishScope |
net472 | 1.15μs | 0.378ns | 1.41ns | 0.103 | 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.08μs | 0.711ns | 2.66ns | 0 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
netcoreapp3.1 | 1.42μs | 7.38ns | 35.4ns | 0 | 0 | 0 | 697 B |
| master | RunOnMethodBegin |
net472 | 1.47μs | 0.948ns | 3.42ns | 0.103 | 0 | 0 | 658 B |
| #7818 | RunOnMethodBegin |
net6.0 | 1.06μs | 3.39ns | 13.1ns | 0 | 0 | 0 | 696 B |
| #7818 | RunOnMethodBegin |
netcoreapp3.1 | 1.45μs | 7.19ns | 31.3ns | 0 | 0 | 0 | 696 B |
| #7818 | RunOnMethodBegin |
net472 | 1.43μs | 0.537ns | 1.94ns | 0.0998 | 0 | 0 | 658 B |
...er/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Azure/Functions/AzureFunctionsCommon.cs
Outdated
Show resolved
Hide resolved
...er/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Azure/Functions/AzureFunctionsCommon.cs
Outdated
Show resolved
Hide resolved
| return new PropagationContext(spanContexts[0], Baggage.Current, null); | ||
| return extractedContexts[0]; |
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.
This was actually the bug resulting in Baggage.Current merging into itself
lucaspimentel
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.
Thanks!
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.
Thanks!
Summary of changes
Respect baggage in Azure messaging instrumentations. Related to #7810
Reason for change
Baggage was not being extracted from headers
Implementation details
Test coverage
Unit test
AzureFunctionsCommon.ExtractPropagatedContextFromMessagingwith baggage merging.CreateIsolatedFunctionScopewould have been more complex to test.Other details