File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
opentelemetry-sdk/src/export/logs Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ use crate::logs::LogRecord;
33use crate :: logs:: { LogError , LogResult } ;
44use crate :: Resource ;
55use async_trait:: async_trait;
6- use futures_util:: future:: BoxFuture ;
76#[ cfg( feature = "logs_level_enabled" ) ]
87use opentelemetry:: logs:: Severity ;
98use opentelemetry:: InstrumentationScope ;
@@ -108,8 +107,8 @@ pub trait LogExporter: Send + Sync + Debug {
108107 /// implemented as a blocking API or an asynchronous API which notifies the caller via
109108 /// a callback or an event. OpenTelemetry client authors can decide if they want to
110109 /// make the flush timeout configurable.
111- fn force_flush ( & mut self ) -> BoxFuture < ' static , ExportResult > {
112- Box :: pin ( async { Ok ( ( ) ) } )
110+ async fn force_flush ( & mut self ) -> ExportResult {
111+ Ok ( ( ) )
113112 }
114113 /// Set the resource for the exporter.
115114 fn set_resource ( & mut self , _resource : & Resource ) { }
You can’t perform that action at this time.
0 commit comments