-
Notifications
You must be signed in to change notification settings - Fork 140
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
Add rate limit for the log written by TraceRateLimiter
#5229
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 327914 Passed, 1559 Skipped, 54m 16.85s Wall 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 (5229) - mean (73ms) : 67, 78
. : milestone, 73,
master - mean (74ms) : 65, 83
. : milestone, 74,
section CallTarget+Inlining+NGEN
This PR (5229) - mean (987ms) : 965, 1009
. : milestone, 987,
master - mean (985ms) : 961, 1008
. : milestone, 985,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5229) - mean (111ms) : 108, 114
. : milestone, 111,
master - mean (118ms) : 96, 140
. : milestone, 118,
section CallTarget+Inlining+NGEN
This PR (5229) - mean (718ms) : 703, 733
. : milestone, 718,
master - mean (713ms) : 691, 735
. : milestone, 713,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5229) - mean (95ms) : 91, 99
. : milestone, 95,
master - mean (95ms) : 91, 98
. : milestone, 95,
section CallTarget+Inlining+NGEN
This PR (5229) - mean (673ms) : 647, 699
. : milestone, 673,
master - mean (671ms) : 647, 694
. : milestone, 671,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5229) - mean (188ms) : 184, 192
. : milestone, 188,
master - mean (188ms) : 182, 193
. : milestone, 188,
section CallTarget+Inlining+NGEN
This PR (5229) - mean (1,069ms) : 1050, 1088
. : milestone, 1069,
master - mean (1,063ms) : 1038, 1089
. : milestone, 1063,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5229) - mean (272ms) : 267, 276
. : milestone, 272,
master - mean (269ms) : 262, 276
. : milestone, 269,
section CallTarget+Inlining+NGEN
This PR (5229) - mean (870ms) : 844, 896
. : milestone, 870,
master - mean (861ms) : 839, 884
. : milestone, 861,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5229) - mean (261ms) : 257, 265
. : milestone, 261,
master - mean (258ms) : 250, 265
. : milestone, 258,
section CallTarget+Inlining+NGEN
This PR (5229) - mean (853ms) : 826, 880
. : milestone, 853,
master - mean (855ms) : 834, 876
. : milestone, 855,
|
Benchmarks Report 🐌Benchmarks for #5229 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 - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AspNetCoreBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark - Same speed ✔️ Fewer allocations 🎉
|
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑net6.0 | 41.84 KB | 41.52 KB | -322 B | -0.77% |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | WriteAndFlushEnrichedTraces |
net6.0 | 558μs | 595ns | 2.23μs | 0.543 | 0 | 0 | 41.84 KB |
master | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 656μs | 633ns | 2.45μs | 0.327 | 0 | 0 | 41.8 KB |
master | WriteAndFlushEnrichedTraces |
net472 | 841μs | 3.92μs | 15.2μs | 8.58 | 2.45 | 0.408 | 53.24 KB |
#5229 | WriteAndFlushEnrichedTraces |
net6.0 | 565μs | 525ns | 2.03μs | 0.551 | 0 | 0 | 41.52 KB |
#5229 | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 661μs | 2.25μs | 8.12μs | 0.326 | 0 | 0 | 41.73 KB |
#5229 | WriteAndFlushEnrichedTraces |
net472 | 827μs | 2.78μs | 10.8μs | 8.45 | 2.53 | 0.422 | 53.25 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.14μs | 0.541ns | 2.02ns | 0.0108 | 0 | 0 | 776 B |
master | ExecuteNonQuery |
netcoreapp3.1 | 1.47μs | 1.43ns | 5.53ns | 0.0103 | 0 | 0 | 776 B |
master | ExecuteNonQuery |
net472 | 1.76μs | 1.41ns | 5.08ns | 0.117 | 0 | 0 | 738 B |
#5229 | ExecuteNonQuery |
net6.0 | 1.08μs | 0.453ns | 1.76ns | 0.0108 | 0 | 0 | 776 B |
#5229 | ExecuteNonQuery |
netcoreapp3.1 | 1.53μs | 0.715ns | 2.77ns | 0.0101 | 0 | 0 | 776 B |
#5229 | ExecuteNonQuery |
net472 | 1.84μs | 8.35ns | 30.1ns | 0.117 | 0 | 0 | 738 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.33μs | 1.41ns | 5.46ns | 0.0133 | 0 | 0 | 944 B |
master | CallElasticsearch |
netcoreapp3.1 | 1.59μs | 1.87ns | 6.98ns | 0.0124 | 0 | 0 | 944 B |
master | CallElasticsearch |
net472 | 2.59μs | 1.22ns | 4.73ns | 0.152 | 0 | 0 | 963 B |
master | CallElasticsearchAsync |
net6.0 | 1.33μs | 0.698ns | 2.7ns | 0.0126 | 0 | 0 | 920 B |
master | CallElasticsearchAsync |
netcoreapp3.1 | 1.63μs | 1.73ns | 6.49ns | 0.0137 | 0 | 0 | 992 B |
master | CallElasticsearchAsync |
net472 | 2.62μs | 0.66ns | 2.38ns | 0.161 | 0 | 0 | 1.02 KB |
#5229 | CallElasticsearch |
net6.0 | 1.23μs | 0.805ns | 3.01ns | 0.0129 | 0 | 0 | 944 B |
#5229 | CallElasticsearch |
netcoreapp3.1 | 1.52μs | 0.494ns | 1.85ns | 0.0128 | 0 | 0 | 944 B |
#5229 | CallElasticsearch |
net472 | 2.53μs | 0.853ns | 3.19ns | 0.152 | 0 | 0 | 963 B |
#5229 | CallElasticsearchAsync |
net6.0 | 1.31μs | 0.873ns | 3.27ns | 0.0125 | 0 | 0 | 920 B |
#5229 | CallElasticsearchAsync |
netcoreapp3.1 | 1.62μs | 0.598ns | 2.24ns | 0.013 | 0 | 0 | 992 B |
#5229 | CallElasticsearchAsync |
net472 | 2.52μs | 0.883ns | 3.42ns | 0.162 | 0 | 0 | 1.02 KB |
Benchmarks.Trace.GraphQLBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #5229
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync‑net472
1.115
1,746.16
1,947.67
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync‑net472 | 1.115 | 1,746.16 | 1,947.67 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | ExecuteAsync |
net6.0 | 1.33μs | 0.617ns | 2.39ns | 0.0126 | 0 | 0 | 920 B |
master | ExecuteAsync |
netcoreapp3.1 | 1.62μs | 0.998ns | 3.74ns | 0.0122 | 0 | 0 | 920 B |
master | ExecuteAsync |
net472 | 1.75μs | 0.689ns | 2.67ns | 0.14 | 0 | 0 | 883 B |
#5229 | ExecuteAsync |
net6.0 | 1.33μs | 0.785ns | 2.94ns | 0.0129 | 0 | 0 | 920 B |
#5229 | ExecuteAsync |
netcoreapp3.1 | 1.59μs | 2.04ns | 7.9ns | 0.0119 | 0 | 0 | 920 B |
#5229 | ExecuteAsync |
net472 | 1.95μs | 0.382ns | 1.48ns | 0.14 | 0 | 0 | 883 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 | 4.14μs | 0.869ns | 3.37ns | 0.029 | 0 | 0 | 2.1 KB |
master | SendAsync |
netcoreapp3.1 | 4.82μs | 1.36ns | 4.9ns | 0.0357 | 0 | 0 | 2.64 KB |
master | SendAsync |
net472 | 7.79μs | 1.75ns | 6.78ns | 0.525 | 0.00389 | 0 | 3.31 KB |
#5229 | SendAsync |
net6.0 | 4.06μs | 1.54ns | 5.75ns | 0.0282 | 0 | 0 | 2.1 KB |
#5229 | SendAsync |
netcoreapp3.1 | 5.03μs | 1.75ns | 6.56ns | 0.035 | 0 | 0 | 2.64 KB |
#5229 | SendAsync |
net472 | 7.78μs | 3.82ns | 14.8ns | 0.524 | 0 | 0 | 3.31 KB |
Benchmarks.Trace.Iast.StringAspectsBenchmark - Same speed ✔️ More allocations ⚠️
More allocations ⚠️ in #5229
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net472
57.9 KB
60.49 KB
2.59 KB
4.48%
Fewer allocations 🎉 in #5229
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0
202.79 KB
201.35 KB
-1.44 KB
-0.71%
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net472 | 57.9 KB | 60.49 KB | 2.59 KB | 4.48% |
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0 | 202.79 KB | 201.35 KB | -1.44 KB | -0.71% |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StringConcatBenchmark |
net6.0 | 59.2μs | 756ns | 7.41μs | 0 | 0 | 0 | 43.44 KB |
master | StringConcatBenchmark |
netcoreapp3.1 | 58μs | 705ns | 6.76μs | 0 | 0 | 0 | 42.64 KB |
master | StringConcatBenchmark |
net472 | 38.6μs | 148ns | 534ns | 0 | 0 | 0 | 57.9 KB |
master | StringConcatAspectBenchmark |
net6.0 | 264μs | 1.32μs | 5.62μs | 0 | 0 | 0 | 202.79 KB |
master | StringConcatAspectBenchmark |
netcoreapp3.1 | 287μs | 1.13μs | 4.66μs | 0 | 0 | 0 | 212.17 KB |
master | StringConcatAspectBenchmark |
net472 | 225μs | 1.78μs | 16.5μs | 0 | 0 | 0 | 221.18 KB |
#5229 | StringConcatBenchmark |
net6.0 | 52μs | 251ns | 1.07μs | 0 | 0 | 0 | 43.44 KB |
#5229 | StringConcatBenchmark |
netcoreapp3.1 | 60.6μs | 658ns | 6.38μs | 0 | 0 | 0 | 42.64 KB |
#5229 | StringConcatBenchmark |
net472 | 38μs | 98.9ns | 342ns | 0 | 0 | 0 | 60.49 KB |
#5229 | StringConcatAspectBenchmark |
net6.0 | 256μs | 3.2μs | 29.2μs | 0 | 0 | 0 | 201.35 KB |
#5229 | StringConcatAspectBenchmark |
netcoreapp3.1 | 279μs | 1.58μs | 10.6μs | 0 | 0 | 0 | 212.23 KB |
#5229 | StringConcatAspectBenchmark |
net472 | 232μs | 2.58μs | 23.3μs | 0 | 0 | 0 | 221.18 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 | 1.53μs | 0.496ns | 1.85ns | 0.0225 | 0 | 0 | 1.58 KB |
master | EnrichedLog |
netcoreapp3.1 | 2.2μs | 1.44ns | 5.56ns | 0.0217 | 0 | 0 | 1.58 KB |
master | EnrichedLog |
net472 | 2.55μs | 3.15ns | 12.2ns | 0.239 | 0 | 0 | 1.51 KB |
#5229 | EnrichedLog |
net6.0 | 1.44μs | 0.876ns | 3.28ns | 0.022 | 0 | 0 | 1.58 KB |
#5229 | EnrichedLog |
netcoreapp3.1 | 2.22μs | 0.897ns | 3.36ns | 0.0214 | 0 | 0 | 1.58 KB |
#5229 | EnrichedLog |
net472 | 2.59μs | 2.47ns | 8.91ns | 0.239 | 0 | 0 | 1.51 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 | 116μs | 208ns | 805ns | 0 | 0 | 0 | 4.22 KB |
master | EnrichedLog |
netcoreapp3.1 | 121μs | 167ns | 623ns | 0 | 0 | 0 | 4.22 KB |
master | EnrichedLog |
net472 | 149μs | 163ns | 631ns | 0.67 | 0.223 | 0 | 4.4 KB |
#5229 | EnrichedLog |
net6.0 | 113μs | 105ns | 394ns | 0 | 0 | 0 | 4.22 KB |
#5229 | EnrichedLog |
netcoreapp3.1 | 119μs | 58.3ns | 218ns | 0.0595 | 0 | 0 | 4.22 KB |
#5229 | EnrichedLog |
net472 | 148μs | 99.6ns | 373ns | 0.661 | 0.22 | 0 | 4.4 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 | 2.97μs | 1.47ns | 5.7ns | 0.0296 | 0 | 0 | 2.14 KB |
master | EnrichedLog |
netcoreapp3.1 | 4.06μs | 2.15ns | 8.03ns | 0.0283 | 0 | 0 | 2.14 KB |
master | EnrichedLog |
net472 | 4.89μs | 4.34ns | 16.8ns | 0.308 | 0 | 0 | 1.95 KB |
#5229 | EnrichedLog |
net6.0 | 3.04μs | 0.779ns | 2.92ns | 0.0304 | 0 | 0 | 2.14 KB |
#5229 | EnrichedLog |
netcoreapp3.1 | 4.14μs | 3.03ns | 11.7ns | 0.029 | 0 | 0 | 2.14 KB |
#5229 | EnrichedLog |
net472 | 4.93μs | 4.26ns | 16.5ns | 0.31 | 0 | 0 | 1.95 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 | 1.4μs | 0.813ns | 3.15ns | 0.0155 | 0 | 0 | 1.11 KB |
master | SendReceive |
netcoreapp3.1 | 1.78μs | 0.766ns | 2.76ns | 0.0142 | 0 | 0 | 1.11 KB |
master | SendReceive |
net472 | 2.17μs | 1.76ns | 6.59ns | 0.178 | 0 | 0 | 1.12 KB |
#5229 | SendReceive |
net6.0 | 1.29μs | 0.594ns | 2.22ns | 0.0155 | 0 | 0 | 1.11 KB |
#5229 | SendReceive |
netcoreapp3.1 | 1.8μs | 1.29ns | 4.99ns | 0.0143 | 0 | 0 | 1.11 KB |
#5229 | SendReceive |
net472 | 2.12μs | 2.13ns | 8.25ns | 0.178 | 0 | 0 | 1.12 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.78μs | 0.897ns | 3.48ns | 0.021 | 0 | 0 | 1.54 KB |
master | EnrichedLog |
netcoreapp3.1 | 3.93μs | 3.42ns | 13.3ns | 0.0216 | 0 | 0 | 1.58 KB |
master | EnrichedLog |
net472 | 4.39μs | 2.22ns | 8.58ns | 0.313 | 0 | 0 | 1.97 KB |
#5229 | EnrichedLog |
net6.0 | 2.78μs | 0.591ns | 2.21ns | 0.021 | 0 | 0 | 1.54 KB |
#5229 | EnrichedLog |
netcoreapp3.1 | 3.87μs | 0.79ns | 2.85ns | 0.0215 | 0 | 0 | 1.58 KB |
#5229 | EnrichedLog |
net472 | 4.25μs | 1.69ns | 6.1ns | 0.312 | 0 | 0 | 1.97 KB |
Benchmarks.Trace.SpanBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #5229
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net6.0
1.178
447.51
527.02
Faster 🎉 in #5229
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0
1.128
669.41
593.49
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net6.0 | 1.178 | 447.51 | 527.02 |
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 | 1.128 | 669.41 | 593.49 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 447ns | 0.75ns | 2.9ns | 0.00767 | 0 | 0 | 544 B |
master | StartFinishSpan |
netcoreapp3.1 | 675ns | 1.55ns | 5.6ns | 0.00743 | 0 | 0 | 544 B |
master | StartFinishSpan |
net472 | 720ns | 1.24ns | 4.8ns | 0.0867 | 0 | 0 | 546 B |
master | StartFinishScope |
net6.0 | 669ns | 0.926ns | 3.59ns | 0.00928 | 0 | 0 | 664 B |
master | StartFinishScope |
netcoreapp3.1 | 799ns | 0.698ns | 2.42ns | 0.00885 | 0 | 0 | 664 B |
master | StartFinishScope |
net472 | 930ns | 2.31ns | 8.94ns | 0.0991 | 0 | 0 | 626 B |
#5229 | StartFinishSpan |
net6.0 | 527ns | 0.695ns | 2.6ns | 0.00771 | 0 | 0 | 544 B |
#5229 | StartFinishSpan |
netcoreapp3.1 | 686ns | 1.33ns | 5.15ns | 0.00727 | 0 | 0 | 544 B |
#5229 | StartFinishSpan |
net472 | 731ns | 1.52ns | 5.89ns | 0.0864 | 0 | 0 | 546 B |
#5229 | StartFinishScope |
net6.0 | 593ns | 1.01ns | 3.93ns | 0.00938 | 0 | 0 | 664 B |
#5229 | StartFinishScope |
netcoreapp3.1 | 787ns | 3.13ns | 12.1ns | 0.00897 | 0 | 0 | 664 B |
#5229 | StartFinishScope |
net472 | 888ns | 2.75ns | 10.6ns | 0.0992 | 0 | 0 | 626 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 | 673ns | 1.19ns | 4.62ns | 0.00935 | 0 | 0 | 664 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 1E+03ns | 1.84ns | 7.13ns | 0.00898 | 0 | 0 | 664 B |
master | RunOnMethodBegin |
net472 | 1.14μs | 1.98ns | 7.67ns | 0.0994 | 0 | 0 | 626 B |
#5229 | RunOnMethodBegin |
net6.0 | 730ns | 1.36ns | 5.26ns | 0.00911 | 0 | 0 | 664 B |
#5229 | RunOnMethodBegin |
netcoreapp3.1 | 969ns | 3.63ns | 14.1ns | 0.00864 | 0 | 0 | 664 B |
#5229 | RunOnMethodBegin |
net472 | 1.07μs | 1.46ns | 5.67ns | 0.0993 | 0 | 0 | 626 B |
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 (5229) (10.953M) : 0, 10953098
master (11.301M) : 0, 11301171
benchmarks/2.9.0 (11.048M) : 0, 11047662
section Automatic
This PR (5229) (7.682M) : 0, 7682451
master (7.786M) : 0, 7786387
benchmarks/2.9.0 (7.876M) : 0, 7876321
section Trace stats
This PR (5229) (8.088M) : 0, 8088370
master (8.162M) : 0, 8161989
section Manual
This PR (5229) (9.672M) : 0, 9672310
master (9.926M) : 0, 9926297
section Manual + Automatic
This PR (5229) (7.326M) : 0, 7325838
master (7.412M) : 0, 7411648
section Version Conflict
This PR (5229) (6.525M) : 0, 6524714
master (6.730M) : 0, 6730224
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5229) (9.432M) : 0, 9432101
master (9.529M) : 0, 9529282
benchmarks/2.9.0 (9.382M) : 0, 9381950
section Automatic
This PR (5229) (6.652M) : 0, 6651729
master (6.506M) : 0, 6505611
section Trace stats
This PR (5229) (6.844M) : 0, 6843619
master (6.940M) : 0, 6940301
section Manual
This PR (5229) (8.143M) : 0, 8142761
master (8.383M) : 0, 8383218
section Manual + Automatic
This PR (5229) (6.071M) : 0, 6071105
master (6.263M) : 0, 6262794
section Version Conflict
This PR (5229) (5.683M) : 0, 5682586
master (5.698M) : 0, 5698114
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5229) (9.856M) : 0, 9856410
master (10.221M) : 0, 10221490
benchmarks/2.9.0 (10.272M) : 0, 10271759
section Automatic
This PR (5229) (7.062M) : 0, 7061503
master (7.341M) : 0, 7340809
benchmarks/2.9.0 (7.644M) : 0, 7644353
section Trace stats
This PR (5229) (7.347M) : 0, 7346971
master (7.697M) : 0, 7697428
section Manual
This PR (5229) (8.673M) : crit ,0, 8673034
master (9.139M) : 0, 9138836
section Manual + Automatic
This PR (5229) (6.967M) : 0, 6966905
master (7.059M) : 0, 7058587
section Version Conflict
This PR (5229) (6.162M) : crit ,0, 6162233
master (6.504M) : 0, 6503694
gantt
title Throughput Linux x64 (ASM) (Total requests)
dateFormat X
axisFormat %s
section Baseline
master (7.461M) : 0, 7461396
section No attack
master (1.854M) : 0, 1853890
section Attack
master (1.450M) : 0, 1449724
section Blocking
master (3.161M) : 0, 3160542
section IAST default
master (6.464M) : 0, 6464188
section IAST full
master (5.600M) : 0, 5600403
section Base vuln
master (0.918M) : 0, 917723
section IAST vuln
master (0.859M) : 0, 859223
|
5c0862d
to
d381d47
Compare
d381d47
to
9d7d00f
Compare
Co-authored-by: Lucas Pimentel <lucas.pimentel@datadoghq.com>
Summary of changes
Add a rate limit for the
TraceRateLimiter
log file written when a trace is droppedReason for change
We potentially spam customers logs with the warning. The log is expected to be written precisely when the service is under load, so we expect to see it a lot if it's triggered. This could cause customer log files to rapidly fill up.
Implementation details
At worst, this means we write two logs per interval, instead of an unbounded number.
Test coverage
I'll check in the unit test logs to make sure they're not there any more, I think this is good enough