Skip to main content

TelemetryHttpTransport

Trait TelemetryHttpTransport 

Source
pub trait TelemetryHttpTransport: Send + Sync {
    // Required method
    fn post_json<'a>(
        &'a self,
        url: &'a str,
        body: &'a Value,
    ) -> BoxFuture<'a, Result<(), TelemetryHttpError>>;
}
Expand description

Async HTTP sink for telemetry JSON payloads.

Required Methods§

Source

fn post_json<'a>( &'a self, url: &'a str, body: &'a Value, ) -> BoxFuture<'a, Result<(), TelemetryHttpError>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§