pub fn install(mut self) -> (sdk::trace::Tracer, Uninstall) {
        let exporter = Exporter::new(self.writer, self.pretty_print);

        let mut provider_builder = sdk::trace::TracerProvider::builder().with_exporter(exporter);
        if let Some(config) = self.trace_config.take() {
            provider_builder = provider_builder.with_config(config);
        }
        let provider = provider_builder.build();
        let tracer = provider.get_tracer("opentelemetry", Some(env!("CARGO_PKG_VERSION")));
        let provider_guard = global::set_tracer_provider(provider);

        (tracer, Uninstall(provider_guard))
    }
/// Install the stdout exporter pipeline with the recommended defaults.
Install the stdout exporter pipeline with the recommended defaults.
Install the stdout exporter pipeline with the recommended defaults .
pub fn install(mut self) -> (sdk::trace::Tracer, Uninstall) {
        let exporter = Exporter::new(self.writer, self.pretty_print);
        let mut provider_builder = sdk::trace::TracerProvider::builder().with_exporter(exporter);
        if let Some(config) = self.trace_config.take() {
            provider_builder = provider_builder.with_config(config);
        }
        let provider = provider_builder.build();
        let tracer = provider.get_tracer("opentelemetry", Some(env!("CARGO_PKG_VERSION")));
        let provider_guard = global::set_tracer_provider(provider);
        (tracer, Uninstall(provider_guard))
    }
pub fn install ( mut self ) -> ( sdk :: trace :: Tracer , Uninstall ) { let exporter = Exporter :: new ( self . writer , self . pretty_print ) ; let mut provider_builder = sdk :: trace :: TracerProvider :: builder ( ) . with_exporter ( exporter ) ; if let Some ( config ) = self . trace_config . take ( ) { provider_builder = provider_builder . with_config ( config ) ; } let provider = provider_builder . build ( ) ; let tracer = provider . get_tracer ( " " , Some ( env ! ( " " ) ) ) ; let provider_guard = global :: set_tracer_provider ( provider ) ; ( tracer , Uninstall ( provider_guard ) ) }
Install the stdout exporter pipeline with the recommended defaults.
Install the stdout exporter pipeline with the recommended defaults .
mut self
mut self