Remove remaining references to nlohmann.json NuGet package#2691
Merged
Conversation
…s removed from production code when integrations.json was removed
Kielek
approved these changes
Apr 15, 2022
lucaspimentel
approved these changes
Apr 15, 2022
Member
Code Coverage Report 📊✔️ Merging #2691 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: |
Member
Benchmarks Report 🐌Benchmarks for #2691 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 - Slower
|
| Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync‑net472 | 1.168 | 2,895.86 | 3,382.82 |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | ExecuteAsync |
net472 | 2.9μs | 11.2ns | 43.5ns | 0.167 | 0 | 0 | 1.06 KB |
| master | ExecuteAsync |
netcoreapp3.1 | 2.06μs | 8.7ns | 36.9ns | 0.0142 | 0 | 0 | 1.03 KB |
| #2691 | ExecuteAsync |
net472 | 3.4μs | 15.5ns | 99.2ns | 0.168 | 0 | 0 | 1.06 KB |
| #2691 | ExecuteAsync |
netcoreapp3.1 | 2.04μs | 7.69ns | 27.7ns | 0.0145 | 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 | 6.57μs | 25.4ns | 95ns | 0.36 | 0 | 0 | 2.28 KB |
| master | SendAsync |
netcoreapp3.1 | 5.01μs | 28.4ns | 199ns | 0.0311 | 0 | 0 | 2.21 KB |
| #2691 | SendAsync |
net472 | 7.21μs | 34.1ns | 145ns | 0.36 | 0 | 0 | 2.28 KB |
| #2691 | SendAsync |
netcoreapp3.1 | 4.91μs | 17.2ns | 64.4ns | 0.0299 | 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 | 10.7ns | 42.7ns | 0.228 | 0 | 0 | 1.45 KB |
| master | EnrichedLog |
netcoreapp3.1 | 3.25μs | 15.3ns | 61.1ns | 0.0217 | 0 | 0 | 1.53 KB |
| #2691 | EnrichedLog |
net472 | 3.79μs | 21.5ns | 146ns | 0.227 | 0 | 0 | 1.45 KB |
| #2691 | EnrichedLog |
netcoreapp3.1 | 3.14μs | 13.9ns | 60.8ns | 0.0221 | 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 | 291μs | 1.25μs | 4.85μs | 0.426 | 0.142 | 0 | 4.33 KB |
| master | EnrichedLog |
netcoreapp3.1 | 225μs | 646ns | 2.42μs | 0 | 0 | 0 | 4.21 KB |
| #2691 | EnrichedLog |
net472 | 291μs | 1.57μs | 9.3μs | 0.442 | 0.147 | 0 | 4.33 KB |
| #2691 | EnrichedLog |
netcoreapp3.1 | 225μs | 767ns | 2.77μ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.05μs | 44.6ns | 296ns | 0.503 | 0 | 0 | 3.23 KB |
| master | EnrichedLog |
netcoreapp3.1 | 6.69μs | 31.6ns | 126ns | 0.0489 | 0 | 0 | 3.6 KB |
| #2691 | EnrichedLog |
net472 | 7.42μs | 37.9ns | 240ns | 0.504 | 0 | 0 | 3.23 KB |
| #2691 | EnrichedLog |
netcoreapp3.1 | 6.75μs | 32.5ns | 169ns | 0.0496 | 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.63μs | 13ns | 55ns | 0.16 | 0.00127 | 0 | 1.01 KB |
| master | SendReceive |
netcoreapp3.1 | 2.12μs | 9.86ns | 39.4ns | 0.014 | 0 | 0 | 1.01 KB |
| #2691 | SendReceive |
net472 | 2.4μs | 13ns | 75.7ns | 0.16 | 0.00255 | 0.00128 | 1.01 KB |
| #2691 | SendReceive |
netcoreapp3.1 | 2.11μs | 9.44ns | 36.6ns | 0.0138 | 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.87μs | 32.1ns | 124ns | 0.289 | 0 | 0 | 1.87 KB |
| master | EnrichedLog |
netcoreapp3.1 | 5.72μs | 31ns | 167ns | 0.0194 | 0 | 0 | 1.49 KB |
| #2691 | EnrichedLog |
net472 | 6.34μs | 33ns | 171ns | 0.292 | 0 | 0 | 1.87 KB |
| #2691 | EnrichedLog |
netcoreapp3.1 | 5.24μs | 24.5ns | 94.9ns | 0.0205 | 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 | 973ns | 4.7ns | 18.8ns | 0.0717 | 0 | 0 | 457 B |
| master | StartFinishSpan |
netcoreapp3.1 | 864ns | 3.35ns | 12.5ns | 0.00604 | 0 | 0 | 456 B |
| master | StartFinishScope |
net472 | 1.06μs | 5.78ns | 33.2ns | 0.0846 | 0 | 0 | 538 B |
| master | StartFinishScope |
netcoreapp3.1 | 1.1μs | 6.33ns | 49.8ns | 0.00806 | 0 | 0 | 576 B |
| #2691 | StartFinishSpan |
net472 | 918ns | 5ns | 28.3ns | 0.0719 | 0 | 0 | 457 B |
| #2691 | StartFinishSpan |
netcoreapp3.1 | 891ns | 4.05ns | 22.6ns | 0.00613 | 0 | 0 | 456 B |
| #2691 | StartFinishScope |
net472 | 1.09μs | 4.49ns | 16.8ns | 0.0845 | 0 | 0 | 538 B |
| #2691 | StartFinishScope |
netcoreapp3.1 | 1.05μs | 5.11ns | 21.7ns | 0.00784 | 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.48μs | 7.56ns | 33.8ns | 0.0838 | 0 | 0 | 538 B |
| master | RunOnMethodBegin |
netcoreapp3.1 | 1.22μs | 4.71ns | 17ns | 0.00821 | 0 | 0 | 576 B |
| #2691 | RunOnMethodBegin |
net472 | 1.38μs | 7.84ns | 55.4ns | 0.0841 | 0 | 0 | 538 B |
| #2691 | RunOnMethodBegin |
netcoreapp3.1 | 1.2μs | 6.49ns | 38.9ns | 0.00763 | 0 | 0 | 576 B |
andrewlock
approved these changes
Apr 19, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of changes
Removes remaining references to nlohmann.json NuGet package. Thanks @Kielek for spotting this!
Reason for change
This is no longer needed since we no longer use integrations.json to read integrations.
Implementation details
N/A
Test coverage
N/A
Other details
N/A