Function increment_destination_errors
Source pub fn increment_destination_errors(
destination_type: &str,
error_category: ErrorCategory,
)
Expand description
Increments the count of destination write errors.
§Arguments
destination_type - Type of destination
error_type - Error category
§Examples
use rigatoni_core::metrics::{self, ErrorCategory};
metrics::increment_destination_errors("s3", ErrorCategory::Timeout);