From c19c0c496c9f3a10250821172cb22eca6c58b0b1 Mon Sep 17 00:00:00 2001 From: David Calavera <1050+calavera@users.noreply.github.com> Date: Wed, 14 Jan 2026 10:45:38 -0800 Subject: [PATCH] Add function_run_id and allocation_id to progress update payloads. This will help us keep track of where the updates are coming from easily. --- crates/cloud-sdk/src/applications/models.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/cloud-sdk/src/applications/models.rs b/crates/cloud-sdk/src/applications/models.rs index 79eb479..8e069a9 100644 --- a/crates/cloud-sdk/src/applications/models.rs +++ b/crates/cloud-sdk/src/applications/models.rs @@ -674,9 +674,9 @@ impl FloatKind { #[derive(Serialize, Deserialize, Debug, Clone)] #[non_exhaustive] pub struct RequestProgressUpdated { - #[serde(default)] + #[serde(default, skip_serializing_if = "String::is_empty")] pub namespace: String, - #[serde(default)] + #[serde(default, skip_serializing_if = "String::is_empty")] pub application_name: String, #[serde(default)] pub application_version: String, @@ -684,6 +684,10 @@ pub struct RequestProgressUpdated { #[serde(default)] pub function_name: String, #[serde(default)] + pub function_run_id: String, + #[serde(default)] + pub allocation_id: String, + #[serde(default)] pub message: StringKind, #[serde(default)] pub step: Option,