File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
opentelemetry-sdk/src/metrics Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -175,8 +175,8 @@ impl PeriodicReader {
175175 let mut remaining_interval = interval;
176176 otel_info ! (
177177 name: "PeriodReaderThreadStarted" ,
178- interval_in_secs = interval. as_secs ( ) ,
179- timeout_in_secs = timeout. as_secs ( )
178+ interval_in_millisecs = interval. as_millis ( ) ,
179+ timeout_in_millisecs = timeout. as_millis ( )
180180 ) ;
181181 loop {
182182 otel_debug ! (
@@ -344,7 +344,8 @@ impl PeriodicReaderInner {
344344 return Ok ( ( ) ) ;
345345 }
346346
347- otel_debug ! ( name: "PeriodicReaderMetricsCollected" , count = rm. scope_metrics. len( ) ) ;
347+ let metrics_count = rm. scope_metrics . iter ( ) . fold ( 0 , | count, scope_metrics | count + scope_metrics. metrics . len ( ) ) ;
348+ otel_debug ! ( name: "PeriodicReaderMetricsCollected" , count = metrics_count) ;
348349
349350 // TODO: substract the time taken for collect from the timeout. collect
350351 // involves observable callbacks too, which are user defined and can
You can’t perform that action at this time.
0 commit comments