pub(crate) async fn upload(&self, batch: jaeger::Batch) -> trace::ExportResult {
        match self {
            BatchUploader::Agent(client) => match client.emit_batch(batch).await {
                Ok(_) => trace::ExportResult::Success,
                // TODO determine if the error is retryable
                Err(_) => trace::ExportResult::FailedNotRetryable,
            },
            #[cfg(feature = "collector_client")]
            BatchUploader::Collector(collector) => {
                match collector.submit_batch(batch).await {
                    Ok(_) => trace::ExportResult::Success,
                    // TODO determine if the error is retryable
                    Err(_) => trace::ExportResult::FailedNotRetryable,
                }
            }
        }
    }
/// Emit a jaeger batch for the given uploader
Emit a jaeger batch for the given uploader
Emit a jaeger batch for the given uploader
pub(crate) async fn upload(&self, batch: jaeger::Batch) -> trace::ExportResult {
        match self {
            BatchUploader::Agent(client) => match client.emit_batch(batch).await {
                Ok(_) => trace::ExportResult::Success,
                // TODO determine if the error is retryable
                Err(_) => trace::ExportResult::FailedNotRetryable,
            },
            #[cfg(feature = "collector_client")]
            BatchUploader::Collector(collector) => {
                match collector.submit_batch(batch).await {
                    Ok(_) => trace::ExportResult::Success,
                    // TODO determine if the error is retryable
                    Err(_) => trace::ExportResult::FailedNotRetryable,
                }
            }
        }
    }
pub ( crate ) async fn upload ( & self , batch : jaeger :: Batch ) -> trace :: ExportResult { match self { BatchUploader :: Agent ( client ) => match client . emit_batch ( batch ) . await { Ok ( _ ) => trace :: ExportResult :: Success , // TODO determine if the error is retryable Err ( _ ) => trace :: ExportResult :: FailedNotRetryable , } , # [ cfg ( feature " " ) ] BatchUploader :: Collector ( collector ) => { match collector . submit_batch ( batch ) . await { Ok ( _ ) => trace :: ExportResult :: Success , // TODO determine if the error is retryable Err ( _ ) => trace :: ExportResult :: FailedNotRetryable , } } } }
Emit a jaeger batch for the given uploader
Emit a jaeger batch for the given uploader
&self
batch
jaeger::Batch
&self
batch
jaeger::Batch