@@ -11,7 +11,7 @@ use std::{
1111use opentelemetry:: { otel_debug, otel_error, otel_info, otel_warn} ;
1212
1313use crate :: {
14- error:: { OTelSdkError , ShutdownResult } ,
14+ error:: { OTelSdkError , OTelSdkResult } ,
1515 metrics:: { exporter:: PushMetricExporter , reader:: SdkProducer , MetricError , MetricResult } ,
1616 Resource ,
1717} ;
@@ -474,7 +474,7 @@ impl PeriodicReaderInner {
474474 }
475475 }
476476
477- fn shutdown ( & self ) -> ShutdownResult {
477+ fn shutdown ( & self ) -> OTelSdkResult {
478478 // TODO: See if this is better to be created upfront.
479479 let ( response_tx, response_rx) = mpsc:: channel ( ) ;
480480 self . message_sender
@@ -523,7 +523,7 @@ impl MetricReader for PeriodicReader {
523523 // completion, and avoid blocking the thread. The default shutdown on drop
524524 // can still use blocking call. If user already explicitly called shutdown,
525525 // drop won't call shutdown again.
526- fn shutdown ( & self ) -> ShutdownResult {
526+ fn shutdown ( & self ) -> OTelSdkResult {
527527 self . inner . shutdown ( )
528528 }
529529
@@ -543,7 +543,7 @@ impl MetricReader for PeriodicReader {
543543mod tests {
544544 use super :: PeriodicReader ;
545545 use crate :: {
546- error:: { OTelSdkError , ShutdownResult } ,
546+ error:: { OTelSdkError , OTelSdkResult } ,
547547 metrics:: {
548548 data:: ResourceMetrics , exporter:: PushMetricExporter , reader:: MetricReader ,
549549 InMemoryMetricExporter , MetricError , MetricResult , SdkMeterProvider , Temporality ,
@@ -596,7 +596,7 @@ mod tests {
596596 Ok ( ( ) )
597597 }
598598
599- fn shutdown ( & self ) -> ShutdownResult {
599+ fn shutdown ( & self ) -> OTelSdkResult {
600600 Ok ( ( ) )
601601 }
602602
@@ -620,7 +620,7 @@ mod tests {
620620 Ok ( ( ) )
621621 }
622622
623- fn shutdown ( & self ) -> ShutdownResult {
623+ fn shutdown ( & self ) -> OTelSdkResult {
624624 self . is_shutdown . store ( true , Ordering :: Relaxed ) ;
625625 Ok ( ( ) )
626626 }
0 commit comments