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

[Instrumentation.Runtime] Update readme after inclusion of process.runtime.dotnet.gc.objects.size #772

Merged
merged 9 commits into from
Nov 28, 2022

Conversation

lachmatt
Copy link
Contributor

Changes

Requested in #683 (comment)

Update README.md to reflect addition of process.runtime.dotnet.gc.objects.size metric.

Key distinctions between process.runtime.dotnet.gc.objects.size and other heap size metrics as identified here included in metric description.

@lachmatt lachmatt requested a review from a team November 17, 2022 11:49
@utpilla utpilla added the comp:instrumentation.runtime Things related to OpenTelemetry.Instrumentation.Runtime label Nov 17, 2022

* [GC.GetTotalMemory](https://docs.microsoft.com/dotnet/api/system.gc.gettotalmemory):
Retrieves the number of bytes currently thought to be allocated.
The value is an approximate count.
Copy link
Member

Choose a reason for hiding this comment

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

would be nice to indicate that this value is not the snapshot from the last GC event, and also that this metric will be available irrespective of if a GC event has occured or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added in bd9b487

Count of bytes currently in use by objects in the GC heap that haven't been
collected yet.
Fragmentation and other GC committed memory pools are excluded.
The value is available irrespective of GC events.
Copy link
Member

Choose a reason for hiding this comment

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

Not very clear statement.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated again in 12919a6.
I tried to be consistent with other metrics description.
Indication that value is not a snapshot is included in description of API used.

@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Nov 26, 2022
@utpilla utpilla merged commit f88a532 into open-telemetry:main Nov 28, 2022
@lachmatt lachmatt deleted the objects-size-readme branch November 29, 2022 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:instrumentation.runtime Things related to OpenTelemetry.Instrumentation.Runtime Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants