fn export(&mut self, batch: Vec<SpanData>) -> BoxFuture<'static, trace::ExportResult> {
        let request = match self.build_request(batch) {
            Ok(req) => req,
            Err(err) => return Box::pin(std::future::ready(Err(err))),
        };

        let client = self.client.clone();
        Box::pin(send_request(client, request))
    }
/// Export spans to datadog-agent
Export spans to datadog-agent
Export spans to datadog - agent
fn export(&mut self, batch: Vec<SpanData>) -> BoxFuture<'static, trace::ExportResult> {
        let request = match self.build_request(batch) {
            Ok(req) => req,
            Err(err) => return Box::pin(std::future::ready(Err(err))),
        };
        let client = self.client.clone();
        Box::pin(send_request(client, request))
    }
fn export ( & mut self , batch : Vec < SpanData > ) -> BoxFuture < ' static , trace :: ExportResult > { let request = match self . build_request ( batch ) { Ok ( req ) => req , Err ( err ) => return Box :: pin ( std :: future :: ready ( Err ( err ) ) ) , } ; let client = self . client . clone ( ) ; Box :: pin ( send_request ( client , request ) ) }
Export spans to datadog-agent
Export spans to datadog - agent
&mut self
batch
Vec<SpanData>
&mut self
batch
Vec<SpanData>