Skip to content

Conversation

tommcdon
Copy link
Member

Summary

System.Diagnostics.Meter API documentation

Partially addresses #dotnet/runtime/issues/58654

@tommcdon tommcdon requested review from a team, Anipik and ViktorHofer as code owners September 14, 2021 01:08
@ghost
Copy link

ghost commented Sep 14, 2021

Tagging subscribers to this area: @tommcdon, @krwq
See info in area-owners.md if you want to be subscribed.

Issue Details

Summary

System.Diagnostics.Meter API documentation

Partially addresses #dotnet/runtime/issues/58654

Author: tommcdon
Assignees: -
Labels:

area-System.Diagnostics

Milestone: -

@opbld32

This comment has been minimized.

Copy link
Contributor

@carlossanlop carlossanlop left a comment

Choose a reason for hiding this comment

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

Some suggestions for you to consider.

tommcdon and others added 12 commits September 13, 2021 18:23
Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
@opbld34

This comment has been minimized.

Copy link
Contributor

@carlossanlop carlossanlop left a comment

Choose a reason for hiding this comment

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

LGTM.
Not sure why the CI is complaining that it can't find the M:System.Diagnostics.Metrics.ObservableCounter\1.Observe`. Your changes didn't even touch those crefs. I'm inclined to think they are false positives.

@opbld33
Copy link

opbld33 commented Sep 14, 2021

Docs Build status updates of commit 40a4ec8:

⚠️ Validation status: warnings

File Status Preview URL Details
xml/System.Diagnostics.Metrics/Meter.xml ⚠️Warning View Details
xml/System.Diagnostics.Metrics/Counter`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/Histogram`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/Instrument`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/MeasurementCallback`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/Measurement`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/MeterListener.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/ObservableCounter`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/ObservableInstrument`1.xml ✅Succeeded View
xml/ns-System.Diagnostics.Metrics.xml ✅Succeeded View

xml/System.Diagnostics.Metrics/Meter.xml

  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.

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:

@opbld33
Copy link

opbld33 commented Sep 14, 2021

Docs Build status updates of commit 0f3077c:

⚠️ Validation status: warnings

File Status Preview URL Details
xml/System.Diagnostics.Metrics/Meter.xml ⚠️Warning View Details
xml/System.Diagnostics.Metrics/Counter`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/Histogram`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/Instrument`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/MeasurementCallback`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/Measurement`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/MeterListener.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/ObservableCounter`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/ObservableInstrument`1.xml ✅Succeeded View
xml/ns-System.Diagnostics.Metrics.xml ✅Succeeded View

xml/System.Diagnostics.Metrics/Meter.xml

  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.

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:

@gewarren
Copy link
Contributor

LGTM.
Not sure why the CI is complaining that it can't find the M:System.Diagnostics.Metrics.ObservableCounter\1.Observe`. Your changes didn't even touch those crefs. I'm inclined to think they are false positives.

This was fixed in main by #7089.

Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

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

I left some suggestions.

tommcdon and others added 3 commits September 13, 2021 22:08
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
@opbld31
Copy link

opbld31 commented Sep 14, 2021

Docs Build status updates of commit 2fc0840:

⚠️ Validation status: warnings

File Status Preview URL Details
xml/System.Diagnostics.Metrics/Meter.xml ⚠️Warning View Details
xml/System.Diagnostics.Metrics/Counter`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/Histogram`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/Instrument`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/MeasurementCallback`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/Measurement`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/MeterListener.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/ObservableCounter`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/ObservableInstrument`1.xml ✅Succeeded View
xml/ns-System.Diagnostics.Metrics.xml ✅Succeeded View

xml/System.Diagnostics.Metrics/Meter.xml

  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.

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

This comment has been minimized.

@opbld31
Copy link

opbld31 commented Sep 14, 2021

Docs Build status updates of commit 2b8205e:

⚠️ Validation status: warnings

File Status Preview URL Details
xml/System.Diagnostics.Metrics/Meter.xml ⚠️Warning View Details
xml/System.Diagnostics.Metrics/Counter`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/Histogram`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/Instrument`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/MeasurementCallback`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/Measurement`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/MeterListener.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/ObservableCounter`1.xml ✅Succeeded View
xml/System.Diagnostics.Metrics/ObservableInstrument`1.xml ✅Succeeded View
xml/ns-System.Diagnostics.Metrics.xml ✅Succeeded View

xml/System.Diagnostics.Metrics/Meter.xml

  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.
  • Line 0, Column 0: [Warning-xref-not-found] Cross reference not found: 'System.Diagnostics.Metrics.ObservableCounter`1.Observe'.

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:

@carlossanlop
Copy link
Contributor

@gewarren the crefs causing the warnings look good to me, but they are not being resolved in the Preview. Do you see what's wrong with them?

@gewarren
Copy link
Contributor

@gewarren the crefs causing the warnings look good to me, but they are not being resolved in the Preview. Do you see what's wrong with them?

It's fixed in main. The problem is that Observe is an override method in a public sealed class, and protected members of public sealed classes aren't shown in the API docs. So the cross reference causes a warning. I fixed it by just code fencing it instead of making it a cref.

@carlossanlop carlossanlop merged commit 7746dd6 into dotnet:net6-rc1 Sep 14, 2021
@tommcdon tommcdon deleted the tommcdon-system-diagnostics-diagnosticlistener-6.0-Updates branch September 14, 2021 16:47
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.

8 participants