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

Use UpDownCounter for grain and system target counts #8781

Merged
merged 1 commit into from
Dec 17, 2023

Conversation

Costo
Copy link
Contributor

@Costo Costo commented Dec 15, 2023

Fix for #8753

UpDownCounter and Counter have the same implementation but they are interpreted differently by the .Net OTel SDK. UpDownCounter supports reporting negative values and is suitable to keep track of the number of active grains per type. The metric will be exported by the OTel SDK as a cumulative value instead of a delta for Counter.

Microsoft Reviewers: Open in CodeFlow

UpDownCounter and Counter have the same implementation but they are interpreted differently by the .Net OTel SDK.
UpDownCounter supports reporting negative values and is suitable to keep track of the number of active grain per type.
The metric will be exported by the OTel SDK as a cumulative value instead of a delta for Counter.
@Costo Costo marked this pull request as ready for review December 16, 2023 03:03
@ReubenBond ReubenBond merged commit 3d679fc into dotnet:main Dec 17, 2023
19 checks passed
@Costo Costo deleted the issue-8753 branch December 18, 2023 13:58
@github-actions github-actions bot locked and limited conversation to collaborators Jan 18, 2024
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.

2 participants