|
62 | 62 | /// provider.shutdown(); |
63 | 63 | /// } |
64 | 64 | /// ``` |
65 | | -#[cfg(feature = "experimental_trace_batch_span_processor_with_async_runtime")] |
66 | | -use crate::runtime::RuntimeChannel; |
67 | | -#[cfg(feature = "experimental_trace_batch_span_processor_with_async_runtime")] |
68 | | -use crate::trace::span_processor_with_async_runtime::BatchSpanProcessor; |
69 | | -#[cfg(not(feature = "experimental_trace_batch_span_processor_with_async_runtime"))] |
70 | | -use crate::trace::BatchSpanProcessor; |
71 | | -use crate::trace::{Config, RandomIdGenerator, Sampler, SimpleSpanProcessor, SpanLimits, Tracer}; |
| 65 | +use crate::trace::{ |
| 66 | + BatchSpanProcessor, Config, RandomIdGenerator, Sampler, SimpleSpanProcessor, SpanLimits, Tracer, |
| 67 | +}; |
72 | 68 | use crate::Resource; |
73 | 69 | use crate::{export::trace::SpanExporter, trace::SpanProcessor}; |
74 | 70 | use opentelemetry::trace::TraceError; |
@@ -298,18 +294,6 @@ impl Builder { |
298 | 294 | Builder { processors, ..self } |
299 | 295 | } |
300 | 296 |
|
301 | | - #[cfg(feature = "experimental_trace_batch_span_processor_with_async_runtime")] |
302 | | - /// The [`SpanExporter`] setup using a default [`BatchSpanProcessor`] that this provider should use. |
303 | | - pub fn with_batch_exporter<T: SpanExporter + 'static, R: RuntimeChannel>( |
304 | | - self, |
305 | | - exporter: T, |
306 | | - runtime: R, |
307 | | - ) -> Self { |
308 | | - let batch = BatchSpanProcessor::builder(exporter, runtime).build(); |
309 | | - self.with_span_processor(batch) |
310 | | - } |
311 | | - |
312 | | - #[cfg(not(feature = "experimental_trace_batch_span_processor_with_async_runtime"))] |
313 | 297 | /// The [`SpanExporter`] setup using a default [`BatchSpanProcessor`] that this provider should use. |
314 | 298 | pub fn with_batch_exporter<T: SpanExporter + 'static>(self, exporter: T) -> Self { |
315 | 299 | let batch = BatchSpanProcessor::builder(exporter).build(); |
|
0 commit comments