• erio's avatar
    feat(ops): add ignore insufficient balance errors toggle and extract error constants · cfe72159
    erio authored
    - Add 5th error filter switch IgnoreInsufficientBalanceErrors to suppress
      upstream insufficient balance / insufficient_quota errors from ops log
    - Extract hardcoded error strings into package-level constants for
      shouldSkipOpsErrorLog, normalizeOpsErrorType, classifyOpsPhase, and
      classifyOpsIsBusinessLimited
    - Define ErrNoAvailableAccounts sentinel error and replace all
      errors.New("no available accounts") call sites
    - Update tests to use require.ErrorIs with the sentinel error
    cfe72159
ops_settings.go 17.4 KB