File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
opentelemetry-sdk/src/logs Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -174,22 +174,22 @@ pub(crate) mod tests {
174174 . push ( ( record. clone ( ) , instrumentation. clone ( ) ) ) ;
175175 }
176176
177- fn force_flush ( & self ) -> LogResult < ( ) > {
177+ fn force_flush ( & self ) -> OTelSdkResult {
178178 Ok ( ( ) )
179179 }
180180
181- fn shutdown ( & self ) -> LogResult < ( ) > {
181+ fn shutdown ( & self ) -> OTelSdkResult {
182182 Ok ( ( ) )
183183 }
184184 }
185185
186186 #[ derive( Debug ) ]
187187 struct ThirdProcessor {
188- pub ( crate ) logs : Arc < Mutex < Vec < ( LogRecord , InstrumentationScope ) > > > ,
188+ pub ( crate ) logs : Arc < Mutex < Vec < ( SdkLogRecord , InstrumentationScope ) > > > ,
189189 }
190190
191191 impl LogProcessor for ThirdProcessor {
192- fn emit ( & self , record : & mut LogRecord , instrumentation : & InstrumentationScope ) {
192+ fn emit ( & self , record : & mut SdkLogRecord , instrumentation : & InstrumentationScope ) {
193193 assert ! ( record. attributes_contains(
194194 & Key :: from_static_str( "processed_by" ) ,
195195 & AnyValue :: String ( "SecondProcessor" . into( ) )
Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ impl From<&SpanContext> for TraceContext {
297297#[ cfg( all( test, feature = "testing" ) ) ]
298298mod tests {
299299 use super :: * ;
300- use opentelemetry:: logs:: { AnyValue , LogRecord as _ , Severity } ;
300+ use opentelemetry:: logs:: { AnyValue , Severity } ;
301301 use opentelemetry:: time:: now;
302302 use std:: borrow:: Cow ;
303303
@@ -440,7 +440,7 @@ mod tests {
440440
441441 #[ test]
442442 fn test_update_attribute ( ) {
443- let mut log_record = LogRecord :: default ( ) ;
443+ let mut log_record = SdkLogRecord :: new ( ) ;
444444 let key = Key :: new ( "key1" ) ;
445445 let value = AnyValue :: String ( "value1" . into ( ) ) ;
446446 let updated_value = AnyValue :: String ( "updated_value" . into ( ) ) ;
@@ -459,7 +459,7 @@ mod tests {
459459
460460 #[ test]
461461 fn test_delete_attribute ( ) {
462- let mut log_record = LogRecord :: default ( ) ;
462+ let mut log_record = SdkLogRecord :: new ( ) ;
463463 let key = Key :: new ( "key1" ) ;
464464 let value = AnyValue :: String ( "value1" . into ( ) ) ;
465465
You can’t perform that action at this time.
0 commit comments