Skip to content

Commit d67c975

Browse files
committed
Change force_flush to async
1 parent 29f7ae6 commit d67c975

File tree

1 file changed

+2
-3
lines changed
  • opentelemetry-sdk/src/export/logs

1 file changed

+2
-3
lines changed

opentelemetry-sdk/src/export/logs/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use crate::logs::LogRecord;
33
use crate::logs::{LogError, LogResult};
44
use crate::Resource;
55
use async_trait::async_trait;
6-
use futures_util::future::BoxFuture;
76
#[cfg(feature = "logs_level_enabled")]
87
use opentelemetry::logs::Severity;
98
use 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) {}

0 commit comments

Comments
 (0)