Skip to content

Commit 1186d1f

Browse files
[release/5.0] Add Support to ActivitySource events in DiagnosticSourceEventSource (#41681)
Co-authored-by: Tarek Mahmoud Sayed <tarekms@microsoft.com>
1 parent 67deb1d commit 1186d1f

File tree

3 files changed

+827
-44
lines changed

3 files changed

+827
-44
lines changed

src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/ActivitySource.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ public ActivitySource(string name, string? version = "")
4444
}
4545
}, this);
4646
}
47+
48+
GC.KeepAlive(DiagnosticSourceEventSource.Logger);
4749
}
4850

4951
/// <summary>

0 commit comments

Comments
 (0)