Skip to content

Conversation

JamesNK
Copy link
Contributor

@JamesNK JamesNK commented Jul 17, 2025

Fixes #2532

Changes

Please provide a brief description of the changes here.

Note: if the PR is touching an area that is not listed in the existing areas, or the area does not have sufficient domain experts coverage, the PR might be tagged as experts needed and move slowly until experts are identified.

Merge requirement checklist

Copy link

github-actions bot commented Aug 4, 2025

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 Aug 4, 2025
@JamesNK JamesNK removed the Stale label Aug 4, 2025
@JamesNK JamesNK force-pushed the jamesnk/memorypool-metrics branch from af19518 to 3b13ed9 Compare August 4, 2025 04:46
@JamesNK
Copy link
Contributor Author

JamesNK commented Aug 13, 2025

All changes have been applied. Please take another look.

@lmolkova lmolkova moved this from Untriaged to Awaiting codeowners approval in Semantic Conventions Triage Aug 16, 2025
@KalleOlaviNiemitalo
Copy link

Is there an invariant:

aspnetcore.memory_pool.pooled = aspnetcore.memory_pool.allocated - aspnetcore.memory_pool.rented - aspnetcore.memory_pool.evicted

@JamesNK
Copy link
Contributor Author

JamesNK commented Aug 17, 2025

No, because rented is total. Memory could be returned and rented many times.

Allocated: 50 bytes
Rented: 500 bytes
Evicted: 0 bytes

Pooled does not equal -450 bytes.

One interesting piece of data is how much an application has currently leased. You can calculate the currently leased memory with this:

leased = allocated - pooled - evicted

@JamesNK JamesNK force-pushed the jamesnk/memorypool-metrics branch from 3b13ed9 to 86a6839 Compare August 20, 2025 00:47
@JamesNK
Copy link
Contributor Author

JamesNK commented Aug 20, 2025

@trask I resolved conflicts created by merging #2508.

This PR is ready to merge.

@github-project-automation github-project-automation bot moved this from Awaiting codeowners approval to Needs More Approval in Semantic Conventions Triage Aug 20, 2025
@lmolkova lmolkova moved this from Needs More Approval to Ready to be Merged in Semantic Conventions Triage Aug 20, 2025
@trask trask added this pull request to the merge queue Aug 20, 2025
Merged via the queue into open-telemetry:main with commit f253d58 Aug 20, 2025
15 checks passed
ShipraJain01 pushed a commit to ShipraJain01/semantic-conventions that referenced this pull request Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:aspnetcore enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add ASP.NET Core memory pool metrics
5 participants