Skip to content

Commit 36b7e2d

Browse files
authored
Merge branch 'main' into add-memory-design-batch-log-processor
2 parents 2b51cd5 + 6e1032f commit 36b7e2d

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

opentelemetry-otlp/tests/integration_test/tests/logs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ mod logtests {
9494

9595
tokio::time::sleep(Duration::from_secs(10)).await;
9696

97-
assert_logs_results(test_utils::LOGS_FILE, "expected/logs.json");
97+
assert_logs_results(test_utils::LOGS_FILE, "expected/logs.json")?;
9898

9999
Ok(())
100100
}
@@ -122,7 +122,7 @@ mod logtests {
122122
}
123123
let _ = logger_provider.shutdown();
124124
// tokio::time::sleep(Duration::from_secs(10)).await;
125-
assert_logs_results(test_utils::LOGS_FILE, "expected/logs.json");
125+
assert_logs_results(test_utils::LOGS_FILE, "expected/logs.json")?;
126126

127127
Ok(())
128128
}

opentelemetry-otlp/tests/integration_test/tests/traces.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use anyhow::Result;
1313
use ctor::dtor;
1414
use integration_test_runner::test_utils;
1515
use opentelemetry_proto::tonic::trace::v1::TracesData;
16-
use opentelemetry_sdk::{runtime, trace as sdktrace, Resource};
16+
use opentelemetry_sdk::{trace as sdktrace, Resource};
1717
use std::fs::File;
1818
use std::io::Write;
1919
use std::os::unix::fs::MetadataExt;

opentelemetry-sdk/src/logs/log_processor.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,11 @@ impl<T: LogExporter> LogProcessor for SimpleLogProcessor<T> {
199199
#[allow(clippy::large_enum_variant)]
200200
#[derive(Debug)]
201201
enum BatchMessage {
202-
/// Export logs, usually called when the log is emitted.
202+
/// Export logs, called when the log is emitted.
203203
ExportLog(Box<(LogRecord, InstrumentationScope)>),
204-
/// Flush the current buffer to the backend, it can be triggered by
205-
/// pre configured interval or a call to `force_push` function.
206-
// Flush(Option<oneshot::Sender<ExportResult>>),
207-
/// ForceFlush flushes the current buffer to the backend.
204+
/// ForceFlush flushes the current buffer to the exporter.
208205
ForceFlush(mpsc::SyncSender<ExportResult>),
209-
/// Shut down the worker thread, push all logs in buffer to the backend.
206+
/// Shut down the worker thread, push all logs in buffer to the exporter.
210207
Shutdown(mpsc::SyncSender<ExportResult>),
211208
/// Set the resource for the exporter.
212209
SetResource(Arc<Resource>),

0 commit comments

Comments
 (0)