File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ Released 2025-Mar-21
5858
5959 Custom exporters will need to internally synchronize any mutable state , if applicable .
6060
61+ - * * Breaking ** The `shutdown_with_timeout ` method is added to MetricExporter trait . This is breaking change for a custom MetricExporter .
6162- Bug Fix : `BatchLogProcessor ` now correctly calls `shutdown ` on the exporter
6263 when its `shutdown ` is invoked .
6364
Original file line number Diff line number Diff line change @@ -31,7 +31,9 @@ pub trait PushMetricExporter: Send + Sync + 'static {
3131 fn shutdown_with_timeout ( & self , timeout : Duration ) -> OTelSdkResult ;
3232
3333 /// Shutdown with the default timeout of 5 seconds.
34- fn shutdown ( & self ) -> OTelSdkResult ;
34+ fn shutdown ( & self ) -> OTelSdkResult {
35+ self . shutdown_with_timeout ( Duration :: from_secs ( 5 ) )
36+ }
3537
3638 /// Access the [Temporality] of the MetricExporter.
3739 fn temporality ( & self ) -> Temporality ;
You can’t perform that action at this time.
0 commit comments