diff --git a/common/src/byte_count.rs b/common/src/byte_count.rs index 1aa969dcb..4b346f8cb 100644 --- a/common/src/byte_count.rs +++ b/common/src/byte_count.rs @@ -13,6 +13,12 @@ impl std::fmt::Debug for ByteCount { } } +impl std::fmt::Display for ByteCount { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + f.write_str(&self.human_readable()) + } +} + const SUFFIX_AND_THRESHOLD: [(&str, u64); 5] = [ ("KB", 1_000), ("MB", 1_000_000), diff --git a/src/aggregation/mod.rs b/src/aggregation/mod.rs index 6f0e04d18..76e969e2c 100644 --- a/src/aggregation/mod.rs +++ b/src/aggregation/mod.rs @@ -174,6 +174,7 @@ use std::fmt::Display; #[cfg(test)] mod agg_tests; +pub use agg_limits::AggregationLimits; pub use collector::{ AggregationCollector, AggregationSegmentCollector, DistributedAggregationCollector, DEFAULT_BUCKET_LIMIT,