File tree 3 files changed +6
-9
lines changed
opentelemetry-otlp/tests/integration_test/tests
opentelemetry-sdk/src/logs
3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ mod logtests {
94
94
95
95
tokio:: time:: sleep ( Duration :: from_secs ( 10 ) ) . await ;
96
96
97
- assert_logs_results ( test_utils:: LOGS_FILE , "expected/logs.json" ) ;
97
+ assert_logs_results ( test_utils:: LOGS_FILE , "expected/logs.json" ) ? ;
98
98
99
99
Ok ( ( ) )
100
100
}
@@ -122,7 +122,7 @@ mod logtests {
122
122
}
123
123
let _ = logger_provider. shutdown ( ) ;
124
124
// 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" ) ? ;
126
126
127
127
Ok ( ( ) )
128
128
}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use anyhow::Result;
13
13
use ctor:: dtor;
14
14
use integration_test_runner:: test_utils;
15
15
use opentelemetry_proto:: tonic:: trace:: v1:: TracesData ;
16
- use opentelemetry_sdk:: { runtime , trace as sdktrace, Resource } ;
16
+ use opentelemetry_sdk:: { trace as sdktrace, Resource } ;
17
17
use std:: fs:: File ;
18
18
use std:: io:: Write ;
19
19
use std:: os:: unix:: fs:: MetadataExt ;
Original file line number Diff line number Diff line change @@ -152,14 +152,11 @@ impl<T: LogExporter> LogProcessor for SimpleLogProcessor<T> {
152
152
#[ allow( clippy:: large_enum_variant) ]
153
153
#[ derive( Debug ) ]
154
154
enum BatchMessage {
155
- /// Export logs, usually called when the log is emitted.
155
+ /// Export logs, called when the log is emitted.
156
156
ExportLog ( Box < ( LogRecord , InstrumentationScope ) > ) ,
157
- /// Flush the current buffer to the backend, it can be triggered by
158
- /// pre configured interval or a call to `force_push` function.
159
- // Flush(Option<oneshot::Sender<ExportResult>>),
160
- /// ForceFlush flushes the current buffer to the backend.
157
+ /// ForceFlush flushes the current buffer to the exporter.
161
158
ForceFlush ( mpsc:: SyncSender < ExportResult > ) ,
162
- /// Shut down the worker thread, push all logs in buffer to the backend .
159
+ /// Shut down the worker thread, push all logs in buffer to the exporter .
163
160
Shutdown ( mpsc:: SyncSender < ExportResult > ) ,
164
161
/// Set the resource for the exporter.
165
162
SetResource ( Arc < Resource > ) ,
You can’t perform that action at this time.
0 commit comments