[][src]Trait opentelemetry::sdk::export::trace::HttpClient

pub trait HttpClient: Debug + Send + Sync {
#[must_use]    pub fn send<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Vec<u8>>
    ) -> Pin<Box<dyn Future<Output = ExportResult> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
This is supported on crate features trace and http only.

A minimal interface necessary for export spans over HTTP.

Users sometime choose http clients that relay on certain runtime. This trait allows users to bring their choice of http clients.

Required methods

#[must_use]pub fn send<'life0, 'async_trait>(
    &'life0 self,
    request: Request<Vec<u8>>
) -> Pin<Box<dyn Future<Output = ExportResult> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Send a batch of spans to collectors

Loading content...

Implementations on Foreign Types

impl HttpClient for Client[src]

impl HttpClient for Client[src]

impl HttpClient for Client[src]

Loading content...

Implementors

Loading content...