-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Use distinct EventSource names for compiler and workspace layer events #75613
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System; | ||
using System.Diagnostics.Tracing; | ||
|
||
namespace Microsoft.CodeAnalysis | ||
{ | ||
[EventSource(Name = "Microsoft-CodeAnalysis-General")] | ||
internal sealed partial class CodeAnalysisEventSource | ||
{ | ||
public static readonly CodeAnalysisEventSource Log = new CodeAnalysisEventSource(); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System; | ||
using System.Diagnostics.Tracing; | ||
|
||
namespace Microsoft.CodeAnalysis | ||
{ | ||
[EventSource(Name = "Microsoft-CodeAnalysis-Workspaces")] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we going to need to ask the RPS folks to turn this collector on? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am expecting the following PR to enable this collector: https://devdiv.visualstudio.com/DevDiv/_git/VS/pullrequest/587560 |
||
internal sealed partial class CodeAnalysisEventSource | ||
{ | ||
public static readonly CodeAnalysisEventSource Log = new CodeAnalysisEventSource(); | ||
} | ||
} |
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.
The goal of putting this member here is to make it so you can't log events at all if you forget to declare a partial which specifies the event source name.