From ffc740541b1a16c080748860a5e8cb7d7bf6ba97 Mon Sep 17 00:00:00 2001 From: miga-heygen Date: Wed, 16 Sep 2026 15:48:26 +0000 Subject: [PATCH 1/3] feat(telemetry): add per-tag element and a-roll counts to render_complete MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit countElementTags's single regex scan (the ~83% of renders that get no live probe session) is extended into scanElementTags, which returns a per-tag breakdown and an a-roll video count alongside the same total, all from one pass over the same script/style-stripped markup — the total is the sum of the per-tag map by construction, so the two properties can't drift apart. countElementTags itself is removed; it had zero production callers after this change. New render_complete properties: composition_element_tags ({tag: count}, raw lowercase tag names, capped at the top 50 by count with the rest folded into an "other" key) and aroll_video_count (