From d78ada07b5594d6082f49947edcaed1b35fc0b77 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Mon, 5 Feb 2024 17:38:50 +0100 Subject: [PATCH] spanstats: change field names --- tracing-trace/src/processor/span_stats.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tracing-trace/src/processor/span_stats.rs b/tracing-trace/src/processor/span_stats.rs index 0d6d2f4e2..f3e6238ff 100644 --- a/tracing-trace/src/processor/span_stats.rs +++ b/tracing-trace/src/processor/span_stats.rs @@ -14,8 +14,8 @@ enum SpanStatus { #[derive(Serialize, Deserialize)] pub struct CallStats { - pub nb: usize, - pub ns: u64, + pub call_count: usize, + pub time: u64, } pub fn to_call_stats( @@ -75,5 +75,5 @@ fn site_to_string(call_site: NewCallsite) -> String { fn calls_to_stats(calls: Vec) -> CallStats { let nb = calls.len(); let sum: Duration = calls.iter().sum(); - CallStats { nb, ns: sum.as_nanos() as u64 } + CallStats { call_count: nb, time: sum.as_nanos() as u64 } }