pub fn install_batch<R: Runtime>(
        mut self,
        runtime: R,
    ) -> Result<sdk::trace::Tracer, TraceError> {
        let trace_config = self.trace_config.take();
        let exporter = self.build_exporter()?;
        let mut provider_builder =
            sdk::trace::TracerProvider::builder().with_batch_exporter(exporter, runtime);
        if let Some(config) = trace_config {
            provider_builder = provider_builder.with_config(config);
        }
        let provider = provider_builder.build();
        let tracer = provider.get_tracer("opentelemetry-datadog", Some(env!("CARGO_PKG_VERSION")));
        let _ = global::set_tracer_provider(provider);
        Ok(tracer)
    }
/// Install the Datadog trace exporter pipeline using a batch span processor with the specified
/// runtime.
Install the Datadog trace exporter pipeline using a batch span processor with the specified
runtime.
Install the Datadog trace exporter pipeline using a batch span processor with the specified runtime .
pub fn install_batch<R: Runtime>(
        mut self,
        runtime: R,
    ) -> Result<sdk::trace::Tracer, TraceError> {
        let trace_config = self.trace_config.take();
        let exporter = self.build_exporter()?;
        let mut provider_builder =
            sdk::trace::TracerProvider::builder().with_batch_exporter(exporter, runtime);
        if let Some(config) = trace_config {
            provider_builder = provider_builder.with_config(config);
        }
        let provider = provider_builder.build();
        let tracer = provider.get_tracer("opentelemetry-datadog", Some(env!("CARGO_PKG_VERSION")));
        let _ = global::set_tracer_provider(provider);
        Ok(tracer)
    }
pub fn install_batch < R : Runtime > ( mut self , runtime : R , ) -> Result < sdk :: trace :: Tracer , TraceError > { let trace_config = self . trace_config . take ( ) ; let exporter = self . build_exporter ( ) ? ; let mut provider_builder = sdk :: trace :: TracerProvider :: builder ( ) . with_batch_exporter ( exporter , runtime ) ; if let Some ( config ) = trace_config { provider_builder = provider_builder . with_config ( config ) ; } let provider = provider_builder . build ( ) ; let tracer = provider . get_tracer ( " " , Some ( env ! ( " " ) ) ) ; let _ = global :: set_tracer_provider ( provider ) ; Ok ( tracer ) }
Install the Datadog trace exporter pipeline using a batch span processor with the specified
runtime.
Install the Datadog trace exporter pipeline using a batch span processor with the specified runtime .
mut self
runtime
R
mut self
runtime
R