pub fn build_log_exporter(self) -> Result<LogExporter, LogError> {
        match self {
            #[cfg(feature = "grpc-tonic")]
            LogExporterBuilder::Tonic(builder) => Ok(match builder.channel {
                Some(channel) => LogExporter::from_tonic_channel(
                    builder.exporter_config,
                    builder.tonic_config,
                    channel,
                ),
                None => LogExporter::new_tonic(builder.exporter_config, builder.tonic_config),
            }?),
            #[cfg(feature = "grpc-sys")]
            LogExporterBuilder::Grpcio(builder) => Ok(LogExporter::new_grpcio(
                builder.exporter_config,
                builder.grpcio_config,
            )),
            #[cfg(feature = "http-proto")]
            LogExporterBuilder::Http(builder) => Ok(LogExporter::new_http(
                builder.exporter_config,
                builder.http_config,
            )?),
        }
    }
/// Build a OTLP log exporter using the given configuration.
Build a OTLP log exporter using the given configuration.
Build a OTLP log exporter using the given configuration .
pub fn build_log_exporter(self) -> Result<LogExporter, LogError> {
        match self {
            #[cfg(feature = "grpc-tonic")]
            LogExporterBuilder::Tonic(builder) => Ok(match builder.channel {
                Some(channel) => LogExporter::from_tonic_channel(
                    builder.exporter_config,
                    builder.tonic_config,
                    channel,
                ),
                None => LogExporter::new_tonic(builder.exporter_config, builder.tonic_config),
            }?),
            #[cfg(feature = "grpc-sys")]
            LogExporterBuilder::Grpcio(builder) => Ok(LogExporter::new_grpcio(
                builder.exporter_config,
                builder.grpcio_config,
            )),
            #[cfg(feature = "http-proto")]
            LogExporterBuilder::Http(builder) => Ok(LogExporter::new_http(
                builder.exporter_config,
                builder.http_config,
            )?),
        }
    }
pub fn build_log_exporter ( self ) -> Result < LogExporter , LogError > { match self { # [ cfg ( feature " " ) ] LogExporterBuilder :: Tonic ( builder ) => Ok ( match builder . channel { Some ( channel ) => LogExporter :: from_tonic_channel ( builder . exporter_config , builder . tonic_config , channel , ) , None => LogExporter :: new_tonic ( builder . exporter_config , builder . tonic_config ) , } ? ) , # [ cfg ( feature " " ) ] LogExporterBuilder :: Grpcio ( builder ) => Ok ( LogExporter :: new_grpcio ( builder . exporter_config , builder . grpcio_config , ) ) , # [ cfg ( feature " " ) ] LogExporterBuilder :: Http ( builder ) => Ok ( LogExporter :: new_http ( builder . exporter_config , builder . http_config , ) ? ) , } }
Build a OTLP log exporter using the given configuration.
Build a OTLP log exporter using the given configuration .
self
self