File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed
opentelemetry-otlp/tests/integration_test/tests
opentelemetry-sdk/src/logs Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use anyhow::Result;
1313use ctor:: dtor;
1414use integration_test_runner:: test_utils;
1515use opentelemetry_proto:: tonic:: trace:: v1:: TracesData ;
16- use opentelemetry_sdk:: { runtime , trace as sdktrace, Resource } ;
16+ use opentelemetry_sdk:: { trace as sdktrace, Resource } ;
1717use std:: fs:: File ;
1818use std:: io:: Write ;
1919use std:: os:: unix:: fs:: MetadataExt ;
Original file line number Diff line number Diff line change @@ -199,14 +199,11 @@ impl<T: LogExporter> LogProcessor for SimpleLogProcessor<T> {
199199#[ allow( clippy:: large_enum_variant) ]
200200#[ derive( Debug ) ]
201201enum 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 > ) ,
You can’t perform that action at this time.
0 commit comments