Skip to content

Commit d08095c

Browse files
committed
fix spans not capturing in net472 and netstandard test variants
1 parent 0e674f6 commit d08095c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/MongoDB.Driver.TestHelpers/Core/SpanCapturer.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ public class SpanCapturer : IDisposable
4242
private readonly List<Activity> _completedActivities;
4343
private readonly ActivityListener _listener;
4444

45+
static SpanCapturer()
46+
{
47+
Activity.DefaultIdFormat = ActivityIdFormat.W3C;
48+
}
49+
4550
public SpanCapturer()
4651
{
4752
_completedActivities = new List<Activity>();

0 commit comments

Comments
 (0)