@salesforce/agents
    Preparing search index...

    Function emitTelemetry

    • Best-effort telemetry — never let a telemetry failure mask the real result or error. When an error is supplied (failure events), the low-cardinality cause dimensions a responder can slice by (HTTP status, error class) are attached; telemetry is the only signal present at the default log level, so a bare count could not distinguish an auth wall from a 5xx from a 404.

      Parameters

      • eventName: string
      • Optionalerror: unknown

      Returns Promise<void>