Skip to content

The Open Standard for Generative UI

432 B
Raw Blame
import { Telemetry } from "../../../lib/telemetry";

export class GenerateApiKeyTelemetryClient extends Telemetry {
  trackStarted(props: { env_file: string; env_key: string }) {
    this.capture("cli_generate_api_key_started", props);
  }

  trackSucceeded(props: {
    auth_method: string;
    env_file: string;
    env_key: string;
    duration_ms: number;
  }) {
    this.capture("cli_generate_api_key_succeeded", props);
  }
}