[][src]Trait opentelemetry_http::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 = Result<(), TraceError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

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 = Result<(), TraceError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Send a batch of spans to collectors

Loading content...

Implementors

Loading content...