/**
 * Client-side self-telemetry for the DevOps dashboard.
 * Delegates to @bytelyst/telemetry-client shared package.
 * Sends to platform-service via /api/telemetry/admin-ingest proxy.
 * Privacy: No PII. Only page paths, action names, and timing metrics.
 *
 * NOTE: Telemetry is disabled for now until @bytelyst/telemetry-client is available
 */

export interface TelemetryEvent {
  action: string;
  category?: string;
  properties?: Record<string, string | number | boolean>;
  metrics?: Record<string, number>;
}

export function trackEvent(event: TelemetryEvent): void {
  // No-op - telemetry disabled
}

export function trackPageView(path: string): void {
  // No-op - telemetry disabled
}

export function trackDeployment(serviceId: string, action: 'trigger' | 'success' | 'failed'): void {
  // No-op - telemetry disabled
}

export function trackHealthCheck(serviceId: string, status: 'up' | 'down' | 'degraded'): void {
  // No-op - telemetry disabled
}

export function trackUserAction(action: string, properties?: Record<string, string>): void {
  // No-op - telemetry disabled
}

export function initTelemetry(): void {
  // No-op - telemetry disabled
}
