Skip to content

Conversation

@kkeirstead
Copy link
Member

Publishing events for UpDownCounter and ObservableUpDownCounter for consumption by dotnet counters/dotnet monitor - this was likely omitted unintentionally in #64365. Includes testing changes for both instruments.

Fixes #79916

@ghost ghost added area-System.Diagnostics.Metric community-contribution Indicates that the PR has been added by a community member labels Jan 23, 2023
Copy link
Member

@noahfalk noahfalk left a comment

Choose a reason for hiding this comment

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

Thanks @kkeirstead, this looks great. One request, can you change at least one of the MetricsEventSource tests to verify that the emitted data is correct when the UpDownCounter/ObservableUpDownCounter has negative rates and negative values. I don't predict any issue, but since that is the key difference of the UpDownCounter its good to confirm.

Copy link
Member

@noahfalk noahfalk left a comment

Choose a reason for hiding this comment

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

👍

@noahfalk
Copy link
Member

Are you happy with the changes at this point? I can sort out the test failures and get it merged if so. The failures appear unrelated to your change.

@kkeirstead
Copy link
Member Author

Are you happy with the changes at this point? I can sort out the test failures and get it merged if so. The failures appear unrelated to your change.

I think so - I didn't have any more changes I planned on making.

@noahfalk noahfalk merged commit dfe1076 into dotnet:main Jan 29, 2023
@noahfalk
Copy link
Member

Alright its in, thanks @kkeirstead!

@ghost ghost locked as resolved and limited conversation to collaborators Feb 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Diagnostics.Metric community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MetricsEventSource Not Publishing UpDownCounter For dotnet-counters/dotnet-monitor?

2 participants