Include transparent background in image generation analytics (#40544)

## What changed

Add the optional `transparent_background` value to image generation event
parameters and populate it from the corresponding image generation item.

## Testing

Add reducer coverage for completed events with true, false, and unset values,
as well as failed events where the value is unset.

GitOrigin-RevId: a9ee13696acb34feb998b345f54889cac7a401d9
This commit is contained in:
alicec-oai authored and copyberry committed 2026-08-25 04:35:51 +00:00
1 parent 2e4675919e
commit 348f49b292
3 files changed
+74

No files matched your search

+1
View File
@@ -2831,6 +2831,7 @@ fn tool_item_event(input: ToolItemEventInput<'_>) -> Option<TrackEventRequest> {
base,
revised_prompt_present: item.revised_prompt.is_some(),
saved_path_present: item.saved_path.is_some(),
transparent_background: item.transparent_background,
},
},
))