-
Notifications
You must be signed in to change notification settings - Fork 142
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
Make DD_TRACE_<INTEGRATION>_ENABLED Case Insensitive #6175
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 369396 Passed, 2087 Skipped, 15h 4m 19.8s Total 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 (6175) - mean (71ms) : 68, 73
. : milestone, 71,
master - mean (70ms) : 68, 73
. : milestone, 70,
section CallTarget+Inlining+NGEN
This PR (6175) - mean (1,117ms) : 1096, 1139
. : milestone, 1117,
master - mean (1,117ms) : 1095, 1139
. : milestone, 1117,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6175) - mean (110ms) : 106, 113
. : milestone, 110,
master - mean (111ms) : 107, 114
. : milestone, 111,
section CallTarget+Inlining+NGEN
This PR (6175) - mean (777ms) : 763, 791
. : milestone, 777,
master - mean (777ms) : 762, 791
. : milestone, 777,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6175) - mean (94ms) : 90, 97
. : milestone, 94,
master - mean (94ms) : 90, 97
. : milestone, 94,
section CallTarget+Inlining+NGEN
This PR (6175) - mean (734ms) : 713, 755
. : milestone, 734,
master - mean (734ms) : 717, 751
. : milestone, 734,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6175) - mean (190ms) : 187, 193
. : milestone, 190,
master - mean (191ms) : 187, 194
. : milestone, 191,
section CallTarget+Inlining+NGEN
This PR (6175) - mean (1,208ms) : 1178, 1238
. : milestone, 1208,
master - mean (1,204ms) : 1177, 1232
. : milestone, 1204,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6175) - mean (277ms) : 272, 282
. : milestone, 277,
master - mean (275ms) : 270, 281
. : milestone, 275,
section CallTarget+Inlining+NGEN
This PR (6175) - mean (950ms) : 935, 965
. : milestone, 950,
master - mean (948ms) : 927, 969
. : milestone, 948,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6175) - mean (266ms) : 261, 270
. : milestone, 266,
master - mean (265ms) : 260, 269
. : milestone, 265,
section CallTarget+Inlining+NGEN
This PR (6175) - mean (926ms) : 906, 946
. : milestone, 926,
master - mean (929ms) : 912, 946
. : milestone, 929,
|
Throughput/Crank Report ⚡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 (6175) (11.175M) : 0, 11174514
master (11.239M) : 0, 11238698
benchmarks/2.9.0 (11.081M) : 0, 11080577
section Automatic
This PR (6175) (7.290M) : 0, 7290358
master (7.276M) : 0, 7276283
benchmarks/2.9.0 (7.732M) : 0, 7732233
section Trace stats
master (7.623M) : 0, 7622719
section Manual
master (11.047M) : 0, 11046529
section Manual + Automatic
This PR (6175) (6.836M) : 0, 6836200
master (6.860M) : 0, 6859678
section DD_TRACE_ENABLED=0
master (10.213M) : 0, 10212915
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6175) (9.538M) : 0, 9538099
master (9.437M) : 0, 9436619
benchmarks/2.9.0 (9.798M) : 0, 9798067
section Automatic
This PR (6175) (6.425M) : 0, 6425356
master (6.727M) : 0, 6727464
section Trace stats
master (6.723M) : 0, 6723131
section Manual
master (9.372M) : 0, 9371618
section Manual + Automatic
This PR (6175) (6.038M) : 0, 6038035
master (6.063M) : 0, 6063264
section DD_TRACE_ENABLED=0
master (8.797M) : 0, 8796790
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6175) (10.151M) : 0, 10150797
master (10.059M) : 0, 10059432
benchmarks/2.9.0 (10.067M) : 0, 10067315
section Automatic
This PR (6175) (6.635M) : 0, 6635381
master (6.455M) : 0, 6454669
benchmarks/2.9.0 (7.552M) : 0, 7552193
section Trace stats
master (7.193M) : 0, 7192976
section Manual
master (9.914M) : 0, 9914007
section Manual + Automatic
This PR (6175) (6.382M) : 0, 6382026
master (6.023M) : 0, 6022873
section DD_TRACE_ENABLED=0
master (9.155M) : 0, 9155421
|
Benchmarks Report for tracer 🐌Benchmarks for #6175 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 - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.DbCommandBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ElasticsearchBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.GraphQLBenchmark - Faster 🎉 Same allocations ✔️
|
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync‑net6.0 | 1.114 | 1,340.15 | 1,202.80 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | ExecuteAsync |
net6.0 | 1.34μs | 0.467ns | 1.81ns | 0.0134 | 0 | 0 | 952 B |
master | ExecuteAsync |
netcoreapp3.1 | 1.58μs | 0.606ns | 2.27ns | 0.0126 | 0 | 0 | 952 B |
master | ExecuteAsync |
net472 | 1.75μs | 0.676ns | 2.62ns | 0.145 | 0 | 0 | 915 B |
#6175 | ExecuteAsync |
net6.0 | 1.2μs | 0.828ns | 3.1ns | 0.0132 | 0 | 0 | 952 B |
#6175 | ExecuteAsync |
netcoreapp3.1 | 1.57μs | 1.83ns | 7.07ns | 0.0125 | 0 | 0 | 952 B |
#6175 | ExecuteAsync |
net472 | 1.71μs | 0.598ns | 2.24ns | 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.15μs | 2.43ns | 9.1ns | 0.031 | 0 | 0 | 2.22 KB |
master | SendAsync |
netcoreapp3.1 | 5.17μs | 3.02ns | 11.7ns | 0.0362 | 0 | 0 | 2.76 KB |
master | SendAsync |
net472 | 7.2μs | 2.05ns | 7.95ns | 0.486 | 0 | 0 | 3.07 KB |
#6175 | SendAsync |
net6.0 | 4.31μs | 2.14ns | 8.01ns | 0.0304 | 0 | 0 | 2.22 KB |
#6175 | SendAsync |
netcoreapp3.1 | 5.17μs | 3.76ns | 13.5ns | 0.0363 | 0 | 0 | 2.76 KB |
#6175 | SendAsync |
net472 | 7.23μs | 1.55ns | 6ns | 0.487 | 0 | 0 | 3.07 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.52μs | 0.828ns | 3.1ns | 0.0229 | 0 | 0 | 1.64 KB |
master | EnrichedLog |
netcoreapp3.1 | 2.23μs | 1ns | 3.76ns | 0.0224 | 0 | 0 | 1.64 KB |
master | EnrichedLog |
net472 | 2.57μs | 1ns | 3.75ns | 0.249 | 0 | 0 | 1.57 KB |
#6175 | EnrichedLog |
net6.0 | 1.52μs | 2.16ns | 8.09ns | 0.0229 | 0 | 0 | 1.64 KB |
#6175 | EnrichedLog |
netcoreapp3.1 | 2.15μs | 1.48ns | 5.32ns | 0.0225 | 0 | 0 | 1.64 KB |
#6175 | EnrichedLog |
net472 | 2.46μs | 1.69ns | 6.56ns | 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 | 116μs | 267ns | 1.04μs | 0.0573 | 0 | 0 | 4.28 KB |
master | EnrichedLog |
netcoreapp3.1 | 121μs | 206ns | 799ns | 0 | 0 | 0 | 4.28 KB |
master | EnrichedLog |
net472 | 152μs | 209ns | 811ns | 0.681 | 0.227 | 0 | 4.46 KB |
#6175 | EnrichedLog |
net6.0 | 117μs | 125ns | 468ns | 0 | 0 | 0 | 4.28 KB |
#6175 | EnrichedLog |
netcoreapp3.1 | 121μs | 280ns | 1.05μs | 0 | 0 | 0 | 4.28 KB |
#6175 | EnrichedLog |
net472 | 153μs | 245ns | 948ns | 0.682 | 0.227 | 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 | 3.14μs | 0.991ns | 3.84ns | 0.0298 | 0 | 0 | 2.2 KB |
master | EnrichedLog |
netcoreapp3.1 | 4.12μs | 1.39ns | 5.2ns | 0.0292 | 0 | 0 | 2.2 KB |
master | EnrichedLog |
net472 | 4.84μs | 0.87ns | 3.37ns | 0.319 | 0 | 0 | 2.02 KB |
#6175 | EnrichedLog |
net6.0 | 3.12μs | 0.979ns | 3.66ns | 0.0313 | 0 | 0 | 2.2 KB |
#6175 | EnrichedLog |
netcoreapp3.1 | 4.12μs | 1.04ns | 3.9ns | 0.0289 | 0 | 0 | 2.2 KB |
#6175 | EnrichedLog |
net472 | 4.86μs | 2.3ns | 8.61ns | 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 | 1.05ns | 4.06ns | 0.0162 | 0 | 0 | 1.14 KB |
master | SendReceive |
netcoreapp3.1 | 1.68μs | 1.36ns | 5.28ns | 0.0156 | 0 | 0 | 1.14 KB |
master | SendReceive |
net472 | 2.13μs | 5.19ns | 20.1ns | 0.183 | 0 | 0 | 1.16 KB |
#6175 | SendReceive |
net6.0 | 1.35μs | 0.629ns | 2.18ns | 0.0161 | 0 | 0 | 1.14 KB |
#6175 | SendReceive |
netcoreapp3.1 | 1.68μs | 3.07ns | 11.5ns | 0.0152 | 0 | 0 | 1.14 KB |
#6175 | SendReceive |
net472 | 2.09μs | 2.88ns | 10.4ns | 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.7μs | 0.668ns | 2.59ns | 0.0215 | 0 | 0 | 1.6 KB |
master | EnrichedLog |
netcoreapp3.1 | 3.95μs | 2.14ns | 7.4ns | 0.0218 | 0 | 0 | 1.65 KB |
master | EnrichedLog |
net472 | 4.49μs | 3.45ns | 13.4ns | 0.323 | 0 | 0 | 2.04 KB |
#6175 | EnrichedLog |
net6.0 | 2.75μs | 0.746ns | 2.89ns | 0.022 | 0 | 0 | 1.6 KB |
#6175 | EnrichedLog |
netcoreapp3.1 | 3.9μs | 4.14ns | 16ns | 0.0215 | 0 | 0 | 1.65 KB |
#6175 | EnrichedLog |
net472 | 4.32μs | 1.91ns | 7.16ns | 0.322 | 0 | 0 | 2.04 KB |
Benchmarks.Trace.SpanBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #6175
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑netcoreapp3.1
1.114
640.48
574.84
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑netcoreapp3.1 | 1.114 | 640.48 | 574.84 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 409ns | 0.119ns | 0.462ns | 0.00802 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 640ns | 0.468ns | 1.69ns | 0.0078 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 685ns | 0.272ns | 1.05ns | 0.0915 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 484ns | 0.133ns | 0.514ns | 0.00974 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 675ns | 1.26ns | 4.88ns | 0.00944 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 872ns | 0.775ns | 3ns | 0.105 | 0 | 0 | 658 B |
#6175 | StartFinishSpan |
net6.0 | 410ns | 0.149ns | 0.559ns | 0.00797 | 0 | 0 | 576 B |
#6175 | StartFinishSpan |
netcoreapp3.1 | 575ns | 0.288ns | 1.12ns | 0.00759 | 0 | 0 | 576 B |
#6175 | StartFinishSpan |
net472 | 684ns | 0.268ns | 1.04ns | 0.0915 | 0 | 0 | 578 B |
#6175 | StartFinishScope |
net6.0 | 486ns | 0.417ns | 1.61ns | 0.00978 | 0 | 0 | 696 B |
#6175 | StartFinishScope |
netcoreapp3.1 | 702ns | 0.569ns | 2.2ns | 0.00939 | 0 | 0 | 696 B |
#6175 | StartFinishScope |
net472 | 899ns | 1.19ns | 4.61ns | 0.104 | 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 | 644ns | 0.279ns | 1.08ns | 0.00974 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 983ns | 0.62ns | 2.4ns | 0.00934 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.17μs | 0.278ns | 1.08ns | 0.104 | 0 | 0 | 658 B |
#6175 | RunOnMethodBegin |
net6.0 | 581ns | 0.21ns | 0.786ns | 0.00977 | 0 | 0 | 696 B |
#6175 | RunOnMethodBegin |
netcoreapp3.1 | 994ns | 0.455ns | 1.76ns | 0.00898 | 0 | 0 | 696 B |
#6175 | RunOnMethodBegin |
net472 | 1.1μs | 0.306ns | 1.18ns | 0.104 | 0 | 0 | 658 B |
tracer/test/Datadog.Trace.Tests/Configuration/IntegrationSettingsTests.cs
Outdated
Show resolved
Hide resolved
tracer/test/Datadog.Trace.Tests/Configuration/IntegrationSettingsTests.cs
Show resolved
Hide resolved
@@ -49,6 +49,7 @@ internal IntegrationSettings(string integrationName, IConfigurationSource? sourc | |||
var config = new ConfigurationBuilder(source, NullConfigurationTelemetry.Instance); | |||
EnabledInternal = config | |||
.WithKeys( | |||
string.Format(ConfigurationKeys.Integrations.Enabled, integrationName.ToUpperInvariant()), |
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.
nice 👍🏽
…ngsTests.cs Co-authored-by: Lucas Pimentel <[email protected]>
Summary of changes
Added a option to check for upper cased integration names and moved the case sensitive option as fallback 1.
Reason for change
Currently for Linux
DD_TRACE_<INTEGRATION>_ENABLED
needs to have an integration name that matches the name's casing on the existing dictionary we check but need to make it case insensitive like all other languages:https://datadoghq.atlassian.net/browse/APMAPI-476
Implementation details
Test coverage
Other details