File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
opentelemetry-otlp/tests/integration_test/src Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11use anyhow:: Result ;
2+ #[ cfg( feature = "experimental_metadata_attributes" ) ]
3+ use opentelemetry_proto:: tonic:: common:: v1:: KeyValue ;
24use opentelemetry_proto:: tonic:: logs:: v1:: { LogRecord , LogsData , ResourceLogs } ;
35use std:: fs:: File ;
46
@@ -79,14 +81,14 @@ impl PartialEq for LogRecordWrapper {
7981 #[ cfg( feature = "experimental_metadata_attributes" ) ]
8082 let a_attrs: Vec < _ > = a_attrs
8183 . into_iter ( )
82- . filter ( |opentelemetry :: KeyValue { key, .. } | !key. as_str ( ) . starts_with ( "code." ) )
84+ . filter ( |KeyValue { key, .. } | !key. as_str ( ) . starts_with ( "code." ) )
8385 . collect ( ) ;
8486
8587 let b_attrs = b. attributes . clone ( ) ;
8688 #[ cfg( feature = "experimental_metadata_attributes" ) ]
8789 let b_attrs: Vec < _ > = b_attrs
8890 . into_iter ( )
89- . filter ( |opentelemetry :: KeyValue { key, .. } | !key. as_str ( ) . starts_with ( "code." ) )
91+ . filter ( |KeyValue { key, .. } | !key. as_str ( ) . starts_with ( "code." ) )
9092 . collect ( ) ;
9193
9294 assert_eq ! ( a. body, b. body, "body does not match" ) ;
You can’t perform that action at this time.
0 commit comments