Problem Statement
Events contain an additional MemoryInfo context. This is useful, but especially the Allocated bytes name is a bit unclear. It's actually the total allocated bytes over the lifetime of the process, not the currently allocated bytes (which is represented by Heap Size Bytes).
|
var allocatedBytes = GC.GetTotalAllocatedBytes(); |
If the process has been running for some time this becomes obvious, because we don't have machines with that much memory. But after startup this is not immediately obvious.

Solution Brainstorm
I'd suggest renaming Allocated Bytes to Total Allocated Bytes and maybe Heap Size Bytes to Currently Allocated Bytes.
Additionally, it would be nice if there was a way to provide some additional information about what these values represent. E.g. linking to the documentation. However, I don't know if the UI supports that.
Problem Statement
Events contain an additional
MemoryInfocontext. This is useful, but especially theAllocated bytesname is a bit unclear. It's actually the total allocated bytes over the lifetime of the process, not the currently allocated bytes (which is represented byHeap Size Bytes).sentry-dotnet/src/Sentry/Internal/MainSentryEventProcessor.cs
Line 166 in 0e11682
If the process has been running for some time this becomes obvious, because we don't have machines with that much memory. But after startup this is not immediately obvious.

Solution Brainstorm
I'd suggest renaming
Allocated BytestoTotal Allocated Bytesand maybeHeap Size BytestoCurrently Allocated Bytes.Additionally, it would be nice if there was a way to provide some additional information about what these values represent. E.g. linking to the documentation. However, I don't know if the UI supports that.