@@ -717,11 +717,12 @@ impl BatchConfigBuilder {
717717 self
718718 }
719719
720+ #[ cfg( feature = "experimental_trace_batch_span_processor_with_async_runtime" ) ]
720721 /// Set max_concurrent_exports for [`BatchConfigBuilder`].
721722 /// It's the maximum number of concurrent exports.
722723 /// Limits the number of spawned tasks for exports and thus memory consumed by an exporter.
723724 /// The default value is 1.
724- /// IF the max_concurrent_exports value is default value, it will cause exports to be performed
725+ /// If the max_concurrent_exports value is default value, it will cause exports to be performed
725726 /// synchronously on the BatchSpanProcessor task.
726727 pub fn with_max_concurrent_exports ( mut self , max_concurrent_exports : usize ) -> Self {
727728 self . max_concurrent_exports = max_concurrent_exports;
@@ -960,9 +961,10 @@ mod tests {
960961 . with_max_export_batch_size ( 10 )
961962 . with_scheduled_delay ( Duration :: from_millis ( 10 ) )
962963 . with_max_export_timeout ( Duration :: from_millis ( 10 ) )
963- . with_max_concurrent_exports ( 10 )
964- . with_max_queue_size ( 10 )
965- . build ( ) ;
964+ . with_max_queue_size ( 10 ) ;
965+ #[ cfg( feature = "experimental_trace_batch_span_processor_with_async_runtime" ) ]
966+ let batch = batch. with_max_concurrent_exports ( 10 ) ;
967+ let batch = batch. build ( ) ;
966968 assert_eq ! ( batch. max_export_batch_size, 10 ) ;
967969 assert_eq ! ( batch. scheduled_delay, Duration :: from_millis( 10 ) ) ;
968970 assert_eq ! ( batch. max_export_timeout, Duration :: from_millis( 10 ) ) ;
0 commit comments