Use GC.GetGCMemoryInfo().GenerationInfo[i].SizeAfterBytes
for .NET 7
#496
Labels
comp:instrumentation.runtime
Things related to OpenTelemetry.Instrumentation.Runtime
Issue with OpenTelemetry.Instrumentation.Runtime
GC.GetGCMemoryInfo().GenerationInfo[i].SizeAfterBytes
starting from .NET 7: Done in [Instrumentation.Runtime] Change API for GC Heap Size #495.gc.heap.fragmentation.size
metrics starting from .NET 7: Done in [Instrumentation.Runtime] Addgc.heap.fragmentation.size
back for .NET 7 and later #524.See context in #495.
The values for
GC.GetGCMemoryInfo().GenerationInfo[i].SizeAfterBytes
keep increasing because of a bug dotnet/runtime#60309.The text was updated successfully, but these errors were encountered: