Skip to content

[FFE] Added support for Value evaluation type in OpenFeature#8086

Merged
daniel-romano-DD merged 1 commit intomasterfrom
dani/ffe/value_support
Jan 22, 2026
Merged

[FFE] Added support for Value evaluation type in OpenFeature#8086
daniel-romano-DD merged 1 commit intomasterfrom
dani/ffe/value_support

Conversation

@daniel-romano-DD
Copy link
Contributor

Summary of changes

Add full support for OpenFeature Value type evaluation (JSON)

Reason for change

Implementation details

Test coverage

Other details

@pr-commenter
Copy link

pr-commenter bot commented Jan 21, 2026

Benchmarks

Benchmark execution time: 2026-01-22 15:30:36

Comparing candidate commit d17bff2 in PR branch dani/ffe/value_support with baseline commit 7fcbc9a in branch master.

Found 10 performance improvements and 10 performance regressions! Performance is the same for 152 metrics, 20 unstable metrics.

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • 🟩 execution_time [-19.798ms; -19.714ms] or [-16.387%; -16.318%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • 🟩 execution_time [-111.179ms; -110.681ms] or [-50.365%; -50.139%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net6.0

  • 🟥 execution_time [+15.732ms; +20.402ms] or [+7.869%; +10.205%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net6.0

  • 🟩 execution_time [-16.872ms; -11.223ms] or [-7.898%; -5.253%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody netcoreapp3.1

  • 🟩 execution_time [-19.835ms; -14.510ms] or [-9.160%; -6.701%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs net6.0

  • 🟥 execution_time [+22.502ms; +23.042ms] or [+12.690%; +12.994%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟩 execution_time [-20.973ms; -17.119ms] or [-10.059%; -8.210%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • 🟥 execution_time [+46.872ms; +54.307ms] or [+27.524%; +31.890%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice netcoreapp3.1

  • 🟩 execution_time [-911.496µs; -662.050µs] or [-32.753%; -23.789%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net6.0

  • 🟩 execution_time [-86.775µs; -79.785µs] or [-7.917%; -7.279%]
  • 🟩 throughput [+71.902op/s; +78.148op/s] or [+7.881%; +8.565%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net6.0

  • 🟥 execution_time [+174.772µs; +180.708µs] or [+9.036%; +9.343%]
  • 🟥 throughput [-44.222op/s; -42.802op/s] or [-8.553%; -8.279%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net6.0

  • 🟥 throughput [-10050.809op/s; -8321.293op/s] or [-6.740%; -5.580%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net6.0

  • 🟥 execution_time [+11.952ms; +16.416ms] or [+5.944%; +8.164%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog netcoreapp3.1

  • 🟥 execution_time [+28.676ms; +30.951ms] or [+16.921%; +18.263%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net6.0

  • 🟥 throughput [-46123.193op/s; -32313.268op/s] or [-8.774%; -6.147%]
  • 🟩 execution_time [-16.289ms; -11.057ms] or [-7.836%; -5.319%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog netcoreapp3.1

  • 🟥 throughput [-14477.385op/s; -11918.457op/s] or [-8.168%; -6.724%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan netcoreapp3.1

  • 🟩 execution_time [-17.182ms; -11.647ms] or [-8.064%; -5.466%]

@dd-trace-dotnet-ci-bot
Copy link

dd-trace-dotnet-ci-bot bot commented Jan 21, 2026

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8086) and master.

✅ No regressions detected - check the details below

Full Metrics Comparison

FakeDbCommand

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration68.61 ± (68.58 - 68.79) ms68.56 ± (68.51 - 68.69) ms-0.1%
.NET Framework 4.8 - Bailout
duration72.34 ± (72.22 - 72.44) ms72.12 ± (72.11 - 72.32) ms-0.3%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1010.32 ± (1016.91 - 1031.12) ms1006.15 ± (1013.03 - 1024.12) ms-0.4%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.07 ± (22.04 - 22.10) ms21.78 ± (21.75 - 21.80) ms-1.3%
process.time_to_main_ms78.91 ± (78.75 - 79.06) ms78.82 ± (78.67 - 78.97) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.90 ± (10.89 - 10.90) MB10.89 ± (10.89 - 10.90) MB-0.1%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.03 ± (22.01 - 22.05) ms21.73 ± (21.71 - 21.75) ms-1.4%
process.time_to_main_ms80.01 ± (79.92 - 80.10) ms79.95 ± (79.84 - 80.05) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.93 ± (10.92 - 10.93) MB10.92 ± (10.92 - 10.93) MB-0.0%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms244.10 ± (240.65 - 247.56) ms243.99 ± (240.76 - 247.23) ms-0.0%
process.time_to_main_ms468.65 ± (468.05 - 469.26) ms469.19 ± (468.61 - 469.77) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.42 ± (48.40 - 48.44) MB48.36 ± (48.34 - 48.39) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.7%
.NET 6 - Baseline
process.internal_duration_ms20.48 ± (20.46 - 20.51) ms20.57 ± (20.54 - 20.60) ms+0.4%✅⬆️
process.time_to_main_ms68.17 ± (68.05 - 68.30) ms68.25 ± (68.14 - 68.36) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.63 ± (10.63 - 10.63) MB10.63 ± (10.62 - 10.63) MB-0.0%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.53 ± (20.50 - 20.55) ms20.57 ± (20.55 - 20.59) ms+0.2%✅⬆️
process.time_to_main_ms69.26 ± (69.20 - 69.32) ms69.34 ± (69.27 - 69.40) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.67 ± (10.66 - 10.67) MB10.72 ± (10.71 - 10.72) MB+0.4%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms241.11 ± (238.36 - 243.87) ms250.23 ± (249.13 - 251.34) ms+3.8%✅⬆️
process.time_to_main_ms446.13 ± (445.61 - 446.65) ms448.03 ± (447.51 - 448.55) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.20 ± (49.17 - 49.23) MB49.12 ± (49.09 - 49.15) MB-0.2%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms18.82 ± (18.79 - 18.84) ms18.78 ± (18.75 - 18.81) ms-0.2%
process.time_to_main_ms67.35 ± (67.24 - 67.46) ms67.29 ± (67.20 - 67.38) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.67 ± (7.66 - 7.67) MB7.66 ± (7.65 - 7.67) MB-0.1%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms18.81 ± (18.79 - 18.84) ms18.86 ± (18.83 - 18.88) ms+0.2%✅⬆️
process.time_to_main_ms68.36 ± (68.29 - 68.42) ms68.68 ± (68.63 - 68.73) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.75 ± (7.74 - 7.76) MB7.71 ± (7.71 - 7.72) MB-0.5%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms177.60 ± (176.72 - 178.47) ms178.75 ± (177.87 - 179.63) ms+0.7%✅⬆️
process.time_to_main_ms430.90 ± (430.02 - 431.78) ms430.57 ± (429.81 - 431.33) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.51 ± (36.48 - 36.54) MB36.61 ± (36.58 - 36.63) MB+0.3%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)+0.1%✅⬆️

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration193.42 ± (193.69 - 194.53) ms195.82 ± (195.90 - 196.82) ms+1.2%✅⬆️
.NET Framework 4.8 - Bailout
duration197.75 ± (197.70 - 198.41) ms200.06 ± (200.12 - 201.04) ms+1.2%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1129.36 ± (1134.81 - 1145.83) ms1147.47 ± (1151.23 - 1163.04) ms+1.6%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms187.64 ± (187.33 - 187.96) ms189.44 ± (189.05 - 189.84) ms+1.0%✅⬆️
process.time_to_main_ms80.86 ± (80.66 - 81.06) ms82.07 ± (81.85 - 82.29) ms+1.5%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.11 ± (16.07 - 16.14) MB16.12 ± (16.10 - 16.15) MB+0.1%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.1%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms186.77 ± (186.55 - 187.00) ms189.11 ± (188.65 - 189.56) ms+1.2%✅⬆️
process.time_to_main_ms82.14 ± (82.00 - 82.29) ms83.23 ± (83.03 - 83.44) ms+1.3%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.15 ± (16.12 - 16.18) MB16.07 ± (16.05 - 16.09) MB-0.5%
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (20 - 21)+0.2%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms417.50 ± (414.03 - 420.96) ms431.12 ± (427.99 - 434.25) ms+3.3%✅⬆️
process.time_to_main_ms473.31 ± (472.70 - 473.91) ms478.95 ± (478.19 - 479.71) ms+1.2%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.83 ± (58.72 - 58.94) MB58.77 ± (58.66 - 58.88) MB-0.1%
runtime.dotnet.threads.count29 ± (29 - 30)29 ± (29 - 30)+0.0%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms192.34 ± (191.96 - 192.71) ms194.56 ± (194.12 - 195.00) ms+1.2%✅⬆️
process.time_to_main_ms70.72 ± (70.47 - 70.97) ms71.26 ± (71.06 - 71.46) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.05 ± (15.91 - 16.20) MB16.34 ± (16.31 - 16.36) MB+1.8%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 19)19 ± (19 - 19)+4.5%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms191.16 ± (190.86 - 191.46) ms199.52 ± (199.02 - 200.01) ms+4.4%✅⬆️
process.time_to_main_ms71.43 ± (71.29 - 71.58) ms74.21 ± (73.97 - 74.44) ms+3.9%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.33 ± (16.22 - 16.43) MB16.33 ± (16.32 - 16.35) MB+0.0%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 20)20 ± (20 - 20)+4.2%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms444.95 ± (441.59 - 448.31) ms447.04 ± (443.44 - 450.63) ms+0.5%✅⬆️
process.time_to_main_ms453.50 ± (452.79 - 454.21) ms458.97 ± (458.25 - 459.68) ms+1.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed58.65 ± (58.53 - 58.77) MB58.85 ± (58.70 - 59.00) MB+0.4%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)-0.0%
.NET 8 - Baseline
process.internal_duration_ms191.48 ± (191.04 - 191.92) ms193.56 ± (193.14 - 193.99) ms+1.1%✅⬆️
process.time_to_main_ms70.19 ± (69.98 - 70.39) ms70.97 ± (70.79 - 71.15) ms+1.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.74 ± (11.71 - 11.76) MB11.68 ± (11.66 - 11.71) MB-0.4%
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.4%
.NET 8 - Bailout
process.internal_duration_ms189.13 ± (188.89 - 189.37) ms191.58 ± (191.13 - 192.02) ms+1.3%✅⬆️
process.time_to_main_ms70.86 ± (70.74 - 70.98) ms71.93 ± (71.75 - 72.12) ms+1.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.85 ± (11.83 - 11.88) MB11.79 ± (11.77 - 11.82) MB-0.5%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.5%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms364.68 ± (362.98 - 366.38) ms372.82 ± (371.24 - 374.39) ms+2.2%✅⬆️
process.time_to_main_ms435.53 ± (434.87 - 436.19) ms443.02 ± (441.93 - 444.11) ms+1.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed48.25 ± (48.21 - 48.28) MB48.21 ± (48.18 - 48.25) MB-0.1%
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)-0.9%
Comparison explanation

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 highlighted in **red**. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

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 charts
FakeDbCommand (.NET Framework 4.8)
gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8086) - mean (69ms)  : 67, 70
    master - mean (69ms)  : 67, 70

    section Bailout
    This PR (8086) - mean (72ms)  : 71, 73
    master - mean (72ms)  : 71, 73

    section CallTarget+Inlining+NGEN
    This PR (8086) - mean (1,019ms)  : 938, 1100
    master - mean (1,024ms)  : 938, 1110

Loading
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 (8086) - mean (106ms)  : 103, 109
    master - mean (106ms)  : 104, 109

    section Bailout
    This PR (8086) - mean (107ms)  : 106, 108
    master - mean (107ms)  : 106, 108

    section CallTarget+Inlining+NGEN
    This PR (8086) - mean (738ms)  : 681, 795
    master - mean (738ms)  : 685, 792

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8086) - mean (94ms)  : 92, 96
    master - mean (93ms)  : 91, 95

    section Bailout
    This PR (8086) - mean (95ms)  : 94, 96
    master - mean (94ms)  : 94, 95

    section CallTarget+Inlining+NGEN
    This PR (8086) - mean (720ms)  : 693, 747
    master - mean (711ms)  : 667, 755

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8086) - mean (92ms)  : 90, 94
    master - mean (92ms)  : 90, 95

    section Bailout
    This PR (8086) - mean (94ms)  : 92, 95
    master - mean (93ms)  : 92, 94

    section CallTarget+Inlining+NGEN
    This PR (8086) - mean (637ms)  : 622, 652
    master - mean (636ms)  : 623, 650

Loading
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 (8086) - mean (196ms)  : 190, 203
    master - mean (194ms)  : 188, 200

    section Bailout
    This PR (8086) - mean (201ms)  : 194, 207
    master - mean (198ms)  : 195, 201

    section CallTarget+Inlining+NGEN
    This PR (8086) - mean (1,157ms)  : 1065, 1250
    master - mean (1,140ms)  : 1054, 1227

Loading
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 (8086) - mean (280ms)  : 273, 287
    master - mean (277ms)  : 271, 283

    section Bailout
    This PR (8086) - mean (281ms)  : 273, 289
    master - mean (277ms)  : 274, 280

    section CallTarget+Inlining+NGEN
    This PR (8086) - mean (940ms)  : 893, 987
    master - mean (924ms)  : 876, 972

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8086) - mean (274ms)  : 266, 283
    master - mean (271ms)  : 265, 277

    section Bailout
    This PR (8086) - mean (282ms)  : 272, 293
    master - mean (271ms)  : 267, 274

    section CallTarget+Inlining+NGEN
    This PR (8086) - mean (937ms)  : 881, 993
    master - mean (928ms)  : 877, 979

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8086) - mean (274ms)  : 265, 283
    master - mean (272ms)  : 265, 278

    section Bailout
    This PR (8086) - mean (273ms)  : 265, 281
    master - mean (270ms)  : 267, 273

    section CallTarget+Inlining+NGEN
    This PR (8086) - mean (849ms)  : 807, 890
    master - mean (831ms)  : 811, 850

Loading

@daniel-romano-DD daniel-romano-DD marked this pull request as ready for review January 22, 2026 08:19
@daniel-romano-DD daniel-romano-DD requested review from a team as code owners January 22, 2026 08:19
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1f836ca5a2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<ItemGroup>
<PackageReference Include="OpenFeature" Version="[2.0.0, 3.0.0)" />
<PackageReference Include="OpenFeature" Version="2.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was Newtonsoft.Json chosen over the vendored version or System.Text.Json?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because this package does not have (must not) a dep with any of our libs. This is the most used version of Newtonsoft, as a min requirement

Copy link
Member

@lucaspimentel lucaspimentel Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this package does not have (must not) a dep with any of our libs

That explains why we don't use the vendored version, but what about System.Text.Json? It's supposed to have better performance.

Copy link
Member

@lucaspimentel lucaspimentel Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind. It doesn't support .NET Framework 4.6.1 and brings in a lot of other dependencies.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was the main reason (as Gemini suggested) XD

<PropertyGroup>
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>preview</LangVersion>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change intended?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is. Compiler began complaining after last VS update

@@ -1,4 +1,6 @@
using System;
using System.Diagnostics;
using System.Runtime.InteropServices.ComTypes;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you using this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VS added it. This does no harm, specially in a Sample app.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

@daniel-romano-DD daniel-romano-DD enabled auto-merge (squash) January 22, 2026 14:00
Comment on lines +64 to +69
Debug.Assert(evaluation is not null);
Debug.Assert(evaluation.ErrorMessage is null);
Debug.Assert(evaluation.Value != defaultValue);
Debug.Assert(evaluation.Value.IsStructure);
Debug.Assert(evaluation.Value.AsStructure.ContainsKey("integer"));
Debug.Assert(evaluation.Value.AsStructure.GetValue("integer").AsInteger == 1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if we use release builds when we run tests, but if we do, none of these assert will run.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uhm, good point. I'll change it

@daniel-romano-DD daniel-romano-DD merged commit e517424 into master Jan 22, 2026
82 of 149 checks passed
@daniel-romano-DD daniel-romano-DD deleted the dani/ffe/value_support branch January 22, 2026 15:53
@github-actions github-actions bot added this to the vNext-v3 milestone Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants