pub fn install_simple(mut self) -> Result<sdk::trace::Tracer, TraceError> {
        let (config, service_name) = self.build_config_and_service_name();
        let exporter = self.build_exporter_with_service_name(service_name)?;
        let mut provider_builder =
            sdk::trace::TracerProvider::builder().with_simple_exporter(exporter);
        provider_builder = provider_builder.with_config(config);
        let provider = provider_builder.build();
        let tracer = provider.versioned_tracer(
            "opentelemetry-datadog",
            Some(env!("CARGO_PKG_VERSION")),
            None,
        );
        let _ = global::set_tracer_provider(provider);
        Ok(tracer)
    }
/// Install the Datadog trace exporter pipeline using a simple span processor.
Install the Datadog trace exporter pipeline using a simple span processor.
Install the Datadog trace exporter pipeline using a simple span processor .
pub fn install_simple(mut self) -> Result<sdk::trace::Tracer, TraceError> {
        let (config, service_name) = self.build_config_and_service_name();
        let exporter = self.build_exporter_with_service_name(service_name)?;
        let mut provider_builder =
            sdk::trace::TracerProvider::builder().with_simple_exporter(exporter);
        provider_builder = provider_builder.with_config(config);
        let provider = provider_builder.build();
        let tracer = provider.versioned_tracer(
            "opentelemetry-datadog",
            Some(env!("CARGO_PKG_VERSION")),
            None,
        );
        let _ = global::set_tracer_provider(provider);
        Ok(tracer)
    }
pub fn install_simple ( mut self ) -> Result < sdk :: trace :: Tracer , TraceError > { let ( config , service_name ) = self . build_config_and_service_name ( ) ; let exporter = self . build_exporter_with_service_name ( service_name ) ? ; let mut provider_builder = sdk :: trace :: TracerProvider :: builder ( ) . with_simple_exporter ( exporter ) ; provider_builder = provider_builder . with_config ( config ) ; let provider = provider_builder . build ( ) ; let tracer = provider . versioned_tracer ( " " , Some ( env ! ( " " ) ) , None , ) ; let _ = global :: set_tracer_provider ( provider ) ; Ok ( tracer ) }
Install the Datadog trace exporter pipeline using a simple span processor.
Install the Datadog trace exporter pipeline using a simple span processor .
mut self
mut self