File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11
11
12
12
use opentelemetry:: InstrumentationScope ;
13
13
use opentelemetry_appender_tracing:: layer;
14
+ use opentelemetry_sdk:: error:: OTelSdkResult ;
14
15
use opentelemetry_sdk:: logs:: { LogBatch , LogExporter } ;
15
- use opentelemetry_sdk:: logs:: { LogProcessor , LogResult , SdkLogRecord , SdkLoggerProvider } ;
16
+ use opentelemetry_sdk:: logs:: { LogProcessor , SdkLogRecord , SdkLoggerProvider } ;
16
17
17
18
use tracing:: error;
18
19
use tracing_subscriber:: prelude:: * ;
@@ -26,7 +27,7 @@ impl LogExporter for MockLogExporter {
26
27
fn export (
27
28
& self ,
28
29
_batch : LogBatch < ' _ > ,
29
- ) -> impl std:: future:: Future < Output = LogResult < ( ) > > + Send {
30
+ ) -> impl std:: future:: Future < Output = OTelSdkResult > + Send {
30
31
async { Ok ( ( ) ) }
31
32
}
32
33
}
@@ -46,11 +47,11 @@ impl LogProcessor for MockLogProcessor {
46
47
let _ = futures_executor:: block_on ( self . exporter . export ( LogBatch :: new ( log_tuple) ) ) ;
47
48
}
48
49
49
- fn force_flush ( & self ) -> LogResult < ( ) > {
50
+ fn force_flush ( & self ) -> OTelSdkResult {
50
51
Ok ( ( ) )
51
52
}
52
53
53
- fn shutdown ( & self ) -> LogResult < ( ) > {
54
+ fn shutdown ( & self ) -> OTelSdkResult {
54
55
Ok ( ( ) )
55
56
}
56
57
}
You can’t perform that action at this time.
0 commit comments