feat(mongodb): fill object statistics over the legacy agent

This commit is contained in:
Loc Nguyen authored and GitHub committed 2026-09-22 14:22:15 +08:00
1 parent 48f89a2a1a
commit def42987a4
5 files changed
+52 -2

No files matched your search

+1 -1
View File
@@ -311,7 +311,7 @@ pub async fn list_object_statistics(client: &Client, database: &str) -> Result<V
/// Map `collStats` onto the shared statistics shape: the document count, and the
/// on-disk footprint (data + indexes) the SQL engines report as
/// `DATA_LENGTH + INDEX_LENGTH`.
fn object_statistics_from_collection_stats(name: &str, database: &str, result: &Document) -> ObjectStatistics {
pub fn object_statistics_from_collection_stats(name: &str, database: &str, result: &Document) -> ObjectStatistics {
ObjectStatistics {
name: name.to_string(),
schema: Some(database.to_string()),