Add net6.0 target#2405
Conversation
lucaspimentel
left a comment
There was a problem hiding this comment.
Left some comments about NETCOREAPP3_1_OR_GREATER.
|
|
||
| <PropertyGroup> | ||
| <TargetFrameworks>net461;netstandard2.0;netcoreapp3.1</TargetFrameworks> | ||
| <TargetFrameworks>net461;netstandard2.0;netcoreapp3.1;net6.0</TargetFrameworks> |
This comment has been minimized.
This comment has been minimized.
|
The loader needs to be updated as well, there is a condition to load netstandard2.0 or netcoreapp3.1 depending on the runtime. |
andrewlock
left a comment
There was a problem hiding this comment.
Made some suggestions for simplifying the process of adding conditionals at a later date, and fixed one of the updated conditionals.
I think this update will require changes to the installer too?
We should probably hold off merging till after next release (in case of unforseen build issues)
zacharycmontoya
left a comment
There was a problem hiding this comment.
I completed a first pass through the PR. I think the other suggestions are good and it looks good to me after applying them
321740a to
99477ea
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Lucas Pimentel-Ordyna <[email protected]>
be7277e to
35796d0
Compare
This comment has been minimized.
This comment has been minimized.
andrewlock
left a comment
There was a problem hiding this comment.
I think this is good to go now 🎉
1158588 to
71b6a9a
Compare
| public IEnumerable<string> GetValues(string name) | ||
| { | ||
| if (_headers.TryGetValues(name, out IEnumerable<string> values)) | ||
| if (_headers.TryGetValues(name, out var values)) |
There was a problem hiding this comment.
😂 I wish it was due to pure intentions, but it's because it has a different type when it's on .NET 6 (nullable)
Code Coverage Report 📊✔️ Merging #2405 into master will not change line coverage
View the full report for further details: Datadog.Trace Breakdown ✔️
The following classes have significant coverage changes.
View the full reports for further details: |
Benchmarks Report 🐌Benchmarks for #2405 compared to master:
The following thresholds were used for comparing the benchmark speeds:
Allocation changes below 0.5% are ignored. Benchmark detailsBenchmarks.Trace.AgentWriterBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AppSecBodyBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AspNetCoreBenchmark - 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‑netcoreapp3.1 | 1.183 | 2,468.75 | 2,087.09 |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | ExecuteAsync |
net472 | 3.29μs | 11.9ns | 44.5ns | 0.168 | 0.00163 | 0 | 1.06 KB |
| master | ExecuteAsync |
netcoreapp3.1 | 2.47μs | 9.34ns | 33.7ns | 0.0135 | 0 | 0 | 1.03 KB |
| #2405 | ExecuteAsync |
net472 | 3.16μs | 14.3ns | 62.2ns | 0.168 | 0.00159 | 0 | 1.06 KB |
| #2405 | ExecuteAsync |
netcoreapp3.1 | 2.1μs | 11.9ns | 84.2ns | 0.0137 | 0 | 0 | 1.03 KB |
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | SendAsync |
net472 | 7.47μs | 42.7ns | 331ns | 0.354 | 0 | 0 | 2.28 KB |
| master | SendAsync |
netcoreapp3.1 | 5.1μs | 25.2ns | 104ns | 0.0303 | 0 | 0 | 2.21 KB |
| #2405 | SendAsync |
net472 | 7.63μs | 32.4ns | 126ns | 0.361 | 0 | 0 | 2.28 KB |
| #2405 | SendAsync |
netcoreapp3.1 | 5.04μs | 28.9ns | 227ns | 0.0296 | 0 | 0 | 2.21 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 |
net472 | 3.54μs | 18.1ns | 78.7ns | 0.228 | 0 | 0 | 1.45 KB |
| master | EnrichedLog |
netcoreapp3.1 | 3.41μs | 18.6ns | 102ns | 0.0204 | 0 | 0 | 1.53 KB |
| #2405 | EnrichedLog |
net472 | 3.56μs | 18.3ns | 83.9ns | 0.227 | 0 | 0 | 1.45 KB |
| #2405 | EnrichedLog |
netcoreapp3.1 | 3.16μs | 12.7ns | 47.4ns | 0.0217 | 0 | 0 | 1.53 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 |
net472 | 303μs | 640ns | 2.39μs | 0.456 | 0.152 | 0 | 4.33 KB |
| master | EnrichedLog |
netcoreapp3.1 | 247μs | 1.42μs | 10.6μs | 0 | 0 | 0 | 4.21 KB |
| #2405 | EnrichedLog |
net472 | 305μs | 917ns | 3.43μs | 0.309 | 0.155 | 0 | 4.33 KB |
| #2405 | EnrichedLog |
netcoreapp3.1 | 252μs | 1.42μs | 9.74μs | 0 | 0 | 0 | 4.21 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 |
net472 | 8.46μs | 29.6ns | 111ns | 0.506 | 0 | 0 | 3.23 KB |
| master | EnrichedLog |
netcoreapp3.1 | 6.6μs | 32.1ns | 128ns | 0.0502 | 0 | 0 | 3.6 KB |
| #2405 | EnrichedLog |
net472 | 8.56μs | 44.1ns | 229ns | 0.505 | 0 | 0 | 3.23 KB |
| #2405 | EnrichedLog |
netcoreapp3.1 | 6.72μs | 26.1ns | 97.7ns | 0.0495 | 0 | 0 | 3.6 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 |
net472 | 2.52μs | 12.6ns | 58ns | 0.161 | 0.00123 | 0 | 1.01 KB |
| master | SendReceive |
netcoreapp3.1 | 2.11μs | 8.37ns | 32.4ns | 0.0137 | 0 | 0 | 1.01 KB |
| #2405 | SendReceive |
net472 | 2.61μs | 13.3ns | 62.6ns | 0.16 | 0 | 0 | 1.01 KB |
| #2405 | SendReceive |
netcoreapp3.1 | 2.23μs | 12.8ns | 104ns | 0.014 | 0 | 0 | 1.01 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 |
net472 | 6.28μs | 25.3ns | 98.2ns | 0.292 | 0 | 0 | 1.87 KB |
| master | EnrichedLog |
netcoreapp3.1 | 5.39μs | 17ns | 85ns | 0.0192 | 0 | 0 | 1.49 KB |
| #2405 | EnrichedLog |
net472 | 6.44μs | 37.3ns | 360ns | 0.29 | 0 | 0 | 1.87 KB |
| #2405 | EnrichedLog |
netcoreapp3.1 | 5.39μs | 21ns | 75.7ns | 0.019 | 0 | 0 | 1.49 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 |
net472 | 931ns | 2.92ns | 10.9ns | 0.0718 | 0 | 0 | 457 B |
| master | StartFinishSpan |
netcoreapp3.1 | 955ns | 5.53ns | 45.6ns | 0.00626 | 0 | 0 | 456 B |
| master | StartFinishScope |
net472 | 1.15μs | 5.06ns | 18.9ns | 0.0843 | 0 | 0 | 538 B |
| master | StartFinishScope |
netcoreapp3.1 | 1.11μs | 5.94ns | 43.2ns | 0.00802 | 0 | 0 | 576 B |
| #2405 | StartFinishSpan |
net472 | 963ns | 3.89ns | 15.1ns | 0.0718 | 0 | 0 | 457 B |
| #2405 | StartFinishSpan |
netcoreapp3.1 | 917ns | 3.71ns | 14.4ns | 0.00628 | 0 | 0 | 456 B |
| #2405 | StartFinishScope |
net472 | 1.24μs | 6.82ns | 45.3ns | 0.0845 | 0 | 0 | 538 B |
| #2405 | StartFinishScope |
netcoreapp3.1 | 1.12μs | 4.41ns | 17.1ns | 0.00815 | 0 | 0 | 576 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 |
net472 | 1.34μs | 6.1ns | 23.6ns | 0.084 | 0 | 0 | 538 B |
| master | RunOnMethodBegin |
netcoreapp3.1 | 1.24μs | 5.82ns | 22.5ns | 0.00747 | 0 | 0 | 576 B |
| #2405 | RunOnMethodBegin |
net472 | 1.37μs | 4.67ns | 16.8ns | 0.0838 | 0 | 0 | 538 B |
| #2405 | RunOnMethodBegin |
netcoreapp3.1 | 1.27μs | 6.72ns | 34.9ns | 0.00788 | 0 | 0 | 576 B |
Add net6.0 target to enable UDS stream within HttpClient (And other things)
@DataDog/apm-dotnet