Skip to content

Replace remaining usages of Environment.Version#8069

Merged
andrewlock merged 1 commit intomasterfrom
andrew/fix-environment-version-everywhere
Jan 15, 2026
Merged

Replace remaining usages of Environment.Version#8069
andrewlock merged 1 commit intomasterfrom
andrew/fix-environment-version-everywhere

Conversation

@andrewlock
Copy link
Member

Summary of changes

Replaced remaining usages of Environment.Version other than FrameworkDescription

Reason for change

Environment.Version allocates, but it's used in a bunch of places unnecessarily. Switching to use FrameworkDescription.Runtimeversion removes those allocations

Implementation details

  • Find everywhere using Environment.Version and fix it to not
  • Inlined a couple of places where it didn't seem necessary
  • Remove an allocating path in IsCoreClr()

Test coverage

Should be covered by existing

Other details

Stacked on

@andrewlock andrewlock requested review from a team as code owners January 15, 2026 15:57
@andrewlock andrewlock added area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations) type:performance Performance, speed, latency, resource usage (CPU, memory) labels Jan 15, 2026
{
internal static class RuntimeHelper
{
internal static bool IsNetOnward(int major)
Copy link
Member Author

Choose a reason for hiding this comment

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

This was only used in the one place, above, so just inlined it for clarity

@andrewlock andrewlock force-pushed the andrew/fix-environment-version-everywhere branch from 0fa1bd8 to 3a61929 Compare January 15, 2026 16:01
private bool CheckIfMethodMayBeOmittedFromCallStack()
{
return ExceptionTrackManager.IsEditAndContinueFeatureEnabled &&
FrameworkDescription.Instance.IsCoreClr() && RuntimeHelper.IsNetOnward(6) && Method.Method.DeclaringType?.Assembly != null && RuntimeHelper.IsModuleDebugCompiled(Method.Method.DeclaringType.Assembly);
Copy link
Member Author

Choose a reason for hiding this comment

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

RuntimeHelper.IsNetOnward(6) implies FrameworkDescription.Instance.IsCoreClr() so the first check is redundant


// ASP.NET Core metrics are only available on .NET 8+
_aspnetcoreMetricsAvailable = Environment.Version.Major >= 8;
var version = FrameworkDescription.Instance.RuntimeVersion;
Copy link
Member Author

Choose a reason for hiding this comment

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

Just extract the variable and use the existing version

public bool IsCoreClr()
{
return Name.ToLowerInvariant().Contains("core") || IsNet5();
return RuntimeVersion.Major >= 5 || Name.IndexOf("core", StringComparison.OrdinalIgnoreCase) >= 0;
Copy link
Member Author

Choose a reason for hiding this comment

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

Don't allocate when looking for "core"

@pr-commenter
Copy link

pr-commenter bot commented Jan 15, 2026

Benchmarks

Benchmark execution time: 2026-01-15 19:52:47

Comparing candidate commit f71aeeb in PR branch andrew/fix-environment-version-everywhere with baseline commit bbf81d6 in branch master.

Found 11 performance improvements and 1 performance regressions! Performance is the same for 166 metrics, 14 unstable metrics.

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

  • 🟩 execution_time [-19.251ms; -19.160ms] or [-15.970%; -15.895%]

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

  • 🟩 execution_time [-21.451ms; -15.062ms] or [-10.039%; -7.050%]

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

  • 🟩 execution_time [-21.758ms; -15.387ms] or [-10.055%; -7.111%]
  • 🟩 throughput [+189495.154op/s; +268649.224op/s] or [+8.294%; +11.758%]

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

  • 🟩 execution_time [-13.714ms; -12.425ms] or [-7.905%; -7.162%]
  • 🟩 throughput [+107.429op/s; +117.884op/s] or [+7.765%; +8.521%]

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

  • 🟥 execution_time [+55.795ms; +61.271ms] or [+38.942%; +42.764%]

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

  • 🟩 execution_time [-106.079µs; -98.948µs] or [-7.073%; -6.598%]
  • 🟩 throughput [+47.164op/s; +50.704op/s] or [+7.073%; +7.604%]

scenario:Benchmarks.Trace.DbCommandBenchmark.ExecuteNonQuery net472

  • 🟩 throughput [+17954.085op/s; +19533.129op/s] or [+5.078%; +5.524%]

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

  • 🟩 execution_time [-29.104ms; -26.986ms] or [-14.488%; -13.434%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore netcoreapp3.1

  • 🟩 throughput [+15142648.907op/s; +16418352.917op/s] or [+6.719%; +7.285%]

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

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

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8069) 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.24 ± (68.32 - 68.54) ms68.35 ± (68.43 - 68.77) ms+0.2%✅⬆️
.NET Framework 4.8 - Bailout
duration72.00 ± (71.88 - 72.21) ms72.44 ± (72.37 - 72.58) ms+0.6%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1003.30 ± (1005.34 - 1013.88) ms1004.86 ± (1012.74 - 1023.45) ms+0.2%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms21.90 ± (21.86 - 21.95) ms21.87 ± (21.84 - 21.90) ms-0.1%
process.time_to_main_ms78.95 ± (78.79 - 79.12) ms78.99 ± (78.85 - 79.13) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.89 ± (10.88 - 10.89) MB10.91 ± (10.90 - 10.91) MB+0.2%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms21.77 ± (21.74 - 21.80) ms21.88 ± (21.85 - 21.90) ms+0.5%✅⬆️
process.time_to_main_ms79.95 ± (79.85 - 80.04) ms80.10 ± (80.01 - 80.19) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.92 ± (10.92 - 10.93) MB10.95 ± (10.94 - 10.95) MB+0.2%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms249.16 ± (245.98 - 252.34) ms254.32 ± (251.52 - 257.13) ms+2.1%✅⬆️
process.time_to_main_ms469.65 ± (468.99 - 470.32) ms470.83 ± (470.24 - 471.42) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.34 ± (48.32 - 48.37) MB48.33 ± (48.30 - 48.35) MB-0.0%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.2%
.NET 6 - Baseline
process.internal_duration_ms20.76 ± (20.73 - 20.80) ms20.80 ± (20.77 - 20.83) ms+0.2%✅⬆️
process.time_to_main_ms68.33 ± (68.20 - 68.46) ms68.53 ± (68.42 - 68.64) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.60 ± (10.59 - 10.60) MB10.64 ± (10.64 - 10.64) MB+0.4%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.70 ± (20.68 - 20.73) ms20.67 ± (20.65 - 20.70) ms-0.1%
process.time_to_main_ms69.19 ± (69.15 - 69.24) ms69.48 ± (69.42 - 69.55) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.71 ± (10.70 - 10.71) MB10.73 ± (10.73 - 10.74) MB+0.3%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms249.33 ± (248.63 - 250.03) ms247.45 ± (245.25 - 249.66) ms-0.8%
process.time_to_main_ms445.76 ± (445.31 - 446.21) ms449.22 ± (448.69 - 449.76) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.17 ± (49.14 - 49.21) MB49.07 ± (49.04 - 49.10) MB-0.2%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.2%
.NET 8 - Baseline
process.internal_duration_ms18.84 ± (18.81 - 18.86) ms18.89 ± (18.86 - 18.92) ms+0.3%✅⬆️
process.time_to_main_ms67.37 ± (67.26 - 67.48) ms67.67 ± (67.54 - 67.79) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.65 ± (7.64 - 7.66) MB7.68 ± (7.67 - 7.68) MB+0.3%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms18.91 ± (18.88 - 18.94) ms18.98 ± (18.96 - 19.01) ms+0.4%✅⬆️
process.time_to_main_ms68.49 ± (68.42 - 68.57) ms68.95 ± (68.88 - 69.02) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.72 ± (7.71 - 7.73) MB7.72 ± (7.71 - 7.72) MB-0.1%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms178.23 ± (177.33 - 179.13) ms179.04 ± (178.22 - 179.86) ms+0.5%✅⬆️
process.time_to_main_ms429.71 ± (429.06 - 430.36) ms430.88 ± (430.27 - 431.49) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.52 ± (36.49 - 36.55) MB36.59 ± (36.56 - 36.61) MB+0.2%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)26 ± (26 - 26)-0.5%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration194.13 ± (193.95 - 194.78) ms194.52 ± (194.52 - 195.36) ms+0.2%✅⬆️
.NET Framework 4.8 - Bailout
duration198.38 ± (197.96 - 198.66) ms198.06 ± (197.76 - 198.29) ms-0.2%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1128.54 ± (1130.30 - 1139.01) ms1125.32 ± (1125.87 - 1134.12) ms-0.3%
.NET Core 3.1 - Baseline
process.internal_duration_ms189.16 ± (188.74 - 189.57) ms188.09 ± (187.75 - 188.44) ms-0.6%
process.time_to_main_ms81.88 ± (81.58 - 82.18) ms81.17 ± (80.97 - 81.37) ms-0.9%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.16 ± (16.13 - 16.19) MB16.05 ± (16.02 - 16.08) MB-0.7%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.3%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms189.81 ± (189.39 - 190.23) ms188.07 ± (187.73 - 188.40) ms-0.9%
process.time_to_main_ms83.31 ± (83.11 - 83.51) ms82.27 ± (82.15 - 82.40) ms-1.2%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.19 ± (16.17 - 16.21) MB16.13 ± (16.11 - 16.15) MB-0.4%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+0.1%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms428.67 ± (425.30 - 432.05) ms428.10 ± (424.77 - 431.44) ms-0.1%
process.time_to_main_ms479.14 ± (478.18 - 480.10) ms474.93 ± (474.21 - 475.65) ms-0.9%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.88 ± (58.77 - 58.99) MB58.74 ± (58.62 - 58.86) MB-0.2%
runtime.dotnet.threads.count30 ± (29 - 30)30 ± (29 - 30)-0.1%
.NET 6 - Baseline
process.internal_duration_ms193.43 ± (193.03 - 193.82) ms193.09 ± (192.67 - 193.50) ms-0.2%
process.time_to_main_ms71.25 ± (71.07 - 71.43) ms70.56 ± (70.35 - 70.78) ms-1.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.33 ± (16.28 - 16.39) MB16.26 ± (16.18 - 16.34) MB-0.5%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.1%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms191.64 ± (191.34 - 191.94) ms191.24 ± (191.00 - 191.47) ms-0.2%
process.time_to_main_ms71.69 ± (71.54 - 71.84) ms71.23 ± (71.09 - 71.37) ms-0.7%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.41 ± (16.34 - 16.48) MB16.19 ± (16.06 - 16.33) MB-1.3%
runtime.dotnet.threads.count20 ± (19 - 20)19 ± (19 - 19)-2.2%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms448.55 ± (445.66 - 451.44) ms444.49 ± (441.25 - 447.72) ms-0.9%
process.time_to_main_ms455.74 ± (455.20 - 456.27) ms453.32 ± (452.71 - 453.93) ms-0.5%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed59.07 ± (58.93 - 59.20) MB59.01 ± (58.88 - 59.14) MB-0.1%
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms190.58 ± (190.19 - 190.97) ms190.55 ± (190.18 - 190.91) ms-0.0%
process.time_to_main_ms70.22 ± (70.02 - 70.42) ms70.01 ± (69.80 - 70.22) ms-0.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.78 ± (11.75 - 11.81) MB11.75 ± (11.72 - 11.78) MB-0.2%
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.3%
.NET 8 - Bailout
process.internal_duration_ms189.59 ± (189.38 - 189.80) ms189.73 ± (189.45 - 190.00) ms+0.1%✅⬆️
process.time_to_main_ms71.27 ± (71.13 - 71.41) ms70.82 ± (70.70 - 70.94) ms-0.6%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.85 ± (11.82 - 11.88) MB11.81 ± (11.78 - 11.83) MB-0.4%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms370.61 ± (369.18 - 372.04) ms365.00 ± (363.30 - 366.71) ms-1.5%
process.time_to_main_ms436.51 ± (435.86 - 437.17) ms436.96 ± (436.09 - 437.84) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed48.21 ± (48.18 - 48.24) MB48.18 ± (48.14 - 48.21) MB-0.1%
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)-0.3%
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 (8069) - mean (69ms)  : 66, 71
    master - mean (68ms)  : 67, 70

    section Bailout
    This PR (8069) - mean (72ms)  : 72, 73
    master - mean (72ms)  : 70, 74

    section CallTarget+Inlining+NGEN
    This PR (8069) - mean (1,018ms)  : 941, 1095
    master - mean (1,010ms)  : 949, 1070

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

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

    section CallTarget+Inlining+NGEN
    This PR (8069) - mean (753ms)  : 703, 803
    master - mean (738ms)  : 672, 803

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

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

    section CallTarget+Inlining+NGEN
    This PR (8069) - mean (732ms)  : 694, 771
    master - mean (721ms)  : 695, 747

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

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

    section CallTarget+Inlining+NGEN
    This PR (8069) - mean (641ms)  : 623, 659
    master - mean (635ms)  : 621, 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 (8069) - mean (195ms)  : 191, 199
    master - mean (194ms)  : 190, 199

    section Bailout
    This PR (8069) - mean (198ms)  : 195, 201
    master - mean (198ms)  : 195, 202

    section CallTarget+Inlining+NGEN
    This PR (8069) - mean (1,130ms)  : 1071, 1189
    master - mean (1,135ms)  : 1072, 1197

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 (8069) - mean (277ms)  : 271, 284
    master - mean (280ms)  : 273, 286

    section Bailout
    This PR (8069) - mean (278ms)  : 274, 283
    master - mean (282ms)  : 272, 291

    section CallTarget+Inlining+NGEN
    This PR (8069) - mean (933ms)  : 885, 981
    master - mean (941ms)  : 895, 987

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8069) - mean (272ms)  : 266, 278
    master - mean (273ms)  : 266, 280

    section Bailout
    This PR (8069) - mean (271ms)  : 268, 274
    master - mean (272ms)  : 268, 276

    section CallTarget+Inlining+NGEN
    This PR (8069) - mean (927ms)  : 879, 976
    master - mean (935ms)  : 889, 981

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8069) - mean (270ms)  : 265, 276
    master - mean (271ms)  : 264, 278

    section Bailout
    This PR (8069) - mean (270ms)  : 267, 274
    master - mean (270ms)  : 267, 273

    section CallTarget+Inlining+NGEN
    This PR (8069) - mean (833ms)  : 814, 852
    master - mean (839ms)  : 819, 859

Loading

Base automatically changed from andrew/fix-environment-version to master January 15, 2026 18:13
@dd-trace-dotnet-ci-bot dd-trace-dotnet-ci-bot bot requested review from a team as code owners January 15, 2026 18:13
@andrewlock andrewlock force-pushed the andrew/fix-environment-version-everywhere branch from 3a61929 to f71aeeb Compare January 15, 2026 19:10
@andrewlock andrewlock enabled auto-merge (squash) January 15, 2026 19:10
@andrewlock andrewlock merged commit 1863e47 into master Jan 15, 2026
153 checks passed
@andrewlock andrewlock deleted the andrew/fix-environment-version-everywhere branch January 15, 2026 20:33
@github-actions github-actions bot added this to the vNext-v3 milestone Jan 15, 2026
_ when Environment.Version is { Major: 3, Minor: 0 } => false, // 3.0 is broken on linux
{ RuntimeVersion: { Major: >= 5 } } => true, // Works on .NET 5 and above
{ RuntimeVersion: { Major: 3, Minor: > 0 } } => true, // 3.1 works
{ RuntimeVersion: { Major: 3, Minor: 0 } } => false, // 3.0 is broken on linux
Copy link
Member

Choose a reason for hiding this comment

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

Why not remove this line and let it fall into the default branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations) type:performance Performance, speed, latency, resource usage (CPU, memory)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants