Skip to main content

submit_blocking

Function submit_blocking 

Source
pub fn submit_blocking(
    payload: &TelemetryPayload,
    endpoint: &str,
) -> Result<SubmitOutcome>
Expand description

Submit a telemetry payload and return the outcome directly.

Unlike submit_fire_and_forget, this function blocks until the submission completes (or fails) and returns the result. Useful for testing and CLI tools that want to report the outcome.