Skip to content
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

MetricCollector improvements. #4055

Merged
merged 1 commit into from
Jun 10, 2023
Merged

MetricCollector improvements. #4055

merged 1 commit into from
Jun 10, 2023

Conversation

geeknoid
Copy link
Member

@geeknoid geeknoid commented Jun 8, 2023

  • Add a MetricCollector constructor that consumes an Instrument to make it easy to deal with simple single-instrument tests.

  • Add Count properties to MetricCollector and MetricValueHolder and introduce corresponding DebuggerDisplay attributes to improve debugger experience.

  • Replace MetricValueHolder.MetricName with
    MetricValueHolder.Instrument for enhanced introspection.

Microsoft Reviewers: Open in CodeFlow

Copy link
Member

@tarekgh tarekgh left a comment

Choose a reason for hiding this comment

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

This change LGTM. Maybe we can talk about more things we may consider enhancing more the MetricCollector.

- Add a MetricCollector constructor that consumes an Instrument to
make it easy to deal with simple single-instrument tests.

- Add Count properties to MetricCollector and MetricValueHolder and
introduce corresponding DebuggerDisplay attributes to improve debugger
experience.

- Replace MetricValueHolder.MetricName with
MetricValueHolder.Instrument for enhanced introspection.
@geeknoid geeknoid merged commit 1c22dfd into main Jun 10, 2023
@geeknoid geeknoid deleted the geeknoid/mc branch June 10, 2023 12:34
@ghost ghost added this to the 8.0 Preview6 milestone Jun 10, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jul 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants