/**
 * OTel event emitter — stub.
 *
 * The upstream module wired SANDCODE telemetry events to an OpenTelemetry
 * pipeline (Datadog/internal exporter). Sandcode's first-party telemetry
 * was deleted in earlier refactor passes; this stub keeps the call sites
 * (hooks.ts, processSlashCommand, processTextPrompt, services/api/logging,
 * services/tools/toolExecution, services/api/messages) compiling without
 * a runtime exporter.
 */

import type { Attributes } from '@opentelemetry/api'

/**
 * Fire-and-forget OTel event emit. No-op in the stub.
 * @param _name event name (e.g., 'sandcode.tool.execute')
 * @param _attrs OTel-shaped attributes; values must be primitives or arrays
 */
export function logOTelEvent(_name: string, _attrs?: Attributes): void {
  /* no-op */
}

/**
 * Redact the value when the privacy gate is set to deny PII; otherwise
 * return it unchanged. Stub returns the value verbatim.
 */
export function redactIfDisabled<T>(value: T, _gate?: string): T {
  return value
}
