From 2755bb85233b5c6eb5d669246fb54ac9528b7a53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artjoms=20I=C5=A1kovs?= Date: Wed, 24 Apr 2024 15:35:19 +0300 Subject: [PATCH] Use instead of --- src/memory_pool.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/memory_pool.rs b/src/memory_pool.rs index a550caab..739eaad5 100644 --- a/src/memory_pool.rs +++ b/src/memory_pool.rs @@ -5,7 +5,7 @@ use std::sync::Arc; use datafusion::execution::memory_pool::{MemoryConsumer, MemoryPool, MemoryReservation}; -use metrics::{counter, describe_gauge, gauge, Gauge}; +use metrics::{counter, describe_counter, describe_gauge, gauge, Gauge}; const ALLOCATIONS: &str = "seafowl_datafusion_memory_pool_allocated_bytes_total"; const DEALLOCATIONS: &str = "seafowl_datafusion_memory_pool_freed_bytes_total"; @@ -17,11 +17,11 @@ struct Metrics { impl Metrics { pub fn new() -> Self { - describe_gauge!( + describe_counter!( ALLOCATIONS, "Memory allocated in DataFusion's managed memory pool" ); - describe_gauge!( + describe_counter!( DEALLOCATIONS, "Memory freed in DataFusion's managed memory pool" );