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 1111
1212use opentelemetry:: InstrumentationScope ;
1313use opentelemetry_appender_tracing:: layer;
14+ use opentelemetry_sdk:: error:: OTelSdkResult ;
1415use opentelemetry_sdk:: logs:: { LogBatch , LogExporter } ;
15- use opentelemetry_sdk:: logs:: { LogProcessor , LogResult , SdkLogRecord , SdkLoggerProvider } ;
16+ use opentelemetry_sdk:: logs:: { LogProcessor , SdkLogRecord , SdkLoggerProvider } ;
1617
1718use tracing:: error;
1819use tracing_subscriber:: prelude:: * ;
@@ -26,7 +27,7 @@ impl LogExporter for MockLogExporter {
2627 fn export (
2728 & self ,
2829 _batch : LogBatch < ' _ > ,
29- ) -> impl std:: future:: Future < Output = LogResult < ( ) > > + Send {
30+ ) -> impl std:: future:: Future < Output = OTelSdkResult > + Send {
3031 async { Ok ( ( ) ) }
3132 }
3233}
@@ -46,11 +47,11 @@ impl LogProcessor for MockLogProcessor {
4647 let _ = futures_executor:: block_on ( self . exporter . export ( LogBatch :: new ( log_tuple) ) ) ;
4748 }
4849
49- fn force_flush ( & self ) -> LogResult < ( ) > {
50+ fn force_flush ( & self ) -> OTelSdkResult {
5051 Ok ( ( ) )
5152 }
5253
53- fn shutdown ( & self ) -> LogResult < ( ) > {
54+ fn shutdown ( & self ) -> OTelSdkResult {
5455 Ok ( ( ) )
5556 }
5657}
You can’t perform that action at this time.
0 commit comments