Skip to content

Commit c238112

Browse files
Remove debug code
Remove leftover debug code.
1 parent b0c9c92 commit c238112

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ 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+
4447
// configure SDK
4548
using var tracerProvider = Sdk.CreateTracerProviderBuilder()
4649
.AddAspNetCoreInstrumentation()

0 commit comments

Comments
 (0)