pub struct ExportRequest {
pub url: String,
pub headers: HashMap<String, String>,
pub body: Vec<u8>,
}Expand description
One fully composed OTLP/HTTP export request.
The core fills in the URL, the headers (content type, auth, …) and the protobuf body;
a transport only moves the bytes. The body is an ExportLogsServiceRequest or an
ExportTraceServiceRequest, as url says.
Fields§
§url: StringWhere to POST: the OTLP logs or traces endpoint of the batch’s project.
headers: HashMap<String, String>Headers to send exactly as given: content type, content encoding, Authorization.
body: Vec<u8>The encoded request body, sent as is.
Trait Implementations§
Source§impl Clone for ExportRequest
impl Clone for ExportRequest
Source§impl Debug for ExportRequest
impl Debug for ExportRequest
Source§impl Default for ExportRequest
impl Default for ExportRequest
Source§impl PartialEq for ExportRequest
impl PartialEq for ExportRequest
impl StructuralPartialEq for ExportRequest
Auto Trait Implementations§
impl Forget for ExportRequest
impl Freeze for ExportRequest
impl Move for ExportRequest
impl RefUnwindSafe for ExportRequest
impl Send for ExportRequest
impl Sync for ExportRequest
impl Unpin for ExportRequest
impl UnsafeUnpin for ExportRequest
impl UnwindSafe for ExportRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more