Skip to main content

push_log_with_retry

Function push_log_with_retry 

Source
pub async fn push_log_with_retry(
    client: &impl HttpClient,
    config: &EnvConfig,
    log: &BetterStackLogSchema,
    retry_config: &RetryConfig,
) -> Result<Option<Value>, LogtailError>
Expand description

Pushes a log with automatic retry on transient failures.

Uses exponential backoff with optional jitter. Only retries on errors where is_retryable() returns true (5xx HTTP errors and network errors).