-
Notifications
You must be signed in to change notification settings - Fork 150
Add DD_AGENT_FEATURE_POLLING_ENABLED setting
#7616
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
This comment has been minimized.
This comment has been minimized.
Execution-Time Benchmarks Report ⏱️Execution-time results for samples comparing This PR (7616) 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 (7616) - mean (74ms) : 71, 78
master - mean (77ms) : 72, 82
section Bailout
This PR (7616) - mean (81ms) : 76, 86
master - mean (80ms) : 76, 84
section CallTarget+Inlining+NGEN
This PR (7616) - mean (1,111ms) : 1044, 1177
master - mean (1,131ms) : 1058, 1205
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 (7616) - mean (119ms) : 112, 125
master - mean (120ms) : 114, 126
section Bailout
This PR (7616) - mean (119ms) : 111, 126
master - mean (120ms) : 115, 126
section CallTarget+Inlining+NGEN
This PR (7616) - mean (806ms) : 762, 851
master - mean (819ms) : 765, 873
FakeDbCommand (.NET 6)gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7616) - mean (103ms) : 97, 109
master - mean (105ms) : 98, 112
section Bailout
This PR (7616) - mean (105ms) : 99, 110
master - mean (108ms) : 100, 115
section CallTarget+Inlining+NGEN
This PR (7616) - mean (753ms) : 711, 795
master - mean (767ms) : 724, 810
FakeDbCommand (.NET 8)gantt
title Execution time (ms) FakeDbCommand (.NET 8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7616) - mean (102ms) : 97, 107
master - mean (104ms) : 98, 110
section Bailout
This PR (7616) - mean (105ms) : 98, 111
master - mean (104ms) : 97, 111
section CallTarget+Inlining+NGEN
This PR (7616) - mean (707ms) : 675, 739
master - mean (717ms) : 686, 747
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 (7616) - mean (193ms) : 189, 197
master - mean (194ms) : 189, 199
section Bailout
This PR (7616) - mean (197ms) : 194, 200
master - mean (197ms) : 194, 200
section CallTarget+Inlining+NGEN
This PR (7616) - mean (1,167ms) : 1108, 1225
master - mean (1,175ms) : 1116, 1234
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 (7616) - mean (276ms) : 271, 282
master - mean (277ms) : 271, 284
section Bailout
This PR (7616) - mean (278ms) : 272, 284
master - mean (278ms) : 274, 282
section CallTarget+Inlining+NGEN
This PR (7616) - mean (943ms) : 896, 990
master - mean (964ms) : 914, 1014
HttpMessageHandler (.NET 6)gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7616) - mean (269ms) : 266, 273
master - mean (271ms) : 266, 276
section Bailout
This PR (7616) - mean (272ms) : 265, 278
master - mean (270ms) : 266, 274
section CallTarget+Inlining+NGEN
This PR (7616) - mean (935ms) : 879, 991
master - mean (934ms) : 880, 988
HttpMessageHandler (.NET 8)gantt
title Execution time (ms) HttpMessageHandler (.NET 8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (7616) - mean (268ms) : 264, 272
master - mean (269ms) : 263, 275
section Bailout
This PR (7616) - mean (269ms) : 264, 275
master - mean (269ms) : 266, 272
section CallTarget+Inlining+NGEN
This PR (7616) - mean (848ms) : 830, 865
master - mean (860ms) : 843, 878
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
tracer/test/Datadog.Trace.Tests/Telemetry/config_norm_rules.json
Outdated
Show resolved
Hide resolved
DD_DISCOVERY_SERVICE_ENABLED to disable agent discovery service
DD_DISCOVERY_SERVICE_ENABLED to disable agent discovery serviceDD_DISCOVERY_SERVICE_ENABLED setting
7ac24dd to
252a234
Compare
|
Sorry, different feature. "Service discovery" vs "discovery service". I changed the name to |
we can change it to |
5ab8f99 to
2fbfdd1
Compare
BenchmarksBenchmarks Report for benchmark platform 🐌Benchmarks for #7616 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‑net472 | 5.99 KB | 6.09 KB | 97 B | 1.62% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StartStopWithChild |
net6.0 | 10.4μs | 58.1ns | 394ns | 0 | 0 | 0 | 5.51 KB |
| master | StartStopWithChild |
netcoreapp3.1 | 13.6μs | 67.3ns | 293ns | 0 | 0 | 0 | 5.73 KB |
| master | StartStopWithChild |
net472 | 21.7μs | 116ns | 612ns | 1.01 | 0.405 | 0.101 | 5.99 KB |
| #7616 | StartStopWithChild |
net6.0 | 10.6μs | 57.8ns | 352ns | 0 | 0 | 0 | 5.52 KB |
| #7616 | StartStopWithChild |
netcoreapp3.1 | 14.3μs | 66ns | 264ns | 0 | 0 | 0 | 5.73 KB |
| #7616 | StartStopWithChild |
net472 | 22.8μs | 117ns | 641ns | 0.947 | 0.237 | 0 | 6.09 KB |
Benchmarks.Trace.AgentWriterBenchmark - Same speed ✔️ Fewer allocations 🎉
Fewer allocations 🎉 in #7616
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces‑net472
3.35 KB
3.31 KB
-46 B
-1.37%
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces‑net472 | 3.35 KB | 3.31 KB | -46 B | -1.37% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | WriteAndFlushEnrichedTraces |
net6.0 | 949μs | 244ns | 947ns | 0 | 0 | 0 | 2.71 KB |
| master | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 1.03ms | 205ns | 795ns | 0 | 0 | 0 | 2.7 KB |
| master | WriteAndFlushEnrichedTraces |
net472 | 1.22ms | 1.26μs | 4.89μs | 0 | 0 | 0 | 3.35 KB |
| #7616 | WriteAndFlushEnrichedTraces |
net6.0 | 925μs | 166ns | 622ns | 0 | 0 | 0 | 2.71 KB |
| #7616 | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 1.02ms | 320ns | 1.24μs | 0 | 0 | 0 | 2.7 KB |
| #7616 | WriteAndFlushEnrichedTraces |
net472 | 1.2ms | 485ns | 1.68μs | 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.07μs | 6.16ns | 39.4ns | 0 | 0 | 0 | 1.22 KB |
| master | AllCycleSimpleBody |
netcoreapp3.1 | 1.44μs | 7.63ns | 37.4ns | 0 | 0 | 0 | 1.2 KB |
| master | AllCycleSimpleBody |
net472 | 1.02μs | 0.441ns | 1.65ns | 0.193 | 0 | 0 | 1.23 KB |
| master | AllCycleMoreComplexBody |
net6.0 | 7.12μs | 33.7ns | 135ns | 0 | 0 | 0 | 4.72 KB |
| master | AllCycleMoreComplexBody |
netcoreapp3.1 | 9.24μs | 10.5ns | 40.8ns | 0 | 0 | 0 | 4.62 KB |
| master | AllCycleMoreComplexBody |
net472 | 7.56μs | 5.55ns | 21.5ns | 0.718 | 0 | 0 | 4.74 KB |
| master | ObjectExtractorSimpleBody |
net6.0 | 313ns | 1.68ns | 9.52ns | 0 | 0 | 0 | 280 B |
| master | ObjectExtractorSimpleBody |
netcoreapp3.1 | 403ns | 1.94ns | 8.23ns | 0 | 0 | 0 | 272 B |
| master | ObjectExtractorSimpleBody |
net472 | 295ns | 0.0319ns | 0.12ns | 0.0432 | 0 | 0 | 281 B |
| master | ObjectExtractorMoreComplexBody |
net6.0 | 6.39μs | 28.9ns | 108ns | 0 | 0 | 0 | 3.78 KB |
| master | ObjectExtractorMoreComplexBody |
netcoreapp3.1 | 7.78μs | 35.9ns | 139ns | 0 | 0 | 0 | 3.69 KB |
| master | ObjectExtractorMoreComplexBody |
net472 | 6.7μs | 3.35ns | 12.5ns | 0.6 | 0 | 0 | 3.8 KB |
| #7616 | AllCycleSimpleBody |
net6.0 | 1.08μs | 5.5ns | 26.4ns | 0 | 0 | 0 | 1.22 KB |
| #7616 | AllCycleSimpleBody |
netcoreapp3.1 | 1.4μs | 0.757ns | 2.83ns | 0 | 0 | 0 | 1.2 KB |
| #7616 | AllCycleSimpleBody |
net472 | 1.02μs | 1.44ns | 5.37ns | 0.193 | 0 | 0 | 1.23 KB |
| #7616 | AllCycleMoreComplexBody |
net6.0 | 7.03μs | 37ns | 192ns | 0 | 0 | 0 | 4.72 KB |
| #7616 | AllCycleMoreComplexBody |
netcoreapp3.1 | 9.17μs | 4.03ns | 15.6ns | 0 | 0 | 0 | 4.62 KB |
| #7616 | AllCycleMoreComplexBody |
net472 | 7.68μs | 3.16ns | 12.2ns | 0.729 | 0 | 0 | 4.74 KB |
| #7616 | ObjectExtractorSimpleBody |
net6.0 | 324ns | 1.68ns | 8.05ns | 0 | 0 | 0 | 280 B |
| #7616 | ObjectExtractorSimpleBody |
netcoreapp3.1 | 404ns | 2.04ns | 9.36ns | 0 | 0 | 0 | 272 B |
| #7616 | ObjectExtractorSimpleBody |
net472 | 296ns | 0.0179ns | 0.0671ns | 0.0432 | 0 | 0 | 281 B |
| #7616 | ObjectExtractorMoreComplexBody |
net6.0 | 6.33μs | 1.65ns | 6.38ns | 0 | 0 | 0 | 3.78 KB |
| #7616 | ObjectExtractorMoreComplexBody |
netcoreapp3.1 | 7.77μs | 37.5ns | 150ns | 0 | 0 | 0 | 3.69 KB |
| #7616 | ObjectExtractorMoreComplexBody |
net472 | 6.73μs | 2.68ns | 10.4ns | 0.571 | 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.6μs | 108ns | 418ns | 0 | 0 | 0 | 32.4 KB |
| master | EncodeArgs |
netcoreapp3.1 | 97.2μs | 335ns | 1.3μs | 0 | 0 | 0 | 32.4 KB |
| master | EncodeArgs |
net472 | 110μs | 39.9ns | 144ns | 4.99 | 0 | 0 | 32.51 KB |
| master | EncodeLegacyArgs |
net6.0 | 145μs | 20.3ns | 78.5ns | 0 | 0 | 0 | 2.15 KB |
| master | EncodeLegacyArgs |
netcoreapp3.1 | 199μs | 281ns | 1.09μs | 0 | 0 | 0 | 2.14 KB |
| master | EncodeLegacyArgs |
net472 | 262μs | 65.8ns | 255ns | 0 | 0 | 0 | 2.16 KB |
| #7616 | EncodeArgs |
net6.0 | 77.4μs | 251ns | 974ns | 0 | 0 | 0 | 32.4 KB |
| #7616 | EncodeArgs |
netcoreapp3.1 | 97.1μs | 49.9ns | 193ns | 0 | 0 | 0 | 32.4 KB |
| #7616 | EncodeArgs |
net472 | 110μs | 183ns | 710ns | 5.03 | 0 | 0 | 32.51 KB |
| #7616 | EncodeLegacyArgs |
net6.0 | 143μs | 36.6ns | 142ns | 0 | 0 | 0 | 2.15 KB |
| #7616 | EncodeLegacyArgs |
netcoreapp3.1 | 198μs | 101ns | 379ns | 0 | 0 | 0 | 2.14 KB |
| #7616 | EncodeLegacyArgs |
net472 | 265μs | 41.8ns | 162ns | 0 | 0 | 0 | 2.16 KB |
Benchmarks.Trace.Asm.AppSecWafBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #7616
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark‑netcoreapp3.1
2.085
409,719.46
854,124.58
| Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark‑netcoreapp3.1 | 2.085 | 409,719.46 | 854,124.58 |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | RunWafRealisticBenchmark |
net6.0 | 401μs | 24.7ns | 92.4ns | 0 | 0 | 0 | 4.56 KB |
| master | RunWafRealisticBenchmark |
netcoreapp3.1 | 410μs | 61.6ns | 230ns | 0 | 0 | 0 | 4.48 KB |
| master | RunWafRealisticBenchmark |
net472 | 429μs | 66.2ns | 256ns | 0 | 0 | 0 | 4.66 KB |
| master | RunWafRealisticBenchmarkWithAttack |
net6.0 | 284μs | 38.6ns | 144ns | 0 | 0 | 0 | 2.24 KB |
| master | RunWafRealisticBenchmarkWithAttack |
netcoreapp3.1 | 296μs | 157ns | 610ns | 0 | 0 | 0 | 2.22 KB |
| master | RunWafRealisticBenchmarkWithAttack |
net472 | 315μs | 19.3ns | 69.4ns | 0 | 0 | 0 | 2.29 KB |
| #7616 | RunWafRealisticBenchmark |
net6.0 | 394μs | 162ns | 604ns | 0 | 0 | 0 | 4.56 KB |
| #7616 | RunWafRealisticBenchmark |
netcoreapp3.1 | 850μs | 3.88μs | 15.5μs | 0 | 0 | 0 | 4.48 KB |
| #7616 | RunWafRealisticBenchmark |
net472 | 429μs | 44.4ns | 160ns | 0 | 0 | 0 | 4.66 KB |
| #7616 | RunWafRealisticBenchmarkWithAttack |
net6.0 | 286μs | 60.7ns | 227ns | 0 | 0 | 0 | 2.24 KB |
| #7616 | RunWafRealisticBenchmarkWithAttack |
netcoreapp3.1 | 297μs | 144ns | 540ns | 0 | 0 | 0 | 2.22 KB |
| #7616 | RunWafRealisticBenchmarkWithAttack |
net472 | 311μs | 12.4ns | 42.9ns | 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.2μs | 283ns | 1.36μs | 0 | 0 | 0 | 14.52 KB |
| master | SendRequest |
netcoreapp3.1 | 72.9μs | 214ns | 801ns | 0 | 0 | 0 | 17.42 KB |
| master | SendRequest |
net472 | 0.00499ns | 0.0018ns | 0.00698ns | 0 | 0 | 0 | 0 b |
| #7616 | SendRequest |
net6.0 | 61.4μs | 67.8ns | 263ns | 0 | 0 | 0 | 14.52 KB |
| #7616 | SendRequest |
netcoreapp3.1 | 70.2μs | 124ns | 465ns | 0 | 0 | 0 | 17.42 KB |
| #7616 | SendRequest |
net472 | 0.00155ns | 0.000765ns | 0.00296ns | 0 | 0 | 0 | 0 b |
Benchmarks.Trace.CharSliceBenchmark - Slower ⚠️ More allocations ⚠️
Slower ⚠️ in #7616
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑net6.0
1.130
831,326.04
939,072.40
More allocations ⚠️ in #7616
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑netcoreapp3.1
0 b
1 B
1 B
∞
Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice‑net6.0
4 B
8 B
4 B
100.00%
| Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑net6.0 | 1.130 | 831,326.04 | 939,072.40 |
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool‑netcoreapp3.1 | 0 b | 1 B | 1 B | ∞ |
| Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice‑net6.0 | 4 B | 8 B | 4 B | 100.00% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | OriginalCharSlice |
net6.0 | 1.91ms | 1.31μs | 5.06μs | 0 | 0 | 0 | 640.01 KB |
| master | OriginalCharSlice |
netcoreapp3.1 | 2.12ms | 5.72μs | 22.2μs | 0 | 0 | 0 | 640 KB |
| master | OriginalCharSlice |
net472 | 2.56ms | 918ns | 3.44μs | 100 | 0 | 0 | 641.95 KB |
| master | OptimizedCharSlice |
net6.0 | 1.45ms | 526ns | 2.04μs | 0 | 0 | 0 | 4 B |
| master | OptimizedCharSlice |
netcoreapp3.1 | 1.77ms | 718ns | 2.78μs | 0 | 0 | 0 | 1 B |
| master | OptimizedCharSlice |
net472 | 2ms | 315ns | 1.22μs | 0 | 0 | 0 | 0 b |
| master | OptimizedCharSliceWithPool |
net6.0 | 831μs | 22.4ns | 83.8ns | 0 | 0 | 0 | 3 B |
| master | OptimizedCharSliceWithPool |
netcoreapp3.1 | 811μs | 76.3ns | 296ns | 0 | 0 | 0 | 0 b |
| master | OptimizedCharSliceWithPool |
net472 | 1.13ms | 120ns | 466ns | 0 | 0 | 0 | 0 b |
| #7616 | OriginalCharSlice |
net6.0 | 1.91ms | 6.26μs | 24.3μs | 0 | 0 | 0 | 640.01 KB |
| #7616 | OriginalCharSlice |
netcoreapp3.1 | 2.19ms | 8.87μs | 32μs | 0 | 0 | 0 | 640 KB |
| #7616 | OriginalCharSlice |
net472 | 2.72ms | 633ns | 2.45μs | 100 | 0 | 0 | 641.95 KB |
| #7616 | OptimizedCharSlice |
net6.0 | 1.58ms | 1.11μs | 4.28μs | 0 | 0 | 0 | 8 B |
| #7616 | OptimizedCharSlice |
netcoreapp3.1 | 1.79ms | 318ns | 1.15μs | 0 | 0 | 0 | 1 B |
| #7616 | OptimizedCharSlice |
net472 | 2ms | 361ns | 1.4μs | 0 | 0 | 0 | 0 b |
| #7616 | OptimizedCharSliceWithPool |
net6.0 | 939μs | 54ns | 209ns | 0 | 0 | 0 | 3 B |
| #7616 | OptimizedCharSliceWithPool |
netcoreapp3.1 | 846μs | 94ns | 364ns | 0 | 0 | 0 | 1 B |
| #7616 | OptimizedCharSliceWithPool |
net472 | 1.16ms | 139ns | 521ns | 0 | 0 | 0 | 0 b |
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #7616
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑net6.0
1.144
734,500.83
641,792.41
| Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces‑net6.0 | 1.144 | 734,500.83 | 641,792.41 |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | WriteAndFlushEnrichedTraces |
net6.0 | 735μs | 653ns | 2.53μs | 0 | 0 | 0 | 41.6 KB |
| master | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 730μs | 4.14μs | 28.4μs | 0 | 0 | 0 | 41.94 KB |
| master | WriteAndFlushEnrichedTraces |
net472 | 972μs | 4.41μs | 16.5μs | 4.81 | 0 | 0 | 56.15 KB |
| #7616 | WriteAndFlushEnrichedTraces |
net6.0 | 641μs | 422ns | 1.84μs | 0 | 0 | 0 | 41.64 KB |
| #7616 | WriteAndFlushEnrichedTraces |
netcoreapp3.1 | 791μs | 4.64μs | 44.3μs | 0 | 0 | 0 | 41.81 KB |
| #7616 | WriteAndFlushEnrichedTraces |
net472 | 956μs | 3.8μs | 14.7μs | 4.81 | 0 | 0 | 56.02 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.91μs | 8.69ns | 33.6ns | 0 | 0 | 0 | 1.02 KB |
| master | ExecuteNonQuery |
netcoreapp3.1 | 2.7μs | 8.43ns | 32.6ns | 0 | 0 | 0 | 1.02 KB |
| master | ExecuteNonQuery |
net472 | 2.86μs | 2.66ns | 10.3ns | 0.143 | 0.0143 | 0 | 987 B |
| #7616 | ExecuteNonQuery |
net6.0 | 1.84μs | 4.57ns | 17.7ns | 0 | 0 | 0 | 1.02 KB |
| #7616 | ExecuteNonQuery |
netcoreapp3.1 | 2.61μs | 9.75ns | 37.8ns | 0 | 0 | 0 | 1.02 KB |
| #7616 | ExecuteNonQuery |
net472 | 2.94μs | 5.23ns | 20.3ns | 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.69μs | 3.01ns | 11.7ns | 0 | 0 | 0 | 1.03 KB |
| master | CallElasticsearch |
netcoreapp3.1 | 2.2μs | 8.38ns | 31.4ns | 0 | 0 | 0 | 1.03 KB |
| master | CallElasticsearch |
net472 | 3.71μs | 2.84ns | 10.3ns | 0.151 | 0 | 0 | 1.04 KB |
| master | CallElasticsearchAsync |
net6.0 | 1.88μs | 9.33ns | 42.8ns | 0 | 0 | 0 | 1.01 KB |
| master | CallElasticsearchAsync |
netcoreapp3.1 | 2.35μs | 11.8ns | 50.2ns | 0 | 0 | 0 | 1.08 KB |
| master | CallElasticsearchAsync |
net472 | 3.83μs | 12.5ns | 48.5ns | 0.17 | 0 | 0 | 1.1 KB |
| #7616 | CallElasticsearch |
net6.0 | 1.71μs | 9.01ns | 43.2ns | 0 | 0 | 0 | 1.03 KB |
| #7616 | CallElasticsearch |
netcoreapp3.1 | 2.19μs | 10.5ns | 45.9ns | 0 | 0 | 0 | 1.03 KB |
| #7616 | CallElasticsearch |
net472 | 3.59μs | 1.31ns | 4.91ns | 0.161 | 0 | 0 | 1.04 KB |
| #7616 | CallElasticsearchAsync |
net6.0 | 1.82μs | 8.67ns | 33.6ns | 0 | 0 | 0 | 1.01 KB |
| #7616 | CallElasticsearchAsync |
netcoreapp3.1 | 2.42μs | 13ns | 66.1ns | 0 | 0 | 0 | 1.08 KB |
| #7616 | CallElasticsearchAsync |
net472 | 3.68μs | 1.83ns | 6.6ns | 0.167 | 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.9μs | 7.01ns | 27.2ns | 0 | 0 | 0 | 952 B |
| master | ExecuteAsync |
netcoreapp3.1 | 2.59μs | 2.17ns | 8.39ns | 0 | 0 | 0 | 952 B |
| master | ExecuteAsync |
net472 | 2.6μs | 1.3ns | 5.05ns | 0.142 | 0 | 0 | 915 B |
| #7616 | ExecuteAsync |
net6.0 | 1.83μs | 8.54ns | 33.1ns | 0 | 0 | 0 | 952 B |
| #7616 | ExecuteAsync |
netcoreapp3.1 | 2.47μs | 5.96ns | 23.1ns | 0 | 0 | 0 | 952 B |
| #7616 | ExecuteAsync |
net472 | 2.63μs | 1.76ns | 6.59ns | 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 | 6.92μs | 5.9ns | 22.9ns | 0 | 0 | 0 | 2.36 KB |
| master | SendAsync |
netcoreapp3.1 | 8.85μs | 23.9ns | 92.5ns | 0 | 0 | 0 | 2.9 KB |
| master | SendAsync |
net472 | 12.1μs | 9.8ns | 37.9ns | 0.486 | 0 | 0 | 3.18 KB |
| #7616 | SendAsync |
net6.0 | 6.73μs | 30.7ns | 119ns | 0 | 0 | 0 | 2.36 KB |
| #7616 | SendAsync |
netcoreapp3.1 | 8.27μs | 23.1ns | 89.6ns | 0 | 0 | 0 | 2.9 KB |
| #7616 | SendAsync |
net472 | 12μs | 12.3ns | 47.8ns | 0.476 | 0 | 0 | 3.18 KB |
Benchmarks.Trace.Iast.StringAspectsBenchmark - Same speed ✔️ More allocations ⚠️
More allocations ⚠️ in #7616
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑netcoreapp3.1
255.67 KB
273.82 KB
18.15 KB
7.10%
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑netcoreapp3.1
42.64 KB
44.04 KB
1.4 KB
3.28%
Fewer allocations 🎉 in #7616
Benchmark
Base Allocated
Diff Allocated
Change
Change %
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0
275.65 KB
258.63 KB
-17.02 KB
-6.17%
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑netcoreapp3.1 | 255.67 KB | 273.82 KB | 18.15 KB | 7.10% |
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑netcoreapp3.1 | 42.64 KB | 44.04 KB | 1.4 KB | 3.28% |
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0 | 275.65 KB | 258.63 KB | -17.02 KB | -6.17% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StringConcatBenchmark |
net6.0 | 50.1μs | 909ns | 9.09μs | 0 | 0 | 0 | 43.78 KB |
| master | StringConcatBenchmark |
netcoreapp3.1 | 47.1μs | 237ns | 1.01μs | 0 | 0 | 0 | 42.64 KB |
| master | StringConcatBenchmark |
net472 | 58μs | 264ns | 988ns | 0 | 0 | 0 | 65.54 KB |
| master | StringConcatAspectBenchmark |
net6.0 | 467μs | 1.65μs | 5.7μs | 0 | 0 | 0 | 275.65 KB |
| master | StringConcatAspectBenchmark |
netcoreapp3.1 | 490μs | 2.26μs | 8.47μs | 0 | 0 | 0 | 255.67 KB |
| master | StringConcatAspectBenchmark |
net472 | 409μs | 2.31μs | 16.5μs | 0 | 0 | 0 | 278.53 KB |
| #7616 | StringConcatBenchmark |
net6.0 | 46.8μs | 547ns | 5.33μs | 0 | 0 | 0 | 43.99 KB |
| #7616 | StringConcatBenchmark |
netcoreapp3.1 | 46.6μs | 227ns | 907ns | 0 | 0 | 0 | 44.04 KB |
| #7616 | StringConcatBenchmark |
net472 | 56.5μs | 302ns | 1.51μs | 0 | 0 | 0 | 65.54 KB |
| #7616 | StringConcatAspectBenchmark |
net6.0 | 457μs | 2.21μs | 11.5μs | 0 | 0 | 0 | 258.63 KB |
| #7616 | StringConcatAspectBenchmark |
netcoreapp3.1 | 532μs | 2.38μs | 8.56μs | 0 | 0 | 0 | 273.82 KB |
| #7616 | StringConcatAspectBenchmark |
net472 | 395μs | 1.64μs | 5.93μ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.67μs | 13.4ns | 59.8ns | 0 | 0 | 0 | 1.7 KB |
| master | EnrichedLog |
netcoreapp3.1 | 3.76μs | 13.5ns | 52.3ns | 0 | 0 | 0 | 1.7 KB |
| master | EnrichedLog |
net472 | 4.02μs | 4.66ns | 18.1ns | 0.243 | 0 | 0 | 1.64 KB |
| #7616 | EnrichedLog |
net6.0 | 2.65μs | 1.01ns | 3.89ns | 0 | 0 | 0 | 1.7 KB |
| #7616 | EnrichedLog |
netcoreapp3.1 | 3.77μs | 14.9ns | 57.9ns | 0 | 0 | 0 | 1.7 KB |
| #7616 | EnrichedLog |
net472 | 4.04μs | 3.5ns | 13.6ns | 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 | 123μs | 95.9ns | 371ns | 0 | 0 | 0 | 4.31 KB |
| master | EnrichedLog |
netcoreapp3.1 | 128μs | 253ns | 911ns | 0 | 0 | 0 | 4.31 KB |
| master | EnrichedLog |
net472 | 169μs | 94.3ns | 353ns | 0 | 0 | 0 | 4.52 KB |
| #7616 | EnrichedLog |
net6.0 | 123μs | 69.2ns | 249ns | 0 | 0 | 0 | 4.31 KB |
| #7616 | EnrichedLog |
netcoreapp3.1 | 132μs | 649ns | 2.97μs | 0 | 0 | 0 | 4.31 KB |
| #7616 | EnrichedLog |
net472 | 168μs | 151ns | 586ns | 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.17μs | 18.2ns | 70.7ns | 0 | 0 | 0 | 2.26 KB |
| master | EnrichedLog |
netcoreapp3.1 | 6.68μs | 27.4ns | 106ns | 0 | 0 | 0 | 2.26 KB |
| master | EnrichedLog |
net472 | 7.58μs | 12.9ns | 50ns | 0.301 | 0 | 0 | 2.08 KB |
| #7616 | EnrichedLog |
net6.0 | 5.07μs | 5.83ns | 22.6ns | 0 | 0 | 0 | 2.26 KB |
| #7616 | EnrichedLog |
netcoreapp3.1 | 6.96μs | 8.99ns | 34.8ns | 0 | 0 | 0 | 2.26 KB |
| #7616 | EnrichedLog |
net472 | 7.6μs | 5.86ns | 22.7ns | 0.302 | 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 | 1.95μs | 8.97ns | 35.9ns | 0 | 0 | 0 | 1.2 KB |
| master | SendReceive |
netcoreapp3.1 | 2.72μs | 13.4ns | 53.5ns | 0 | 0 | 0 | 1.2 KB |
| master | SendReceive |
net472 | 3.01μs | 3.5ns | 13.6ns | 0.18 | 0 | 0 | 1.2 KB |
| #7616 | SendReceive |
net6.0 | 1.98μs | 10.5ns | 54.7ns | 0 | 0 | 0 | 1.2 KB |
| #7616 | SendReceive |
netcoreapp3.1 | 2.55μs | 12.9ns | 56.2ns | 0 | 0 | 0 | 1.2 KB |
| #7616 | SendReceive |
net472 | 3.06μs | 2.74ns | 10.3ns | 0.183 | 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.39μs | 12.4ns | 46.5ns | 0 | 0 | 0 | 1.58 KB |
| master | EnrichedLog |
netcoreapp3.1 | 5.68μs | 7.46ns | 28.9ns | 0 | 0 | 0 | 1.63 KB |
| master | EnrichedLog |
net472 | 6.69μs | 6.1ns | 23.6ns | 0.299 | 0 | 0 | 2.03 KB |
| #7616 | EnrichedLog |
net6.0 | 4.21μs | 11.5ns | 43.2ns | 0 | 0 | 0 | 1.58 KB |
| #7616 | EnrichedLog |
netcoreapp3.1 | 5.62μs | 9.52ns | 36.9ns | 0 | 0 | 0 | 1.63 KB |
| #7616 | EnrichedLog |
net472 | 6.58μs | 7.17ns | 26.8ns | 0.294 | 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 | 784ns | 0.189ns | 0.706ns | 0 | 0 | 0 | 576 B |
| master | StartFinishSpan |
netcoreapp3.1 | 989ns | 5.1ns | 23.9ns | 0 | 0 | 0 | 576 B |
| master | StartFinishSpan |
net472 | 931ns | 0.474ns | 1.84ns | 0.0888 | 0 | 0 | 578 B |
| master | StartFinishScope |
net6.0 | 922ns | 4.14ns | 15.5ns | 0 | 0 | 0 | 696 B |
| master | StartFinishScope |
netcoreapp3.1 | 1.23μs | 4.75ns | 18.4ns | 0 | 0 | 0 | 696 B |
| master | StartFinishScope |
net472 | 1.12μs | 0.434ns | 1.68ns | 0.102 | 0 | 0 | 658 B |
| #7616 | StartFinishSpan |
net6.0 | 784ns | 0.328ns | 1.23ns | 0 | 0 | 0 | 576 B |
| #7616 | StartFinishSpan |
netcoreapp3.1 | 982ns | 5ns | 25.5ns | 0 | 0 | 0 | 576 B |
| #7616 | StartFinishSpan |
net472 | 933ns | 3.11ns | 12ns | 0.0901 | 0 | 0 | 578 B |
| #7616 | StartFinishScope |
net6.0 | 928ns | 0.721ns | 2.7ns | 0 | 0 | 0 | 696 B |
| #7616 | StartFinishScope |
netcoreapp3.1 | 1.2μs | 6.15ns | 29.5ns | 0 | 0 | 0 | 696 B |
| #7616 | StartFinishScope |
net472 | 1.11μs | 1.24ns | 4.8ns | 0.101 | 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.07μs | 5.18ns | 20.7ns | 0 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
netcoreapp3.1 | 1.46μs | 3.91ns | 15.2ns | 0 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
net472 | 1.48μs | 1.61ns | 6.23ns | 0.104 | 0 | 0 | 658 B |
| #7616 | RunOnMethodBegin |
net6.0 | 1.06μs | 5.49ns | 28ns | 0 | 0 | 0 | 696 B |
| #7616 | RunOnMethodBegin |
netcoreapp3.1 | 1.4μs | 5.37ns | 20.8ns | 0 | 0 | 0 | 696 B |
| #7616 | RunOnMethodBegin |
net472 | 1.49μs | 1.45ns | 5.63ns | 0.104 | 0 | 0 | 658 B |
DD_DISCOVERY_SERVICE_ENABLED settingDD_AGENT_FEATURE_POLLING_ENABLED setting
2fbfdd1 to
c28a6f3
Compare
DD_AGENT_FEATURE_POLLING_ENABLED settingDD_AGENT_FEATURE_POLLING_ENABLED setting
NachoEchevarria
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.
LGTM!
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.
LGTM
Only outstanding questions are whether this setting should apply to ci vis too or not 🤷♂️ If yes, then we should also update TestOptimization and also the datadog runner, which uses the discovery service to "pre-discover" stuff and pass it through as env vars
|
|
||
| protected override IDiscoveryService GetDiscoveryService(TracerSettings settings) | ||
| internal override IDiscoveryService GetDiscoveryService(TracerSettings settings) | ||
| => _testOptimizationTracerManagement.DiscoveryService; |
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.
Should TestOptimization also respect this setting? If so we prob need to update it there too
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.
TestOptimizationTracerManagerFactory always uses NullDiscoveryService.Instance.
dd-trace-dotnet/tracer/src/Datadog.Trace/Ci/TestOptimizationTracerManagement.cs
Lines 75 to 81 in 0cb1876
| public TestOptimizationTracerManagement( | |
| TestOptimizationSettings settings, | |
| EventPlatformProxySupport eventPlatformProxySupport = EventPlatformProxySupport.None, | |
| bool useLockedTracerManager = true) | |
| { | |
| _settings = settings; | |
| DiscoveryService = NullDiscoveryService.Instance; |
f6edf4e to
42af675
Compare
12c9169 to
fa1c264
Compare
Summary
Adds
DD_AGENT_FEATURE_POLLING_ENABLEDenvironment variable (default:true) to allow disabling the agent discovery service. When disabled, the tracer usesNullDiscoveryServiceinstead of querying the agent for available endpoints.Motivation
In certain environments, such as Azure Functions with the Rust agent, the discovery endpoint is not available. Currently, the tracer always attempts to query the discovery service, which results in unnecessary network calls and potential errors in these scenarios.
Changes
DD_AGENT_FEATURE_POLLING_ENABLEDconfiguration key toConfigurationKeys.csAgentFeaturePollingEnabledproperty toTracerSettings(defaults totrue)TracerManagerFactory.GetDiscoveryService()to returnNullDiscoveryService.Instancewhen disabledGetDiscoveryService()visibility fromprotectedtointernal virtualfor consistency with override inTestOptimizationTracerManagerFactoryDiscoveryServiceCanBeDisabledto verify both enabled and disabled statesTest Plan
DiscoveryServiceis returned when enabledNullDiscoveryService.Instanceis returned when disabled🤖 Generated with Claude Code