-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DiagnosticSource] Add version event to EventSources used for out-of-proc monitoring #107576
Conversation
Tagging subscribers to this area: @tarekgh, @tommcdon, @pjanotti |
...es/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/DiagnosticSourceEventSource.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Diagnostics.DiagnosticSource/src/ThisAssembly.cs.in
Outdated
Show resolved
Hide resolved
...ibraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceEventSourceBridgeTests.cs
Show resolved
Hide resolved
src/libraries/System.Diagnostics.DiagnosticSource/tests/MetricEventSourceTests.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Diagnostics.DiagnosticSource/tests/MetricEventSourceTests.cs
Outdated
Show resolved
Hide resolved
/azp run runtime-libraries-coreclr outerloop |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, forgot to hit submit earlier. These are just minor tweaks but also +1 on the request to do versions with the build rather than with reflection over attributes.
...ies/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/Metrics/MetricsEventSource.cs
Outdated
Show resolved
Hide resolved
...ies/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/Metrics/MetricsEventSource.cs
Outdated
Show resolved
Hide resolved
...es/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/DiagnosticSourceEventSource.cs
Outdated
Show resolved
Hide resolved
...es/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/DiagnosticSourceEventSource.cs
Outdated
Show resolved
Hide resolved
...ies/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/Metrics/MetricsEventSource.cs
Outdated
Show resolved
Hide resolved
/azp run runtime-libraries-coreclr outerloop |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @CodeBlanch for providing the change
/backport to release/9.0 |
Started backporting to release/9.0: https://github.com/dotnet/runtime/actions/runs/10835863932 |
…proc monitoring (dotnet#107576) * Add a version event to DS event sources. * Tweaks. * Code review. * Code review, bug fixes, and tests. * Fix GenerateFileFromTemplate and make it work with incremental build * Test fixes and code review. * Apply suggestions from code review --------- Co-authored-by: Eric StJohn <ericstj@microsoft.com> Co-authored-by: Tarek Mahmoud Sayed <10833894+tarekgh@users.noreply.github.com>
…proc monitoring (dotnet#107576) * Add a version event to DS event sources. * Tweaks. * Code review. * Code review, bug fixes, and tests. * Fix GenerateFileFromTemplate and make it work with incremental build * Test fixes and code review. * Apply suggestions from code review --------- Co-authored-by: Eric StJohn <ericstj@microsoft.com> Co-authored-by: Tarek Mahmoud Sayed <10833894+tarekgh@users.noreply.github.com>
A couple features were added in .NET 9:
The issue is consumers/listeners need to know if a 9+ version of DS is in play in the target process before they can use those things.
The idea here is to add a version event consumers/listeners can enable first to inspect the target version before enabling events.
/cc @noahfalk @tarekgh