(props: {
source?: "cli" | "studio";
renderJobId?: string;
phase?: string;
status?: string;
compositionHash?: string;
elapsedMs?: number;
durationMs?: number;
message?: string;
workerCount?: number;
forceScreenshot?: boolean;
useStreamingEncode?: boolean;
useLayeredComposite?: boolean;
usePageSideCompositing?: boolean;
hasHdrContent?: boolean;
captureMode?: string;
videoCount?: number;
extractedVideoCount?: number;
totalFramesExtracted?: number;
maxFramesPerVideo?: number;
avgFramesPerExtractedVideo?: number;
vfrPreflightCount?: number;
vfrPreflightMs?: number;
cacheHits?: number;
cacheMisses?: number;
})
| 247 | } |
| 248 | |
| 249 | export function trackRenderObservation(props: { |
| 250 | source?: "cli" | "studio"; |
| 251 | renderJobId?: string; |
| 252 | phase?: string; |
| 253 | status?: string; |
| 254 | compositionHash?: string; |
| 255 | elapsedMs?: number; |
| 256 | durationMs?: number; |
| 257 | message?: string; |
| 258 | workerCount?: number; |
| 259 | forceScreenshot?: boolean; |
| 260 | useStreamingEncode?: boolean; |
| 261 | useLayeredComposite?: boolean; |
| 262 | usePageSideCompositing?: boolean; |
| 263 | hasHdrContent?: boolean; |
| 264 | captureMode?: string; |
| 265 | videoCount?: number; |
| 266 | extractedVideoCount?: number; |
| 267 | totalFramesExtracted?: number; |
| 268 | maxFramesPerVideo?: number; |
| 269 | avgFramesPerExtractedVideo?: number; |
| 270 | vfrPreflightCount?: number; |
| 271 | vfrPreflightMs?: number; |
| 272 | cacheHits?: number; |
| 273 | cacheMisses?: number; |
| 274 | }): void { |
| 275 | trackEvent("render_observation", { |
| 276 | source: props.source ?? "cli", |
| 277 | render_job_id: props.renderJobId, |
| 278 | phase: props.phase, |
| 279 | status: props.status, |
| 280 | composition_hash: props.compositionHash, |
| 281 | elapsed_ms: props.elapsedMs, |
| 282 | duration_ms: props.durationMs, |
| 283 | message: props.message ? redactTelemetryMessage(props.message) : undefined, |
| 284 | worker_count: props.workerCount, |
| 285 | force_screenshot: props.forceScreenshot, |
| 286 | use_streaming_encode: props.useStreamingEncode, |
| 287 | use_layered_composite: props.useLayeredComposite, |
| 288 | use_page_side_compositing: props.usePageSideCompositing, |
| 289 | has_hdr_content: props.hasHdrContent, |
| 290 | capture_mode: props.captureMode, |
| 291 | video_count: props.videoCount, |
| 292 | extracted_video_count: props.extractedVideoCount, |
| 293 | total_frames_extracted: props.totalFramesExtracted, |
| 294 | max_frames_per_video: props.maxFramesPerVideo, |
| 295 | avg_frames_per_extracted_video: props.avgFramesPerExtractedVideo, |
| 296 | vfr_preflight_count: props.vfrPreflightCount, |
| 297 | vfr_preflight_ms: props.vfrPreflightMs, |
| 298 | extract_cache_hits: props.cacheHits, |
| 299 | extract_cache_misses: props.cacheMisses, |
| 300 | }); |
| 301 | } |
| 302 | |
| 303 | export function trackInitTemplate(templateId: string, props?: { tailwind?: boolean }): void { |
| 304 | trackEvent("init_template", { template: templateId, tailwind: props?.tailwind }); |
no test coverage detected