Skip to content

Commit 31b6834

Browse files
Move workaround
Move the workaround to a static constructor so it runs early enough to affect the tests.
1 parent 5306e22 commit 31b6834

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

test/OpenTelemetry.Instrumentation.W3cTraceContext.Tests/W3CTraceContextTests.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ public W3CTraceContextTests(ITestOutputHelper output)
4141
[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "xUnit1026:Theory methods should use all of their parameters", Justification = "Need to use SkipUnlessEnvVarFoundTheory")]
4242
public async Task W3CTraceContextTestSuiteAsync(string value)
4343
{
44-
// See https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/10.0/default-trace-context-propagator
45-
DistributedContextPropagator.Current = DistributedContextPropagator.CreatePreW3CPropagator();
46-
4744
// configure SDK
4845
using var tracerProvider = Sdk.CreateTracerProviderBuilder()
4946
.AddAspNetCoreInstrumentation()

0 commit comments

Comments
 (0)