-
Notifications
You must be signed in to change notification settings - Fork 147
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
[ASM] API Security Endpoints collection (kestrel) #6733
base: master
Are you sure you want to change the base?
Conversation
559d29b
to
0cf85db
Compare
Datadog ReportAll test runs ❌ 2 Total Test Services: 1 Failed, 1 Passed Test Services
❌ Failed Tests (451)
|
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 (6733) - mean (69ms) : 67, 71
. : milestone, 69,
master - mean (69ms) : 66, 72
. : milestone, 69,
section CallTarget+Inlining+NGEN
This PR (6733) - mean (1,008ms) : 982, 1034
. : milestone, 1008,
master - mean (1,003ms) : 979, 1027
. : milestone, 1003,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6733) - mean (103ms) : 100, 105
. : milestone, 103,
master - mean (102ms) : 100, 104
. : milestone, 102,
section CallTarget+Inlining+NGEN
This PR (6733) - mean (686ms) : 669, 704
. : milestone, 686,
master - mean (683ms) : 666, 700
. : milestone, 683,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6733) - mean (89ms) : 87, 91
. : milestone, 89,
master - mean (89ms) : 87, 91
. : milestone, 89,
section CallTarget+Inlining+NGEN
This PR (6733) - mean (639ms) : 618, 659
. : milestone, 639,
master - mean (640ms) : 624, 657
. : milestone, 640,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6733) - mean (191ms) : 187, 194
. : milestone, 191,
master - mean (191ms) : 187, 195
. : milestone, 191,
section CallTarget+Inlining+NGEN
This PR (6733) - mean (1,111ms) : 1088, 1133
. : milestone, 1111,
master - mean (1,108ms) : 1084, 1131
. : milestone, 1108,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6733) - mean (271ms) : 265, 276
. : milestone, 271,
master - mean (270ms) : 267, 273
. : milestone, 270,
section CallTarget+Inlining+NGEN
This PR (6733) - mean (874ms) : 842, 907
. : milestone, 874,
master - mean (876ms) : 850, 902
. : milestone, 876,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6733) - mean (262ms) : 259, 265
. : milestone, 262,
master - mean (264ms) : 257, 270
. : milestone, 264,
section CallTarget+Inlining+NGEN
This PR (6733) - mean (851ms) : 821, 881
. : milestone, 851,
master - mean (858ms) : 823, 893
. : milestone, 858,
|
Benchmarks Report for tracer 🐌Benchmarks for #6733 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 - Slower
|
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑netcoreapp3.1 | 1.287 | 735,414.00 | 946,293.97 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | WriteAndFlushEnrichedTraces |
net6.0 | 575μs | 3.15μs | 17.8μs | 0.573 | 0 | 0 | 41.63 KB |
master | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 746μs | 4.34μs | 37.3μs | 0.374 | 0 | 0 | 41.6 KB |
master | WriteAndFlushEnrichedTraces |
net472 | 848μs | 3.27μs | 12.7μs | 8.7 | 2.77 | 0.396 | 53.33 KB |
#6733 | WriteAndFlushEnrichedTraces |
net6.0 | 582μs | 2.97μs | 13.9μs | 0.619 | 0 | 0 | 41.6 KB |
#6733 | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 953μs | 5.08μs | 25.4μs | 0.45 | 0 | 0 | 41.53 KB |
#6733 | WriteAndFlushEnrichedTraces |
net472 | 882μs | 3.35μs | 11.6μs | 8.25 | 2.6 | 0.434 | 53.27 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.4μs | 1.93ns | 7.46ns | 0.0147 | 0 | 0 | 1.02 KB |
master | ExecuteNonQuery |
netcoreapp3.1 | 1.83μs | 2.32ns | 8.99ns | 0.0136 | 0 | 0 | 1.02 KB |
master | ExecuteNonQuery |
net472 | 2.08μs | 2.64ns | 9.89ns | 0.157 | 0.00105 | 0 | 987 B |
#6733 | ExecuteNonQuery |
net6.0 | 1.39μs | 0.898ns | 3.48ns | 0.0145 | 0 | 0 | 1.02 KB |
#6733 | ExecuteNonQuery |
netcoreapp3.1 | 1.73μs | 2.53ns | 9.48ns | 0.0137 | 0 | 0 | 1.02 KB |
#6733 | ExecuteNonQuery |
net472 | 1.98μs | 1.69ns | 6.32ns | 0.156 | 0.00099 | 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.27μs | 0.443ns | 1.66ns | 0.014 | 0 | 0 | 976 B |
master | CallElasticsearch |
netcoreapp3.1 | 1.59μs | 0.601ns | 2.17ns | 0.0131 | 0 | 0 | 976 B |
master | CallElasticsearch |
net472 | 2.42μs | 1.87ns | 7.25ns | 0.158 | 0 | 0 | 995 B |
master | CallElasticsearchAsync |
net6.0 | 1.53μs | 0.987ns | 3.82ns | 0.0131 | 0 | 0 | 952 B |
master | CallElasticsearchAsync |
netcoreapp3.1 | 1.73μs | 0.598ns | 2.31ns | 0.0136 | 0 | 0 | 1.02 KB |
master | CallElasticsearchAsync |
net472 | 2.59μs | 1.1ns | 4.25ns | 0.167 | 0 | 0 | 1.05 KB |
#6733 | CallElasticsearch |
net6.0 | 1.21μs | 0.563ns | 2.18ns | 0.0133 | 0 | 0 | 976 B |
#6733 | CallElasticsearch |
netcoreapp3.1 | 1.58μs | 0.976ns | 3.65ns | 0.0134 | 0 | 0 | 976 B |
#6733 | CallElasticsearch |
net472 | 2.64μs | 0.838ns | 3.14ns | 0.158 | 0 | 0 | 995 B |
#6733 | CallElasticsearchAsync |
net6.0 | 1.42μs | 0.751ns | 2.81ns | 0.0135 | 0 | 0 | 952 B |
#6733 | CallElasticsearchAsync |
netcoreapp3.1 | 1.57μs | 1.73ns | 6.69ns | 0.0133 | 0 | 0 | 1.02 KB |
#6733 | CallElasticsearchAsync |
net472 | 2.63μs | 0.904ns | 3.5ns | 0.167 | 0 | 0 | 1.05 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.29μs | 0.805ns | 3.01ns | 0.0135 | 0 | 0 | 952 B |
master | ExecuteAsync |
netcoreapp3.1 | 1.64μs | 1ns | 3.61ns | 0.0123 | 0 | 0 | 952 B |
master | ExecuteAsync |
net472 | 1.88μs | 0.424ns | 1.64ns | 0.145 | 0 | 0 | 915 B |
#6733 | ExecuteAsync |
net6.0 | 1.33μs | 0.615ns | 2.3ns | 0.0134 | 0 | 0 | 952 B |
#6733 | ExecuteAsync |
netcoreapp3.1 | 1.66μs | 0.852ns | 3.3ns | 0.0133 | 0 | 0 | 952 B |
#6733 | ExecuteAsync |
net472 | 1.83μs | 0.66ns | 2.55ns | 0.145 | 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 | 4.34μs | 1.12ns | 4.18ns | 0.0327 | 0 | 0 | 2.31 KB |
master | SendAsync |
netcoreapp3.1 | 5.37μs | 3.02ns | 11.7ns | 0.0374 | 0 | 0 | 2.85 KB |
master | SendAsync |
net472 | 7.53μs | 2.15ns | 8.05ns | 0.494 | 0 | 0 | 3.12 KB |
#6733 | SendAsync |
net6.0 | 4.46μs | 0.875ns | 3.28ns | 0.0332 | 0 | 0 | 2.31 KB |
#6733 | SendAsync |
netcoreapp3.1 | 5.38μs | 2.48ns | 8.95ns | 0.0376 | 0 | 0 | 2.85 KB |
#6733 | SendAsync |
net472 | 7.46μs | 1.5ns | 5.8ns | 0.493 | 0 | 0 | 3.12 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.45μs | 0.884ns | 3.31ns | 0.0232 | 0 | 0 | 1.64 KB |
master | EnrichedLog |
netcoreapp3.1 | 2.2μs | 1.48ns | 5.34ns | 0.0226 | 0 | 0 | 1.64 KB |
master | EnrichedLog |
net472 | 2.61μs | 1.21ns | 4.51ns | 0.249 | 0 | 0 | 1.57 KB |
#6733 | EnrichedLog |
net6.0 | 1.42μs | 0.716ns | 2.68ns | 0.0234 | 0 | 0 | 1.64 KB |
#6733 | EnrichedLog |
netcoreapp3.1 | 2.11μs | 0.928ns | 3.35ns | 0.0222 | 0 | 0 | 1.64 KB |
#6733 | EnrichedLog |
net472 | 2.58μs | 0.844ns | 3.16ns | 0.249 | 0 | 0 | 1.57 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 | 112μs | 204ns | 789ns | 0.0566 | 0 | 0 | 4.28 KB |
master | EnrichedLog |
netcoreapp3.1 | 117μs | 208ns | 780ns | 0 | 0 | 0 | 4.28 KB |
master | EnrichedLog |
net472 | 148μs | 206ns | 770ns | 0.665 | 0.222 | 0 | 4.46 KB |
#6733 | EnrichedLog |
net6.0 | 114μs | 136ns | 525ns | 0 | 0 | 0 | 4.28 KB |
#6733 | EnrichedLog |
netcoreapp3.1 | 116μs | 236ns | 915ns | 0.0577 | 0 | 0 | 4.28 KB |
#6733 | EnrichedLog |
net472 | 150μs | 73.3ns | 254ns | 0.672 | 0.224 | 0 | 4.46 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.19ns | 4.59ns | 0.0298 | 0 | 0 | 2.2 KB |
master | EnrichedLog |
netcoreapp3.1 | 4.17μs | 1.12ns | 4.34ns | 0.0293 | 0 | 0 | 2.2 KB |
master | EnrichedLog |
net472 | 4.8μs | 1.17ns | 4.53ns | 0.32 | 0 | 0 | 2.02 KB |
#6733 | EnrichedLog |
net6.0 | 2.97μs | 0.999ns | 3.87ns | 0.0312 | 0 | 0 | 2.2 KB |
#6733 | EnrichedLog |
netcoreapp3.1 | 4.24μs | 2.07ns | 8.01ns | 0.0297 | 0 | 0 | 2.2 KB |
#6733 | EnrichedLog |
net472 | 4.87μs | 0.894ns | 3.46ns | 0.321 | 0 | 0 | 2.02 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.35μs | 0.595ns | 2.31ns | 0.0162 | 0 | 0 | 1.14 KB |
master | SendReceive |
netcoreapp3.1 | 1.81μs | 0.881ns | 3.3ns | 0.0154 | 0 | 0 | 1.14 KB |
master | SendReceive |
net472 | 2.14μs | 1.16ns | 4.48ns | 0.183 | 0 | 0 | 1.16 KB |
#6733 | SendReceive |
net6.0 | 1.36μs | 0.711ns | 2.76ns | 0.0162 | 0 | 0 | 1.14 KB |
#6733 | SendReceive |
netcoreapp3.1 | 1.89μs | 1.01ns | 3.92ns | 0.015 | 0 | 0 | 1.14 KB |
#6733 | SendReceive |
net472 | 2.17μs | 0.658ns | 2.55ns | 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.72μs | 1.73ns | 6.49ns | 0.0218 | 0 | 0 | 1.6 KB |
master | EnrichedLog |
netcoreapp3.1 | 3.95μs | 2.2ns | 8.52ns | 0.0217 | 0 | 0 | 1.65 KB |
master | EnrichedLog |
net472 | 4.29μs | 1.29ns | 4.66ns | 0.324 | 0 | 0 | 2.04 KB |
#6733 | EnrichedLog |
net6.0 | 2.99μs | 4.58ns | 17.7ns | 0.0227 | 0 | 0 | 1.6 KB |
#6733 | EnrichedLog |
netcoreapp3.1 | 3.95μs | 3.02ns | 11.7ns | 0.0218 | 0 | 0 | 1.65 KB |
#6733 | EnrichedLog |
net472 | 4.26μs | 1.51ns | 5.85ns | 0.322 | 0 | 0 | 2.04 KB |
Benchmarks.Trace.SpanBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #6733
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net6.0
1.156
417.06
482.26
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net6.0 | 1.156 | 417.06 | 482.26 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 417ns | 0.11ns | 0.425ns | 0.00815 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 628ns | 0.892ns | 3.46ns | 0.00796 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 603ns | 0.204ns | 0.791ns | 0.0917 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 479ns | 0.113ns | 0.422ns | 0.00981 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 724ns | 0.469ns | 1.75ns | 0.00937 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 865ns | 0.862ns | 3.23ns | 0.104 | 0 | 0 | 658 B |
#6733 | StartFinishSpan |
net6.0 | 482ns | 0.174ns | 0.672ns | 0.00817 | 0 | 0 | 576 B |
#6733 | StartFinishSpan |
netcoreapp3.1 | 574ns | 0.485ns | 1.88ns | 0.00772 | 0 | 0 | 576 B |
#6733 | StartFinishSpan |
net472 | 657ns | 0.109ns | 0.422ns | 0.0916 | 0 | 0 | 578 B |
#6733 | StartFinishScope |
net6.0 | 483ns | 0.13ns | 0.485ns | 0.00965 | 0 | 0 | 696 B |
#6733 | StartFinishScope |
netcoreapp3.1 | 770ns | 0.339ns | 1.31ns | 0.00961 | 0 | 0 | 696 B |
#6733 | StartFinishScope |
net472 | 806ns | 0.202ns | 0.783ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #6733
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0
1.146
685.19
785.55
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0 | 1.146 | 685.19 | 785.55 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 685ns | 0.291ns | 1.13ns | 0.00995 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 999ns | 1.37ns | 5.3ns | 0.00905 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.01μs | 0.135ns | 0.506ns | 0.104 | 0 | 0 | 658 B |
#6733 | RunOnMethodBegin |
net6.0 | 785ns | 0.173ns | 0.669ns | 0.00983 | 0 | 0 | 696 B |
#6733 | RunOnMethodBegin |
netcoreapp3.1 | 931ns | 0.299ns | 1.12ns | 0.00922 | 0 | 0 | 696 B |
#6733 | RunOnMethodBegin |
net472 | 1.08μs | 0.329ns | 1.27ns | 0.104 | 0 | 0 | 658 B |
Benchmarks Report for appsec 🐌Benchmarks for #6733 compared to master:
The following thresholds were used for comparing the benchmark speeds:
Allocation changes below 0.5% are ignored. Benchmark detailsBenchmarks.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.Iast.StringAspectsBenchmark - Same speed ✔️ More allocations
|
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net472 | 59.07 KB | 60.76 KB | 1.69 KB | 2.86% |
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0 | 254.31 KB | 255.6 KB | 1.29 KB | 0.51% |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StringConcatBenchmark |
net6.0 | 59.8μs | 719ns | 7.08μs | 0 | 0 | 0 | 43.44 KB |
master | StringConcatBenchmark |
netcoreapp3.1 | 55μs | 191ns | 716ns | 0 | 0 | 0 | 42.64 KB |
master | StringConcatBenchmark |
net472 | 37.4μs | 59.7ns | 223ns | 0 | 0 | 0 | 59.07 KB |
master | StringConcatAspectBenchmark |
net6.0 | 315μs | 1.77μs | 11.3μs | 0 | 0 | 0 | 254.31 KB |
master | StringConcatAspectBenchmark |
netcoreapp3.1 | 349μs | 1.97μs | 12.6μs | 0 | 0 | 0 | 253.76 KB |
master | StringConcatAspectBenchmark |
net472 | 280μs | 6.09μs | 59.3μs | 0 | 0 | 0 | 278.53 KB |
#6733 | StringConcatBenchmark |
net6.0 | 55.7μs | 611ns | 5.9μs | 0 | 0 | 0 | 43.44 KB |
#6733 | StringConcatBenchmark |
netcoreapp3.1 | 60.1μs | 828ns | 8.11μs | 0 | 0 | 0 | 42.64 KB |
#6733 | StringConcatBenchmark |
net472 | 36.8μs | 127ns | 477ns | 0 | 0 | 0 | 60.76 KB |
#6733 | StringConcatAspectBenchmark |
net6.0 | 323μs | 1.78μs | 10.8μs | 0 | 0 | 0 | 255.6 KB |
#6733 | StringConcatAspectBenchmark |
netcoreapp3.1 | 349μs | 2.01μs | 19.1μs | 0 | 0 | 0 | 254.52 KB |
#6733 | StringConcatAspectBenchmark |
net472 | 276μs | 4.47μs | 43.1μs | 0 | 0 | 0 | 278.53 KB |
e236b88
to
2aa63e4
Compare
c5861cc
to
6dc5cc1
Compare
6dc5cc1
to
4a57c08
Compare
beb3f7a
to
6b84e79
Compare
6b84e79
to
7eb096b
Compare
Summary of changes
This PR introduce the collection of endpoints using ASP.NET Core in part of Api Security.
RFC.
2 new environment variables (PR on dd-go):
DD_API_SECURITY_ENDPOINT_COLLECTION_ENABLED
DD_API_SECURITY_ENDPOINT_COLLECTION_MESSAGE_LIMIT
Sending a new telemetry payload
asm-endpoints
that includes the detected endpoints.Implementation details
This PR adds 2 new instrumentation points:
KestrelServerImpl
just before the server starts accepting connection to collect all router endpointsTest coverage
Other details
The PR for ASP.NET (framework) will come in a second part.
There is some endpoints that we can't report at the moment with the current implementation. Endpoints configured as middleware other than with
.Map()
needs to be instrumented (like for exampleUseDirectoryBrowser
). The listing of them and their support will come later.