pub fn install_batch<R: Runtime>(self, runtime: R) -> Result<sdk::trace::Tracer, TraceError> {
        let exporter = match self.channel {
            Some(channel) => {
                TraceExporter::from_tonic_channel(self.exporter_config, self.tonic_config, channel)
            }
            None => TraceExporter::new_tonic(self.exporter_config, self.tonic_config),
        }?;
        Ok(build_batch_with_exporter(
            exporter,
            self.trace_config,
            runtime,
        ))
    }
/// Install a trace exporter using [tonic] as grpc lazer and a batch span processor using the
/// specified runtime.
///
/// Returns a [`Tracer`] with the name `opentelemetry-otlp` and current crate version.
///
/// `install_batch` will panic if not called within a tokio runtime
///
/// [`Tracer`]: opentelemetry::trace::Tracer
/// [tonic]: https://github.com/hyperium/tonic
Install a trace exporter using [tonic] as grpc lazer and a batch span processor using the
specified runtime.

Returns a [`Tracer`] with the name `opentelemetry-otlp` and current crate version.

`install_batch` will panic if not called within a tokio runtime


Install a trace exporter using [ tonic ] as grpc lazer and a batch span processor using the specified runtime . Returns a [ ` Tracer ` ] with the name ` opentelemetry - otlp ` and current crate version . ` install_batch ` will panic if not called within a tokio runtime
pub fn install_batch<R: Runtime>(self, runtime: R) -> Result<sdk::trace::Tracer, TraceError> {
        let exporter = match self.channel {
            Some(channel) => {
                TraceExporter::from_tonic_channel(self.exporter_config, self.tonic_config, channel)
            }
            None => TraceExporter::new_tonic(self.exporter_config, self.tonic_config),
        }?;
        Ok(build_batch_with_exporter(
            exporter,
            self.trace_config,
            runtime,
        ))
    }
pub fn install_batch < R : Runtime > ( self , runtime : R ) -> Result < sdk :: trace :: Tracer , TraceError > { let exporter = match self . channel { Some ( channel ) => { TraceExporter :: from_tonic_channel ( self . exporter_config , self . tonic_config , channel ) } None => TraceExporter :: new_tonic ( self . exporter_config , self . tonic_config ) , } ? ; Ok ( build_batch_with_exporter ( exporter , self . trace_config , runtime , ) ) }
Install a trace exporter using [tonic] as grpc lazer and a batch span processor using the
specified runtime.
Install a trace exporter using [ tonic ] as grpc lazer and a batch span processor using the specified runtime .
self
runtime
R
self
runtime
R