MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / trackRenderFeedback

Function trackRenderFeedback

packages/cli/src/telemetry/events.ts:373–386  ·  view source on GitHub ↗
(props: {
  rating: number;
  renderDurationMs?: number;
  comment?: string;
  doctorSummary?: string;
})

Source from the content-addressed store, hash-verified

371}
372
373export function trackRenderFeedback(props: {
374 rating: number;
375 renderDurationMs?: number;
376 comment?: string;
377 doctorSummary?: string;
378}): void {
379 trackEvent("survey sent", {
380 $survey_id: "render_satisfaction",
381 $survey_response: props.rating,
382 ...(props.comment ? { $survey_response_2: props.comment } : {}),
383 ...(props.renderDurationMs !== undefined ? { render_duration_ms: props.renderDurationMs } : {}),
384 ...(props.doctorSummary ? { doctor_summary: props.doctorSummary } : {}),
385 });
386}
387
388export function trackCommandResult(props: {
389 command: string;

Callers 3

events.test.tsFile · 0.85
runFunction · 0.85

Calls 1

trackEventFunction · 0.70

Tested by

no test coverage detected