Skip to content

Commit 6758abd

Browse files
[release/9.0-staging] Fix HttpHandlerDiagnosticListenerTests.TestW3CHeadersTraceStateAndCorrelationContext (#112882)
Backport of #112753 to release/9.0-staging
1 parent 34e3ff2 commit 6758abd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libraries/System.Diagnostics.DiagnosticSource/tests/HttpHandlerDiagnosticListenerTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ public async Task TestBasicReceiveAndResponseEvents()
145145
}
146146
}
147147

148+
[ActiveIssue("https://github.com/dotnet/runtime/issues/112792")]
148149
[OuterLoop]
149150
[ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
150151
public void TestW3CHeaders()
@@ -194,6 +195,7 @@ public void TestW3CHeadersTraceStateAndCorrelationContext()
194195
{
195196
using (var eventRecords = new EventObserverAndRecorder())
196197
{
198+
Activity.DefaultIdFormat = ActivityIdFormat.W3C;
197199
var parent = new Activity("w3c activity");
198200
parent.SetParentId(ActivityTraceId.CreateRandom(), ActivitySpanId.CreateRandom());
199201
parent.TraceStateString = "some=state";

0 commit comments

Comments
 (0)