pub fn build(
        mut self,
    ) -> Result<sdk::trace::TracerProvider, Box<dyn Error + Send + Sync + 'static>> {
        let config = self.config.take();
        let exporter = self.init_exporter()?;

        let mut builder = sdk::trace::TracerProvider::builder().with_exporter(exporter);

        if let Some(config) = config {
            builder = builder.with_config(config)
        }

        Ok(builder.build())
    }
/// Build a configured `sdk::trace::TracerProvider` with the recommended defaults.
Build a configured `sdk::trace::TracerProvider` with the recommended defaults.
Build a configured ` sdk :: trace :: TracerProvider ` with the recommended defaults .
pub fn build(
        mut self,
    ) -> Result<sdk::trace::TracerProvider, Box<dyn Error + Send + Sync + 'static>> {
        let config = self.config.take();
        let exporter = self.init_exporter()?;
        let mut builder = sdk::trace::TracerProvider::builder().with_exporter(exporter);
        if let Some(config) = config {
            builder = builder.with_config(config)
        }
        Ok(builder.build())
    }
pub fn build ( mut self , ) -> Result < sdk :: trace :: TracerProvider , Box < dyn Error + Send + Sync + ' static > > { let config = self . config . take ( ) ; let exporter = self . init_exporter ( ) ? ; let mut builder = sdk :: trace :: TracerProvider :: builder ( ) . with_exporter ( exporter ) ; if let Some ( config ) = config { builder = builder . with_config ( config ) } Ok ( builder . build ( ) ) }
Build a configured `sdk::trace::TracerProvider` with the recommended defaults.
Build a configured ` sdk :: trace :: TracerProvider ` with the recommended defaults .
mut self
mut self