@@ -717,11 +717,12 @@ impl BatchConfigBuilder {
717
717
self
718
718
}
719
719
720
+ #[ cfg( feature = "experimental_trace_batch_span_processor_with_async_runtime" ) ]
720
721
/// Set max_concurrent_exports for [`BatchConfigBuilder`].
721
722
/// It's the maximum number of concurrent exports.
722
723
/// Limits the number of spawned tasks for exports and thus memory consumed by an exporter.
723
724
/// 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
725
726
/// synchronously on the BatchSpanProcessor task.
726
727
pub fn with_max_concurrent_exports ( mut self , max_concurrent_exports : usize ) -> Self {
727
728
self . max_concurrent_exports = max_concurrent_exports;
@@ -960,9 +961,10 @@ mod tests {
960
961
. with_max_export_batch_size ( 10 )
961
962
. with_scheduled_delay ( Duration :: from_millis ( 10 ) )
962
963
. 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 ( ) ;
966
968
assert_eq ! ( batch. max_export_batch_size, 10 ) ;
967
969
assert_eq ! ( batch. scheduled_delay, Duration :: from_millis( 10 ) ) ;
968
970
assert_eq ! ( batch. max_export_timeout, Duration :: from_millis( 10 ) ) ;
0 commit comments