File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
opentelemetry-sdk/src/trace Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -971,15 +971,20 @@ mod tests {
971
971
. with_scheduled_delay ( Duration :: from_millis ( 10 ) )
972
972
. with_max_queue_size ( 10 ) ;
973
973
#[ cfg( feature = "experimental_trace_batch_span_processor_with_async_runtime" ) ]
974
- let batch = batch. with_max_concurrent_exports ( 10 ) ;
975
- #[ cfg( feature = "experimental_trace_batch_span_processor_with_async_runtime" ) ]
976
- let batch = batch. with_max_export_timeout ( Duration :: from_millis ( 10 ) ) ;
974
+ let batch = {
975
+ batch
976
+ . with_max_concurrent_exports ( 10 )
977
+ . with_max_export_timeout ( Duration :: from_millis ( 10 ) )
978
+ } ;
977
979
let batch = batch. build ( ) ;
978
980
assert_eq ! ( batch. max_export_batch_size, 10 ) ;
979
981
assert_eq ! ( batch. scheduled_delay, Duration :: from_millis( 10 ) ) ;
980
- assert_eq ! ( batch. max_export_timeout, Duration :: from_millis( 10 ) ) ;
981
- assert_eq ! ( batch. max_concurrent_exports, 10 ) ;
982
982
assert_eq ! ( batch. max_queue_size, 10 ) ;
983
+ #[ cfg( feature = "experimental_trace_batch_span_processor_with_async_runtime" ) ]
984
+ {
985
+ assert_eq ! ( batch. max_concurrent_exports, 10 ) ;
986
+ assert_eq ! ( batch. max_export_timeout, Duration :: from_millis( 10 ) ) ;
987
+ }
983
988
}
984
989
985
990
// Helper function to create a default test span
You can’t perform that action at this time.
0 commit comments