Skip to content

Add remarks about EventSource.GetGuid - #5209

Merged
sywhang merged 8 commits into
dotnet:masterfrom
sywhang:dev/suwhang/eventsource-guid-remarks
Jan 16, 2021
Merged

sywhang merged 8 commits into
dotnet:masterfrom
sywhang:dev/suwhang/eventsource-guid-remarks

Conversation

@sywhang

@sywhang sywhang commented Jan 7, 2021

Copy link
Copy Markdown
Contributor

Summary

EventSource.GetGuid(Type) can return a different value from EventSource.Guid - this PR adds remarks in the constructor that can cause this to happen.

Fixes dotnet/runtime#1360.

Part of dotnet/diagnostics#515.

@Dotnet-GitSync-Bot

Copy link
Copy Markdown
Collaborator

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@opbld33

opbld33 commented Jan 7, 2021

Copy link
Copy Markdown

Docs Build status updates of commit 3f6d621:

⚠️ Validation status: warnings

File Status Preview URL Details
xml/System.Diagnostics.Tracing/EventSource.xml ⚠️Warning View Details

xml/System.Diagnostics.Tracing/EventSource.xml

  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Tracing.EventSource.GetGuid'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Tracing.EventSource.GetGuid'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Tracing.EventSource.GetGuid'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Tracing.EventSource.GetGuid'.

For more details, please refer to the build report.

If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

@opbld30

opbld30 commented Jan 7, 2021

Copy link
Copy Markdown

Docs Build status updates of commit 6ea0afb:

✅ Validation status: passed

File Status Preview URL Details
xml/System.Diagnostics.Tracing/EventSource.xml ✅Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@sywhang
sywhang requested a review from tommcdon January 8, 2021 20:55
@tommcdon

tommcdon commented Jan 9, 2021

Copy link
Copy Markdown
Member

@hoyosjs

@tommcdon tommcdon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 on Juan's comment. Suggest making it a recommendation to use attributes instead of the name eventsource .ctor.

@opbld34

opbld34 commented Jan 13, 2021

Copy link
Copy Markdown

Docs Build status updates of commit c41ee8d:

⚠️ Validation status: warnings

File Status Preview URL Details
xml/System.Diagnostics.Tracing/EventSource.xml ⚠️Warning View Details

xml/System.Diagnostics.Tracing/EventSource.xml

  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.EventSource.Guid'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.EventSource.Guid'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.EventSource.Guid'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.EventSource.Guid'.

For more details, please refer to the build report.

If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

@opbld32

opbld32 commented Jan 13, 2021

Copy link
Copy Markdown

Docs Build status updates of commit b981b14:

✅ Validation status: passed

File Status Preview URL Details
xml/System.Diagnostics.Tracing/EventSource.xml ✅Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@sywhang
sywhang requested a review from gewarren January 14, 2021 05:08

@gewarren gewarren left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left some suggestions (they should be applied throughout if you agree).

@opbld31

opbld31 commented Jan 14, 2021

Copy link
Copy Markdown

Docs Build status updates of commit dfb6c97:

✅ Validation status: passed

File Status Preview URL Details
xml/System.Diagnostics.Tracing/EventSource.xml ✅Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@sywhang
sywhang requested a review from gewarren January 15, 2021 00:20

@gewarren gewarren left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I noticed a couple other things.


Specifying `settings` when the <xref:System.Diagnostics.Tracing.EventSource> is constructed enables you to specify whether the event is written in a manifest-based or a self-describing format. In addition, you can specify that an exception should be raised when an error occurs during the event-writing process.

When using this constructor, ensure that the `eventSourceName` argument matches the ETW name defined by the <xref:System.Diagnostics.Tracing.EventSourceAttribute> attribute on that type. Otherwise, the GUIDs returned by the <xref:System.Diagnostics.Tracing.EventSource.Guid> property and the <xref:System.Diagnostics.Tracing.EventSource.GetGuid(System.Type)> method will be different.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This constructor doesn't have an eventSourceName parameter, so this will have to be reworded a bit.

Co-authored-by: Genevieve Warren <[email protected]>
@opbld33

opbld33 commented Jan 15, 2021

Copy link
Copy Markdown

Docs Build status updates of commit 02e4375:

🕙 Pending: waiting for processors (21 builds ahead of you)

⚠️ Docs Build is busy, currently there are 21 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

@opbld31

opbld31 commented Jan 15, 2021

Copy link
Copy Markdown

Docs Build status updates of commit 5dd2b8e:

🕙 Pending: waiting for processors (20 builds ahead of you)

⚠️ Docs Build is busy, currently there are 20 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

@opbld31

opbld31 commented Jan 15, 2021

Copy link
Copy Markdown

Docs Build status updates of commit f57c4ea:

🕙 Pending: waiting for processors (18 builds ahead of you)

⚠️ Docs Build is busy, currently there are 18 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

@opbld30

opbld30 commented Jan 15, 2021

Copy link
Copy Markdown

Docs Build status updates of commit 02e4375:

✅ Validation status: passed

File Status Preview URL Details
xml/System.Diagnostics.Tracing/EventSource.xml ✅Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@gewarren gewarren left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@opbld30

opbld30 commented Jan 15, 2021

Copy link
Copy Markdown

Docs Build status updates of commit 5dd2b8e:

✅ Validation status: passed

File Status Preview URL Details
xml/System.Diagnostics.Tracing/EventSource.xml ✅Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@sywhang
sywhang merged commit a55e903 into dotnet:master Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EventSource.GetGuid can differ from EventSource.Guid

10 participants