Skip to content

Commit 3d7e1cf

Browse files
committed
Fix memory pool metrics unit to follow standard
1 parent 9f85d05 commit 3d7e1cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Shared/Buffers.MemoryPool/PinnedBlockMemoryPoolMetrics.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@ public PinnedBlockMemoryPoolMetrics(IMeterFactory meterFactory)
2323

2424
_currentMemory = _meter.CreateUpDownCounter<long>(
2525
"aspnetcore.memorypool.current_memory",
26-
unit: "{bytes}",
26+
unit: "By",
2727
description: "Number of bytes that are currently pooled by the pool.");
2828

2929
_totalAllocatedMemory = _meter.CreateCounter<long>(
3030
"aspnetcore.memorypool.total_allocated",
31-
unit: "{bytes}",
31+
unit: "By",
3232
description: "Total number of allocations made by the pool.");
3333

3434
_evictedMemory = _meter.CreateCounter<long>(
3535
"aspnetcore.memorypool.evicted_memory",
36-
unit: "{bytes}",
36+
unit: "By",
3737
description: "Total number of bytes that have been evicted.");
3838

3939
_totalRented = _meter.CreateCounter<long>(
4040
"aspnetcore.memorypool.total_rented",
41-
unit: "{bytes}",
41+
unit: "By",
4242
description: "Total number of rented bytes from the pool.");
4343
}
4444

0 commit comments

Comments
 (0)