Add .NET 8 in CI to run W3C Trace Context Integration Test.
Fixed Dockerfile to build successfully by adding --break-system-packages. (mcr.microsoft.com/dotnet/sdk:net6.0 image uses Python 3.9, which doesn't have --break-system-packages option, thus adding an alternative to run without this option if it fails.)
The W3C integration test on .NET 8 has 40 failing test cases, which I asserted with Assert.StartsWith("FAILED (failures=40)", lastLine); in this PR.
Towards #5799 Design discussion issue #
Changes
--break-system-packages
. (mcr.microsoft.com/dotnet/sdk:net6.0
image uses Python 3.9, which doesn't have--break-system-packages
option, thus adding an alternative to run without this option if it fails.)The W3C integration test on .NET 8 has 40 failing test cases, which I asserted with
Assert.StartsWith("FAILED (failures=40)", lastLine);
in this PR.Merge requirement checklist
[ ] Unit tests added/updated[ ] AppropriateCHANGELOG.md
files updated for non-trivial changes[ ] Changes in public API reviewed (if applicable)